Class ProceduralMemoryImpl.InternalNodeStructure

  extended by edu.memphis.ccrg.lida.framework.shared.NodeStructureImpl
      extended by edu.memphis.ccrg.lida.proceduralmemory.ProceduralMemoryImpl.InternalNodeStructure
All Implemented Interfaces:
NodeStructure, BroadcastContent, WorkspaceContent
Enclosing class:

protected class ProceduralMemoryImpl.InternalNodeStructure
extends NodeStructureImpl

Allows Nodes to be added without copying. Warning: doing so allows the same java object of Node to exist in multiple places.

Ryan J. McCall
See Also:

Constructor Summary
protected ProceduralMemoryImpl.InternalNodeStructure()
Method Summary
 Node addNode(Node n, boolean copy)
          If copy is false, this method adds a already generated Node to this NodeStructure without copying it.
Methods inherited from class edu.memphis.ccrg.lida.framework.shared.NodeStructureImpl
addDefaultLink, addDefaultLink, addDefaultLink, addDefaultLink, addDefaultLinks, addDefaultNode, addDefaultNode, addDefaultNodes, addLink, addLink, addLink, addNode, addNode, clearLinks, clearNodeStructure, compareNodeStructures, containsLink, containsLink, containsLinkable, containsLinkable, containsNode, containsNode, containsNode, copy, decayNodeStructure, getAttachedLinks, getAttachedLinks, getConnectedSinks, getConnectedSources, getDefaultLinkType, getDefaultNodeType, getLink, getLinkable, getLinkableCount, getLinkableMap, getLinkables, getLinkCount, getLinks, getLinks, getNewLink, getNewNode, getNode, getNode, getNodeCount, getNodes, getSubgraph, getSubgraph, mergeWith, removeLink, removeLinkable, removeLinkable, removeNode, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


protected ProceduralMemoryImpl.InternalNodeStructure()
Method Detail


public Node addNode(Node n,
                    boolean copy)
Description copied from class: NodeStructureImpl
If copy is false, this method adds a already generated Node to this NodeStructure without copying it. If copy is true, NodeStructure.addDefaultNode(Node) is used. If a Node with the same id is already in this NodeStructure, the new Node is not added. This method is intended for internal use only.

addNode in class NodeStructureImpl
n - the Node to add
copy - determines if the node is copied or not.
The Node stored in this NodeStructure