|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.memphis.ccrg.lida.framework.initialization.InitializableImpl edu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl edu.memphis.ccrg.lida.framework.shared.NodeImpl
public class NodeImpl
Default Node
implementation.
ElementFactory
Field Summary | |
---|---|
protected PamNode |
groundingPamNode
PamNode in PerceptualAssociativeMemory which grounds this Node |
Fields inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible |
---|
DEFAULT_ACTIVATIBLE_REMOVAL_THRESHOLD, DEFAULT_ACTIVATION |
Constructor Summary | |
---|---|
NodeImpl()
Default constructor |
|
NodeImpl(NodeImpl n)
Deprecated. Use ElementFactory.getNode(Node) instead. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
This method compares this object with any kind of Node. |
ExtendedId |
getConditionId()
Gets id. |
ExtendedId |
getExtendedId()
Gets extendedId. |
java.lang.String |
getFactoryType()
Gets factory type |
PamNode |
getGroundingPamNode()
Returns the grounding PamNode. |
int |
getId()
Returns Node's id |
java.lang.String |
getLabel()
Gets label. |
int |
hashCode()
|
void |
setExtendedId(ExtendedId eid)
Convenience method to set Node's ExtendedId . |
void |
setFactoryType(java.lang.String n)
Sets factory type |
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 l)
Sets label |
java.lang.String |
toString()
|
void |
updateNodeValues(Node n)
This default implementation of Node has all of its attributes updated by NodeStructureImpl or
ElementFactory when nodes are updated. |
Methods inherited from class edu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl |
---|
decay, excite, getActivatibleRemovalThreshold, getActivation, getDecayStrategy, getExciteStrategy, getTotalActivation, isRemovable, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy |
Methods inherited from class edu.memphis.ccrg.lida.framework.initialization.InitializableImpl |
---|
containsParameter, getParam, getParameters, init, init |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible |
---|
decay, excite, getActivatibleRemovalThreshold, getActivation, getDecayStrategy, getExciteStrategy, getTotalActivation, isRemovable, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy |
Field Detail |
---|
protected PamNode groundingPamNode
PamNode
in PerceptualAssociativeMemory
which grounds this Node
Constructor Detail |
---|
public NodeImpl()
@Deprecated public NodeImpl(NodeImpl n)
ElementFactory.getNode(Node)
instead.
n
- source NodeImpl
Method Detail |
---|
public void setFactoryType(java.lang.String n)
Linkable
setFactoryType
in interface Linkable
n
- the factory type of the LinkableElementFactory
public java.lang.String getFactoryType()
Linkable
getFactoryType
in interface Linkable
ElementFactory
public void setId(int id)
Node
setId
in interface Node
id
- unique idpublic void setExtendedId(ExtendedId eid)
ExtendedId
. Also sets node's id.
eid
- ExtendedId
public ExtendedId getExtendedId()
Linkable
getExtendedId
in interface Linkable
public int getId()
Node
getId
in interface Node
public java.lang.String getLabel()
Linkable
getLabel
in interface Linkable
getLabel
in interface Node
public void setLabel(java.lang.String l)
Node
setLabel
in interface Node
l
- readable labelpublic PamNode getGroundingPamNode()
Node
getGroundingPamNode
in interface Node
public void setGroundingPamNode(PamNode n)
Node
setGroundingPamNode
in interface Node
n
- PamNodepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Objectpublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void updateNodeValues(Node n)
Node
has all of its attributes updated by NodeStructureImpl
or
ElementFactory
when nodes are updated.
Therefore this class does not have to implement this method.
Any subclass with specific class members (e.g. PamNodeImpl) should however override this method.
updateNodeValues
in interface Node
n
- Node whose values are used to update with.PamNodeImpl.updateNodeValues(Node)
,
NodeStructureImpl.addNode(Node, String)
public ExtendedId getConditionId()
Condition
Object.equals(Object)
and Object.hashCode()
must be overwritten for this id.
getConditionId
in interface Condition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |