|
||||||||||
| 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.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 Initializableinit in class InitializableImplLearnableImpl.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)
LinkImplLink 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 LinkupdateLinkValues in class LinkImpllink - 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 LinkImplpublic int hashCode()
hashCode in class LinkImplpublic double getActivation()
Activatible
getActivation in interface ActivatiblegetActivation in class ActivatibleImplpublic void setActivation(double activation)
Activatible
setActivation in interface ActivatiblesetActivation in class ActivatibleImplactivation - 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 | |||||||||