edu.memphis.ccrg.lida.framework.strategies
Class NoDecayStrategy

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.initialization.InitializableImpl
      extended by edu.memphis.ccrg.lida.framework.strategies.StrategyImpl
          extended by edu.memphis.ccrg.lida.framework.strategies.NoDecayStrategy
All Implemented Interfaces:
Initializable, DecayStrategy, Strategy

public class NoDecayStrategy
extends StrategyImpl
implements DecayStrategy

A DecayStrategy that never modifies the activation passed to it.

Author:
Ryan J. McCall, Javier Snaider

Constructor Summary
NoDecayStrategy()
          Default constructor
 
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.
 
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

NoDecayStrategy

public NoDecayStrategy()
Default constructor

Method Detail

decay

public double decay(double currentActivation,
                    long ticks,
                    java.lang.Object... params)
Decays the current activation according to some internal decay function.

Specified by:
decay in interface DecayStrategy
Parameters:
currentActivation - activation of the entity before decay.
ticks - The number of ticks to decay.
params - optional parameters: N/A
Returns:
new activation

decay

public 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.

Specified by:
decay in interface DecayStrategy
Parameters:
currentActivation - activation of the entity before decay.
ticks - how much time has passed since last decay
params - parameters: N/A
Returns:
new activation amount