edu.memphis.ccrg.lida.framework.strategies
Class LinearExciteStrategy
java.lang.Object
edu.memphis.ccrg.lida.framework.strategies.StrategyImpl
edu.memphis.ccrg.lida.framework.strategies.LinearExciteStrategy
- All Implemented Interfaces:
- Initializable, ExciteStrategy, Strategy, java.io.Serializable
public class LinearExciteStrategy
- extends StrategyImpl
- implements ExciteStrategy
Basic ExciteStrategy
governed by a linear curve.
- See Also:
- Serialized Form
Method Summary |
double |
excite(double currentActivation,
double excitation,
java.util.Map<java.lang.String,?> params)
|
double |
excite(double currentActivation,
double excitation,
java.lang.Object... params)
Excites the current activation according to some internal excite function. |
void |
init()
This is a convenience method to initialize this Object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinearExciteStrategy
public LinearExciteStrategy()
- Creates a new instance of LinearCurve. Values for slope and intercept are
set to the default ones.
init
public void init()
- Description copied from interface:
Initializable
- This is a convenience method to initialize this Object. It is called from init(Map parameters).
Subclasses can overwrite this method in order to initialize this Object. But make sure to call super.init();
at the beginning of the implementation of this method.
- Specified by:
init
in interface Initializable
- Overrides:
init
in class StrategyImpl
excite
public double excite(double currentActivation,
double excitation,
java.lang.Object... params)
- Description copied from interface:
ExciteStrategy
- 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 addsparams
- parameters
- Returns:
- new activation amount
excite
public double excite(double currentActivation,
double excitation,
java.util.Map<java.lang.String,?> params)
- Specified by:
excite
in interface ExciteStrategy
- Parameters:
currentActivation
- activation of the entity before excite.excitation
- amount of activation to addsparams
- parameters
- Returns:
- new activation amount