|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Activatible
An object with activation, has strategies to both excite and decay this activation
Field Summary | |
---|---|
static double |
DEFAULT_ACTIVATIBLE_REMOVAL_THRESHOLD
Default removal threshold for Activatible |
static double |
DEFAULT_ACTIVATION
Default activation for Activatible |
Method Summary | |
---|---|
void |
decay(long ticks)
decay the current activation using the decay strategy. |
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 |
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 activation)
Set the current activation. |
void |
setDecayStrategy(DecayStrategy strategy)
Sets the decay strategy |
void |
setExciteStrategy(ExciteStrategy strategy)
Sets the excite strategy |
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable |
---|
containsParameter, getParam, getParameters, init, init |
Field Detail |
---|
static final double DEFAULT_ACTIVATIBLE_REMOVAL_THRESHOLD
Activatible
static final double DEFAULT_ACTIVATION
Activatible
Method Detail |
---|
double getActivation()
void setActivation(double activation)
activation
- new activationdouble getTotalActivation()
void excite(double amount)
amount
- the value to be used to increase the current activation of
this nodevoid setExciteStrategy(ExciteStrategy strategy)
strategy
- the Excite strategy for the current activation.ExciteStrategy getExciteStrategy()
void decay(long ticks)
ticks
- the number of ticks to decayvoid setDecayStrategy(DecayStrategy strategy)
strategy
- the decay strategy for the current activation.DecayStrategy getDecayStrategy()
void setActivatibleRemovalThreshold(double threshold)
threshold
- threshold for removal of this activatibledouble getActivatibleRemovalThreshold()
boolean isRemovable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |