|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl
edu.memphis.ccrg.lida.framework.shared.NodeImpl
public class NodeImpl
Default Node
Implementation
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)
Copy constructor |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
This method compares this object with any kind of Node. |
double |
getDesirability()
Returns desirability of this node. |
ExtendedId |
getExtendedId()
Gets extendedId. |
PamNode |
getGroundingPamNode()
Returns the grounding PamNode. |
int |
getId()
Returns Node's id |
java.lang.String |
getLabel()
Gets label. |
java.lang.Object |
getParam(java.lang.String name,
java.lang.Object defaultValue)
A convenience method to read parameters from the Map of properties set with the init() method. |
int |
hashCode()
|
void |
init()
This is a convenience method to initialize this Object. |
void |
init(java.util.Map<java.lang.String,?> params)
This method initializes the module with parameters specified in agent.xml |
void |
setDesirability(double d)
Set node desirability. |
void |
setExtendedId(ExtendedId eid)
Convenience method to set Node's ExtendedId . |
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 |
java.lang.String |
toString()
|
void |
updateNodeValues(Node n)
Updates the values of this NodeImpl based on the passed in Node. |
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 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()
public NodeImpl(NodeImpl n)
n
- source NodeImpl
Method Detail |
---|
public ExtendedId getExtendedId()
Linkable
getExtendedId
in interface Linkable
public int getId()
Node
getId
in interface Node
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 java.lang.String getLabel()
Linkable
getLabel
in interface Linkable
getLabel
in interface Node
public void setLabel(java.lang.String label)
Node
setLabel
in interface Node
label
- 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 double getDesirability()
Node
getDesirability
in interface Node
public void setDesirability(double d)
Node
setDesirability
in interface Node
d
- degree to which this node is a goal of the agentpublic void init(java.util.Map<java.lang.String,?> params)
Initializable
init
in interface Initializable
params
- Map of parameters indexed by String namespublic void init()
Initializable
init
in interface Initializable
public java.lang.Object getParam(java.lang.String name, java.lang.Object defaultValue)
Initializable
getParam
in interface Initializable
name
- the parameter namedefaultValue
- the default value to be returned if the parameter doesn't exist.
public void updateNodeValues(Node n)
updateNodeValues
in interface Node
n
- Node whose values are used to update with.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |