public abstract class AbstractRlStrategy extends AbstractStrategy implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Strategy[] |
actions |
protected Strategy |
currentStrategy |
protected double[] |
initialPropensities |
protected org.springframework.beans.factory.ObjectFactory<Strategy> |
strategyFactory |
agent, scheduler
Constructor and Description |
---|
AbstractRlStrategy() |
AbstractRlStrategy(Agent agent) |
Modifier and Type | Method and Description |
---|---|
double[] |
getInitialPropensities() |
abstract int |
getNumberOfActions() |
org.springframework.beans.factory.ObjectFactory<Strategy> |
getStrategyFactory() |
void |
initialise() |
void |
setStrategyFactory(org.springframework.beans.factory.ObjectFactory<Strategy> strategyFactory) |
void |
unsubscribeFromEvents()
The strategy should call
EventScheduler.removeListener()
to unsubscribe from events when this method is called. |
clone, eventOccurred, execute, fireEvent, getAgent, getScheduler, onSimulationFinished, setAgent, setScheduler, subscribeToEvents, subscribeToEvents
protected Strategy[] actions
protected Strategy currentStrategy
protected transient org.springframework.beans.factory.ObjectFactory<Strategy> strategyFactory
protected double[] initialPropensities
public AbstractRlStrategy(Agent agent)
public AbstractRlStrategy()
public void unsubscribeFromEvents()
Strategy
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.unsubscribeFromEvents
in interface Strategy
unsubscribeFromEvents
in class AbstractStrategy
public org.springframework.beans.factory.ObjectFactory<Strategy> getStrategyFactory()
public void setStrategyFactory(org.springframework.beans.factory.ObjectFactory<Strategy> strategyFactory)
public double[] getInitialPropensities()
public void initialise()
public abstract int getNumberOfActions()
Copyright © 2014. All rights reserved.