|
||||||||||
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
public class ActivatibleImpl
Generic Activatible
Implementation. Useful for classes to extend from it,
e.g. Node
and Codelet
.
Field Summary |
---|
Fields inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible |
---|
DEFAULT_ACTIVATIBLE_REMOVAL_THRESHOLD, DEFAULT_ACTIVATION |
Constructor Summary | |
---|---|
ActivatibleImpl()
Default constructor |
|
ActivatibleImpl(double activation,
double removalThreshold,
ExciteStrategy excite,
DecayStrategy decay)
Deprecated. To be removed in the future. |
Method Summary | |
---|---|
void |
decay(long ticks)
decay the current activation using the decay strategy. |
void |
excite(double excitation)
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 |
DecayStrategy |
getDecayStrategy()
Gets the decay strategy |
ExciteStrategy |
getExciteStrategy()
Gets the excite strategy |
double |
getTotalActivation()
Returns the total activation of this activatible |
boolean |
isRemovable()
Returns true if this Activatible is removable |
void |
setActivatibleRemovalThreshold(double threshold)
Sets activatibleRemovalThreshold |
void |
setActivation(double a)
Set the current activation. |
void |
setDecayStrategy(DecayStrategy s)
Sets the decay strategy |
void |
setExciteStrategy(ExciteStrategy s)
Sets the excite strategy |
Methods inherited from class edu.memphis.ccrg.lida.framework.initialization.InitializableImpl |
---|
containsParameter, getParam, getParameters, init, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable |
---|
containsParameter, getParam, getParameters, init, init |
Constructor Detail |
---|
public ActivatibleImpl()
@Deprecated public ActivatibleImpl(double activation, double removalThreshold, ExciteStrategy excite, DecayStrategy decay)
activation
- initial activationremovalThreshold
- initial removableThresholdexcite
- ExciteStrategy
decay
- DecayStrategy
Method Detail |
---|
public void decay(long ticks)
Activatible
decay
in interface Activatible
ticks
- the number of ticks to decaypublic void excite(double excitation)
Activatible
excite
in interface Activatible
excitation
- the value to be used to increase the current activation of
this nodepublic double getActivation()
Activatible
getActivation
in interface Activatible
public double getActivatibleRemovalThreshold()
Activatible
getActivatibleRemovalThreshold
in interface Activatible
public DecayStrategy getDecayStrategy()
Activatible
getDecayStrategy
in interface Activatible
public ExciteStrategy getExciteStrategy()
Activatible
getExciteStrategy
in interface Activatible
public void setActivation(double a)
Activatible
setActivation
in interface Activatible
a
- new activationpublic void setActivatibleRemovalThreshold(double threshold)
Activatible
setActivatibleRemovalThreshold
in interface Activatible
threshold
- threshold for removal of this activatiblepublic void setDecayStrategy(DecayStrategy s)
Activatible
setDecayStrategy
in interface Activatible
s
- the decay strategy for the current activation.public void setExciteStrategy(ExciteStrategy s)
Activatible
setExciteStrategy
in interface Activatible
s
- the Excite strategy for the current activation.public double getTotalActivation()
Activatible
getTotalActivation
in interface Activatible
public boolean isRemovable()
Activatible
isRemovable
in interface Activatible
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |