29 #ifndef GUM_ABSTRACT_SIMULATOR_H 30 #define GUM_ABSTRACT_SIMULATOR_H 95 virtual double reward() = 0;
136 #endif // GUM__ABSTRACT_SIMULATOR_H virtual double reward()=0
Sets the intial statefrom which we begun the simulation.
Safe iterators for Sequence.
virtual bool hasReachEnd()
Tests if end state has been reached.
<agrum/FMDP/simulation/abstractSimulator.h>
virtual SequenceIteratorSafe< Idx > endActions()=0
Iteration over the variables of the simulated probleme.
virtual void perform(Idx)=0
Sets the intial statefrom which we begun the simulation.
Base class for discrete random variable.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
INLINE const Instantiation & currentState()
Sets the intial statefrom which we begun the simulation.
Instantiation _currentState
Tha state in which the system currently is.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual ~AbstractSimulator()
Default destructor.
void setInitialStateRandomly()
Sets the intial statefrom which we begun the simulation.
INLINE void setEndState(const Instantiation &endState)
Sets the final states upon which a run is over.
virtual const DiscreteVariable * primeVar(const DiscreteVariable *mainVar)=0
Iteration over the variables of the simulated probleme.
virtual SequenceIteratorSafe< const DiscreteVariable *> beginVariables()=0
Iteration over the variables of the simulated probleme.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual Instantiation _randomState()
Choses a random state as the first test for a run.
virtual SequenceIteratorSafe< const DiscreteVariable *> endVariables()=0
Iteration over the variables of the simulated probleme.
Class for assigning/browsing values to tuples of discrete variables.
Size Idx
Type for indexes.
virtual const std::string & actionName(Idx)=0
Iteration over the variables of the simulated probleme.
virtual SequenceIteratorSafe< Idx > beginActions()=0
Iteration over the variables of the simulated probleme.
INLINE void setInitialState(const Instantiation &initialState)
Sets the intial statefrom which we begun the simulation.
AbstractSimulator()
Default constructor.