|
||||||||||
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
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 pamNode)
Copy constructor |
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 obj)
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()
This init method sets the following values from the parameters in the Factorydata.xml file: baseLevelDecayStrategy: a String with the factory name of the DecayStrategy baseLevelExciteStrategy: a String with the factory name of the ExciteStrategy baseLevelRemovalThreshold: a double value. |
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 activation)
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)
Updates the values of this NodeImpl based on the passed in Node. |
Methods inherited from class edu.memphis.ccrg.lida.framework.shared.NodeImpl |
---|
getDesirability, getExtendedId, getGroundingPamNode, getId, getLabel, getParam, init, setDesirability, setExtendedId, setGroundingPamNode, setId, setLabel, toString |
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 |
---|
getDesirability, getGroundingPamNode, getId, getLabel, setDesirability, setGroundingPamNode, setId, setLabel |
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.Linkable |
---|
getExtendedId |
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable |
---|
getParam, init |
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.LinkCategory |
---|
getId, getLabel |
Constructor Detail |
---|
public PamNodeImpl()
public PamNodeImpl(PamNodeImpl pamNode)
pamNode
- source PamNodeImpl
Method Detail |
---|
public void init()
init
in interface Initializable
init
in class NodeImpl
NodeImpl.init()
public void updateNodeValues(Node n)
NodeImpl
updateNodeValues
in interface Node
updateNodeValues
in class NodeImpl
n
- Node whose values are used to update with.public boolean equals(java.lang.Object obj)
NodeImpl
equals
in class NodeImpl
obj
- Objectpublic int hashCode()
hashCode
in class NodeImpl
public double getActivation()
Activatible
getActivation
in interface Activatible
getActivation
in class ActivatibleImpl
public void setActivation(double activation)
Activatible
setActivation
in interface Activatible
setActivation
in class ActivatibleImpl
activation
- new activationpublic double getTotalActivation()
Activatible
getTotalActivation
in interface Activatible
getTotalActivation
in class ActivatibleImpl
public void excite(double amount)
Activatible
excite
in interface Activatible
excite
in class ActivatibleImpl
amount
- the value to be used to increase the current activation of
this nodepublic void setExciteStrategy(ExciteStrategy strategy)
Activatible
setExciteStrategy
in interface Activatible
setExciteStrategy
in class ActivatibleImpl
strategy
- the Excite strategy for the current activation.public ExciteStrategy getExciteStrategy()
Activatible
getExciteStrategy
in interface Activatible
getExciteStrategy
in class ActivatibleImpl
public void decay(long ticks)
Activatible
decay
in interface Activatible
decay
in class ActivatibleImpl
ticks
- the number of ticks to decaypublic void setDecayStrategy(DecayStrategy strategy)
Activatible
setDecayStrategy
in interface Activatible
setDecayStrategy
in class ActivatibleImpl
strategy
- the decay strategy for the current activation.public DecayStrategy getDecayStrategy()
Activatible
getDecayStrategy
in interface Activatible
getDecayStrategy
in class ActivatibleImpl
public void setActivatibleRemovalThreshold(double threshold)
Activatible
setActivatibleRemovalThreshold
in interface Activatible
setActivatibleRemovalThreshold
in class ActivatibleImpl
threshold
- threshold for removal of this activatiblepublic double getActivatibleRemovalThreshold()
Activatible
getActivatibleRemovalThreshold
in interface Activatible
getActivatibleRemovalThreshold
in class ActivatibleImpl
public boolean isRemovable()
Activatible
isRemovable
in interface Activatible
isRemovable
in class ActivatibleImpl
public double getBaseLevelActivation()
Learnable
getBaseLevelActivation
in interface Learnable
public void setBaseLevelActivation(double amount)
Learnable
Learnable.reinforceBaseLevelActivation(double)
instead.
setBaseLevelActivation
in interface Learnable
amount
- new base level activation amountpublic void reinforceBaseLevelActivation(double amount)
Learnable
reinforceBaseLevelActivation
in interface Learnable
amount
- the value to be used to increase the Base Level activation of
this nodepublic void setBaseLevelExciteStrategy(ExciteStrategy strategy)
Learnable
setBaseLevelExciteStrategy
in interface Learnable
strategy
- the Excite strategy for the current activation.public ExciteStrategy getBaseLevelExciteStrategy()
Learnable
getBaseLevelExciteStrategy
in interface Learnable
public void decayBaseLevelActivation(long ticks)
Learnable
decayBaseLevelActivation
in interface Learnable
ticks
- the number of ticks to decaypublic void setBaseLevelDecayStrategy(DecayStrategy strategy)
Learnable
setBaseLevelDecayStrategy
in interface Learnable
strategy
- the decay strategy for the Base Level activation.public DecayStrategy getBaseLevelDecayStrategy()
Learnable
getBaseLevelDecayStrategy
in interface Learnable
public void setBaseLevelRemovalThreshold(double threshold)
Learnable
setBaseLevelRemovalThreshold
in interface Learnable
threshold
- threshold for removal of this Learnablepublic double getLearnableRemovalThreshold()
Learnable
getLearnableRemovalThreshold
in interface Learnable
public TotalActivationStrategy getTotalActivationStrategy()
Learnable
TotalActivationStrategy
getTotalActivationStrategy
in interface Learnable
public void setTotalActivationStrategy(TotalActivationStrategy strategy)
Learnable
TotalActivationStrategy
setTotalActivationStrategy
in interface Learnable
strategy
- Strategy this Learnable uses to calculate total activation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |