|
||||||||||
| 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
edu.memphis.ccrg.lida.pam.PamNodeImpl
public class PamNodeImpl
Default implementation of PamNode. A Learnable Node that
overrides hashCode and equals. Has a private LearnableImpl to help
implement all Learnable methods.
| Field Summary |
|---|
| Fields inherited from class edu.memphis.ccrg.lida.framework.shared.NodeImpl |
|---|
groundingPamNode |
| Fields inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Learnable |
|---|
DEFAULT_BASE_LEVEL_ACTIVATION, DEFAULT_LEARNABLE_REMOVAL_THRESHOLD |
| Fields inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible |
|---|
DEFAULT_ACTIVATIBLE_REMOVAL_THRESHOLD, DEFAULT_ACTIVATION |
| Constructor Summary | |
|---|---|
PamNodeImpl()
Default constructor |
|
PamNodeImpl(PamNodeImpl pn)
Deprecated. Use ElementFactory.getNode(Node, String) or similar method in ElementFactory instead. |
|
| Method Summary | |
|---|---|
void |
decay(long ticks)
decay the current activation using the decay strategy. |
void |
decayBaseLevelActivation(long ticks)
decay the Base Level activation using the decay strategy. |
boolean |
equals(java.lang.Object o)
This method compares this object with any kind of Node. |
void |
excite(double amount)
The current activation of this node is increased using the excitation value as a parameter for the ExciteStrategy |
double |
getActivatibleRemovalThreshold()
Gets activatibleRemovalThreshold |
double |
getActivation()
Returns the current activation of this activatible |
double |
getBaseLevelActivation()
Returns base level activation. |
DecayStrategy |
getBaseLevelDecayStrategy()
Gets decay strategy for the Base Level activation |
ExciteStrategy |
getBaseLevelExciteStrategy()
Gets BaseLevelExciteStrategy |
DecayStrategy |
getDecayStrategy()
Gets the decay strategy |
ExciteStrategy |
getExciteStrategy()
Gets the excite strategy |
double |
getLearnableRemovalThreshold()
Gets learnableRemovalThreshold |
double |
getTotalActivation()
Returns the total activation of this activatible |
TotalActivationStrategy |
getTotalActivationStrategy()
Returns TotalActivationStrategy |
int |
hashCode()
|
void |
init()
Must call the init() of the internal Learnable. |
boolean |
isRemovable()
Returns true if this Activatible is removable |
void |
reinforceBaseLevelActivation(double amount)
The Base Level activation of this node is increased using the excitation value as a parameter for the ExciteStrategy. |
void |
setActivatibleRemovalThreshold(double threshold)
Sets activatibleRemovalThreshold |
void |
setActivation(double a)
Set the current activation. |
void |
setBaseLevelActivation(double amount)
Set base level activation. |
void |
setBaseLevelDecayStrategy(DecayStrategy strategy)
Sets decay strategy for the Base Level activation |
void |
setBaseLevelExciteStrategy(ExciteStrategy strategy)
Sets BaseLevelExciteStrategy |
void |
setBaseLevelRemovalThreshold(double threshold)
Sets learnableRemovalThreshold |
void |
setDecayStrategy(DecayStrategy strategy)
Sets the decay strategy |
void |
setExciteStrategy(ExciteStrategy strategy)
Sets the excite strategy |
void |
setTotalActivationStrategy(TotalActivationStrategy strategy)
Sets TotalActivationStrategy |
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.NodeImpl |
|---|
getConditionId, getExtendedId, getFactoryType, getGroundingPamNode, getId, getLabel, setExtendedId, setFactoryType, setGroundingPamNode, setId, setLabel, toString |
| Methods inherited from class edu.memphis.ccrg.lida.framework.initialization.InitializableImpl |
|---|
containsParameter, getParam, getParameters, 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.Node |
|---|
getGroundingPamNode, getId, getLabel, setGroundingPamNode, setId, setLabel |
| Methods inherited from interface edu.memphis.ccrg.lida.proceduralmemory.Condition |
|---|
getConditionId |
| Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.Linkable |
|---|
getExtendedId, getFactoryType, setFactoryType |
| Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.LinkCategory |
|---|
getId, getLabel |
| Constructor Detail |
|---|
public PamNodeImpl()
@Deprecated public PamNodeImpl(PamNodeImpl pn)
ElementFactory.getNode(Node, String) or similar method in ElementFactory instead.
pn - source PamNodeImpl| Method Detail |
|---|
public void init()
init() of the internal Learnable.
init in interface Initializableinit in class InitializableImplLearnableImpl.init(),
ElementFactory.getNode(String, String, String, String, double, double)public void updateNodeValues(Node n)
NodeImplNode 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 NodeupdateNodeValues in class NodeImpln - Node whose values are used to update with.updateNodeValues(Node),
NodeStructureImpl.addNode(Node, String)public boolean equals(java.lang.Object o)
NodeImpl
equals in class NodeImplo - Objectpublic int hashCode()
hashCode in class NodeImplpublic double getActivation()
Activatible
getActivation in interface ActivatiblegetActivation in class ActivatibleImplpublic void setActivation(double a)
Activatible
setActivation in interface ActivatiblesetActivation in class ActivatibleImpla - new activationpublic double getTotalActivation()
Activatible
getTotalActivation in interface ActivatiblegetTotalActivation in class ActivatibleImplpublic void excite(double amount)
Activatible
excite in interface Activatibleexcite in class ActivatibleImplamount - the value to be used to increase the current activation of
this nodepublic void setExciteStrategy(ExciteStrategy strategy)
Activatible
setExciteStrategy in interface ActivatiblesetExciteStrategy in class ActivatibleImplstrategy - the Excite strategy for the current activation.public ExciteStrategy getExciteStrategy()
Activatible
getExciteStrategy in interface ActivatiblegetExciteStrategy in class ActivatibleImplpublic void decay(long ticks)
Activatible
decay in interface Activatibledecay in class ActivatibleImplticks - the number of ticks to decaypublic void setDecayStrategy(DecayStrategy strategy)
Activatible
setDecayStrategy in interface ActivatiblesetDecayStrategy in class ActivatibleImplstrategy - the decay strategy for the current activation.public DecayStrategy getDecayStrategy()
Activatible
getDecayStrategy in interface ActivatiblegetDecayStrategy in class ActivatibleImplpublic void setActivatibleRemovalThreshold(double threshold)
Activatible
setActivatibleRemovalThreshold in interface ActivatiblesetActivatibleRemovalThreshold in class ActivatibleImplthreshold - threshold for removal of this activatiblepublic double getActivatibleRemovalThreshold()
Activatible
getActivatibleRemovalThreshold in interface ActivatiblegetActivatibleRemovalThreshold in class ActivatibleImplpublic boolean isRemovable()
Activatible
isRemovable in interface ActivatibleisRemovable in class ActivatibleImplpublic double getBaseLevelActivation()
Learnable
getBaseLevelActivation in interface Learnablepublic void setBaseLevelActivation(double amount)
LearnableLearnable.reinforceBaseLevelActivation(double) instead.
setBaseLevelActivation in interface Learnableamount - new base level activation amountpublic void reinforceBaseLevelActivation(double amount)
Learnable
reinforceBaseLevelActivation in interface Learnableamount - the value to be used to increase the Base Level activation of
this nodepublic void setBaseLevelExciteStrategy(ExciteStrategy strategy)
Learnable
setBaseLevelExciteStrategy in interface Learnablestrategy - the Excite strategy for the current activation.public ExciteStrategy getBaseLevelExciteStrategy()
Learnable
getBaseLevelExciteStrategy in interface Learnablepublic void decayBaseLevelActivation(long ticks)
Learnable
decayBaseLevelActivation in interface Learnableticks - the number of ticks to decaypublic void setBaseLevelDecayStrategy(DecayStrategy strategy)
Learnable
setBaseLevelDecayStrategy in interface Learnablestrategy - the decay strategy for the Base Level activation.public DecayStrategy getBaseLevelDecayStrategy()
Learnable
getBaseLevelDecayStrategy in interface Learnablepublic void setBaseLevelRemovalThreshold(double threshold)
Learnable
setBaseLevelRemovalThreshold in interface Learnablethreshold - threshold for removal of this Learnablepublic double getLearnableRemovalThreshold()
Learnable
getLearnableRemovalThreshold in interface Learnablepublic TotalActivationStrategy getTotalActivationStrategy()
LearnableTotalActivationStrategy
getTotalActivationStrategy in interface Learnablepublic void setTotalActivationStrategy(TotalActivationStrategy strategy)
LearnableTotalActivationStrategy
setTotalActivationStrategy in interface Learnablestrategy - Strategy this Learnable uses to calculate total activation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||