|
||||||||||
| 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.strategies.StrategyImpl
edu.memphis.ccrg.lida.framework.strategies.LinearDecayStrategy
public class LinearDecayStrategy
Basic DecayStrategy governed by a linear curve.
| Constructor Summary | |
|---|---|
LinearDecayStrategy()
Creates a new instance of LinearCurve. |
|
| Method Summary | |
|---|---|
double |
decay(double currentActivation,
long ticks,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
Decays the current activation according to some internal decay function. |
double |
decay(double currentActivation,
long ticks,
java.lang.Object... params)
Decays the current activation according to some internal decay function. |
void |
init()
If this method is overridden, this init() must be called first! i.e. |
| Methods inherited from class edu.memphis.ccrg.lida.framework.initialization.InitializableImpl |
|---|
containsParameter, getParam, getParameters, 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 |
| Constructor Detail |
|---|
public LinearDecayStrategy()
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class InitializableImplInitializable
public double decay(double currentActivation,
long ticks,
java.lang.Object... params)
decay in interface DecayStrategycurrentActivation - activation of the entity before decay.ticks - The number of ticks to decay.params - optionally accepts 1 double parameter specifying the slope of
decay ticks and activations.
public double decay(double currentActivation,
long ticks,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
decay in interface DecayStrategycurrentActivation - activation of the entity before decay.ticks - how much time has passed since last decayparams - optionally accepts 1 parameter specifying the slope of
decay ticks and activations.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||