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

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.LinearExciteStrategy
All Implemented Interfaces:
Initializable, ExciteStrategy, Strategy

public class LinearExciteStrategy
extends StrategyImpl
implements ExciteStrategy

Basic ExciteStrategy governed by a linear curve.

Author:
Ryan J. McCall, Javier Snaider

Constructor Summary
LinearExciteStrategy()
          Creates a new instance of LinearCurve.
 
Method Summary
 double excite(double currentActivation, double excitation, java.util.Map<java.lang.String,?> params)
          Excites the current activation according to some internal excite function.
 double excite(double currentActivation, double excitation, java.lang.Object... params)
          Excites the current activation according to some internal excite 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

LinearExciteStrategy

public LinearExciteStrategy()
Creates a new instance of LinearCurve. Values for slope and intercept are set to the default ones.

Method Detail

init

public void init()
If this method is overridden, this init() must be called first! i.e. super.init(); Will set parameters with the following names:

m slope of the excite function
If any parameter is not specified its default value will be used.

Specified by:
init in interface Initializable
Overrides:
init in class InitializableImpl
See Also:
Initializable

excite

public double excite(double currentActivation,
                     double excitation,
                     java.lang.Object... params)
Excites the current activation according to some internal excite function.

Specified by:
excite in interface ExciteStrategy
Parameters:
currentActivation - activation of the entity before excite.
excitation - amount of activation to adds
params - optionally accepts 1 double parameter specifying the slope of excitation and activations.
Returns:
new activation amount

excite

public double excite(double currentActivation,
                     double excitation,
                     java.util.Map<java.lang.String,?> params)
Excites the current activation according to some internal excite function.

Specified by:
excite in interface ExciteStrategy
Parameters:
currentActivation - activation of the entity before excite.
excitation - amount of activation to adds
params - optionally accepts 1 parameter specifying the slope of excitation and activations.
Returns:
new activation amount