edu.memphis.ccrg.lida.framework.shared
Interface Node

All Superinterfaces:
Activatible, Condition, Initializable, Linkable
All Known Subinterfaces:
PamNode, RootableNode
All Known Implementing Classes:
NodeImpl, PamNodeImpl, RootableNodeImpl

public interface Node
extends Linkable, Condition

A Node represents a Concept in LIDA. It could be implemented in different ways for different parts of the system. For example could be pamNodes in the PAM and WorkspaceNodes in the workspace. Nodes with the same id represents the same concept so equals have to return true even if the objects are of different classes.

Author:
Javier Snaider, Ryan J. McCall

Field Summary
 
Fields inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible
DEFAULT_ACTIVATIBLE_REMOVAL_THRESHOLD, DEFAULT_ACTIVATION
 
Method Summary
 PamNode getGroundingPamNode()
          Returns the grounding PamNode.
 int getId()
          Returns Node's id
 java.lang.String getLabel()
          Gets label.
 void setGroundingPamNode(PamNode n)
          Used by factory to set the underlying PamNode for this node
 void setId(int id)
          Sets Node's id
 void setLabel(java.lang.String label)
          Sets label
 void updateNodeValues(Node n)
          Subclasses of Node should override this method to set all of their type-specific member data using the values of the specified Link.
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.Linkable
getExtendedId, getFactoryType, setFactoryType
 
Methods inherited from interface edu.memphis.ccrg.lida.proceduralmemory.Condition
getConditionId
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible
decay, excite, getActivatibleRemovalThreshold, getActivation, getDecayStrategy, getExciteStrategy, getTotalActivation, isRemovable, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy
 

Method Detail

getGroundingPamNode

PamNode getGroundingPamNode()
Returns the grounding PamNode.

Returns:
PamNode, in PAM, underlying this node.

setGroundingPamNode

void setGroundingPamNode(PamNode n)
Used by factory to set the underlying PamNode for this node

Parameters:
n - PamNode

getId

int getId()
Returns Node's id

Returns:
unique id

setId

void setId(int id)
Sets Node's id

Parameters:
id - unique id

getLabel

java.lang.String getLabel()
Description copied from interface: Linkable
Gets label.

Specified by:
getLabel in interface Linkable
Returns:
readable label

setLabel

void setLabel(java.lang.String label)
Sets label

Parameters:
label - readable label

updateNodeValues

void updateNodeValues(Node n)
Subclasses of Node should override this method to set all of their type-specific member data using the values of the specified Link. Thus specified Node must be of the same subclass type.

Parameters:
n - Node whose values are used to update with.