|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.memphis.ccrg.lida.framework.initialization.InitializableImpl edu.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 pl)
Deprecated. Use ElementFactory.getLink(String, Node, Linkable, LinkCategory, String, String, double, double) 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 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()
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 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)
This default implementation of Link has all of its attributes updated by NodeStructureImpl when links are updated. |
Methods inherited from class edu.memphis.ccrg.lida.framework.shared.LinkImpl |
---|
getCategory, getExtendedId, getFactoryType, getGroundingPamLink, getLabel, getSink, getSource, isSimpleLink, setCategory, setFactoryType, setGroundingPamLink, setSink, setSource, 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.Link |
---|
getCategory, getGroundingPamLink, getSink, getSource, isSimpleLink, setCategory, setGroundingPamLink, setSink, setSource |
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.Linkable |
---|
getExtendedId, getFactoryType, getLabel, setFactoryType |
Constructor Detail |
---|
public PamLinkImpl()
ElementFactory
should be creating this Object.
@Deprecated public PamLinkImpl(PamLinkImpl pl)
ElementFactory.getLink(String, Node, Linkable, LinkCategory, String, String, double, double)
instead.
pl
- source PamLinkImpl
Method Detail |
---|
public void init()
init()
of the internal Learnable
.
init
in interface Initializable
init
in class InitializableImpl
LearnableImpl.init()
,
ElementFactory.getLink(String, edu.memphis.ccrg.lida.framework.shared.Node, edu.memphis.ccrg.lida.framework.shared.Linkable, edu.memphis.ccrg.lida.framework.shared.LinkCategory, String, String, double, double)
public void updateLinkValues(Link link)
LinkImpl
Link
has all of its attributes updated by NodeStructureImpl
when links are updated.
Therefore this class does not have to implement this method.
Any subclass with specific class members (e.g. PamLinkImpl) should however override this method.
updateLinkValues
in interface Link
updateLinkValues
in class LinkImpl
link
- Link whose values are used to update with.updateLinkValues(Link)
,
NodeStructureImpl.addLink(Link, String)
,
NodeStructureImpl.getNewLink(Link, String, Node, Linkable, LinkCategory)
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |