|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.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 Linkablen - the factory type of the LinkableElementFactorypublic java.lang.String getFactoryType()
Linkable
getFactoryType in interface LinkableElementFactorypublic void setId(int id)
Node
setId in interface Nodeid - unique idpublic void setExtendedId(ExtendedId eid)
ExtendedId. Also sets node's id.
eid - ExtendedIdpublic ExtendedId getExtendedId()
Linkable
getExtendedId in interface Linkablepublic int getId()
Node
getId in interface Nodepublic java.lang.String getLabel()
Linkable
getLabel in interface LinkablegetLabel in interface Nodepublic void setLabel(java.lang.String l)
Node
setLabel in interface Nodel - readable labelpublic PamNode getGroundingPamNode()
Node
getGroundingPamNode in interface Nodepublic void setGroundingPamNode(PamNode n)
Node
setGroundingPamNode in interface Noden - PamNodepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic 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 Noden - Node whose values are used to update with.PamNodeImpl.updateNodeValues(Node),
NodeStructureImpl.addNode(Node, String)public ExtendedId getConditionId()
ConditionObject.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 | |||||||||