net.sourceforge.jabm.strategy
Class AbstractRlStrategy
java.lang.Object
net.sourceforge.jabm.strategy.AbstractStrategy
net.sourceforge.jabm.strategy.AbstractRlStrategy
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, EventListener, Strategy
- Direct Known Subclasses:
- RlStrategy, RlStrategyWithState
public abstract class AbstractRlStrategy
- extends AbstractStrategy
- implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Methods inherited from class net.sourceforge.jabm.strategy.AbstractStrategy |
clone, eventOccurred, execute, fireEvent, getAgent, getScheduler, onSimulationFinished, setAgent, setScheduler, subscribeToEvents, subscribeToEvents |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
actions
protected Strategy[] actions
currentStrategy
protected Strategy currentStrategy
strategyFactory
protected transient org.springframework.beans.factory.ObjectFactory<Strategy> strategyFactory
initialPropensities
protected double[] initialPropensities
AbstractRlStrategy
public AbstractRlStrategy(Agent agent)
AbstractRlStrategy
public AbstractRlStrategy()
unsubscribeFromEvents
public void unsubscribeFromEvents()
- Description copied from interface:
Strategy
- The strategy should call
EventScheduler.removeListener()
to unsubscribe from events when this method is called. This hook is
used to clean-up, for example when the strategy is disposed of.
- Specified by:
unsubscribeFromEvents
in interface Strategy
- Overrides:
unsubscribeFromEvents
in class AbstractStrategy
getStrategyFactory
public org.springframework.beans.factory.ObjectFactory<Strategy> getStrategyFactory()
setStrategyFactory
public void setStrategyFactory(org.springframework.beans.factory.ObjectFactory<Strategy> strategyFactory)
getInitialPropensities
public double[] getInitialPropensities()
initialise
public void initialise()
getNumberOfActions
public abstract int getNumberOfActions()