edu.memphis.ccrg.lida.pam
Class PerceptualAssociativeMemoryImpl.PamNodeStructure

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.shared.NodeStructureImpl
      extended by edu.memphis.ccrg.lida.pam.PerceptualAssociativeMemoryImpl.PamNodeStructure
All Implemented Interfaces:
NodeStructure, BroadcastContent, WorkspaceContent
Enclosing class:
PerceptualAssociativeMemoryImpl

protected static class PerceptualAssociativeMemoryImpl.PamNodeStructure
extends NodeStructureImpl

Internal implementation of NodeStructureImpl. Allows Node to be added without copying them.


Constructor Summary
PerceptualAssociativeMemoryImpl.PamNodeStructure(java.lang.String nodeType, java.lang.String linkType)
           
 
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

PerceptualAssociativeMemoryImpl.PamNodeStructure

public PerceptualAssociativeMemoryImpl.PamNodeStructure(java.lang.String nodeType,
                                                        java.lang.String linkType)
Parameters:
nodeType - Default node type
linkType - Default link type
Method Detail

addNode

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.

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