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

All Superinterfaces:
Activatible, Initializable, Linkable, java.io.Serializable
All Known Subinterfaces:
PamNode
All Known Implementing Classes:
NodeImpl, PamNodeImpl

public interface Node
extends Linkable, java.io.Serializable

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
 double getDesirability()
          Returns desirability of this node.
 PamNode getGroundingPamNode()
          Returns the grounding PamNode.
 int getId()
          Returns Node's id
 java.lang.String getLabel()
          Gets label.
 void setDesirability(double degree)
          Set node desirability.
 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
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible
decay, excite, getActivatibleRemovalThreshold, getActivation, getDecayStrategy, getExciteStrategy, getTotalActivation, isRemovable, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable
getParam, init, init
 

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

getDesirability

double getDesirability()
Returns desirability of this node.

Returns:
a double signifying the degree to which this node is a goal of the agent

setDesirability

void setDesirability(double degree)
Set node desirability.

Parameters:
degree - degree to which this node is a goal of the agent

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.