|
||||||||||
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.LinkImpl
edu.memphis.ccrg.lida.pam.PamLinkImpl
public class PamLinkImpl
Default implementation of PamLink
.
Field Summary |
---|
Fields inherited from class edu.memphis.ccrg.lida.framework.shared.LinkImpl |
---|
groundingPamLink |
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 | |
---|---|
PamLinkImpl()
Default constructor Only ElementFactory should be creating this Object. |
|
PamLinkImpl(PamLinkImpl pamLink)
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 LinkImpl with any kind of Link. |
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 |
updateLinkValues(Link link)
Updates the values of this LinkImpl based on the passed in Link. |
Methods inherited from class edu.memphis.ccrg.lida.framework.shared.LinkImpl |
---|
getCategory, getExtendedId, getGroundingPamLink, getLabel, getParam, getSink, getSource, init, isSimpleLink, setCategory, setGroundingPamLink, setSink, setSource, 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.Link |
---|
getCategory, getGroundingPamLink, getSink, getSource, isSimpleLink, setCategory, setGroundingPamLink, setSink, setSource |
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.Linkable |
---|
getExtendedId, getLabel |
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable |
---|
getParam, init |
Constructor Detail |
---|
public PamLinkImpl()
ElementFactory
should be creating this Object.
public PamLinkImpl(PamLinkImpl pamLink)
pamLink
- source PamLinkImpl
Method Detail |
---|
public void init()
init
in interface Initializable
init
in class LinkImpl
NodeImpl.init()
public boolean equals(java.lang.Object obj)
LinkImpl
equals
in class LinkImpl
public int hashCode()
hashCode
in class LinkImpl
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.public void updateLinkValues(Link link)
LinkImpl
updateLinkValues
in interface Link
updateLinkValues
in class LinkImpl
link
- Link whose values are used to update with.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |