80 newState.
add(**varIter);
90 newState.
chgVal(**varIter, transit.
val(*(this->primeVar(*varIter))));
void perform(Idx)
Sets the intial statefrom which we begun the simulation.
<agrum/FMDP/simulation/abstractSimulator.h>
const DiscreteVariable * primeVar(const DiscreteVariable *mainVar)
Iteration over the variables of the simulated probleme.
virtual double _transitionProbability(const DiscreteVariable *var, const Instantiation &transit, Idx actionId)
Instantiation & chgVal(const DiscreteVariable &v, Idx newval)
Assign newval to variable v in the Instantiation.
<agrum/FMDP/simulation/fmdpSimulator.h>
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
const bool __loaded
Just to know if it should be deleted in the end.
Definition of templatized reader of FMDPDat files for Factored Markov Decision Processes.
Idx val(Idx i) const
Returns the current value of the variable at position i.
Instantiation _currentState
Tha state in which the system currently is.
void incOut(const Instantiation &i)
Operator increment for the variables not in i.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
SequenceIteratorSafe< const DiscreteVariable *> endVariables()
Iteration over the variables of the simulated probleme.
FMDPSimulator(const FMDP< double > *fmdp)
Default constructor.
SequenceIteratorSafe< const DiscreteVariable *> beginVariables()
Iteration over the variables of the simulated probleme.
Class for assigning/browsing values to tuples of discrete variables.
FMDP< double > * __fmdp
The Factored Markov Decision Process that describes how the system evolves.
Size Idx
Type for indexes.
void add(const DiscreteVariable &v) final
Adds a new variable in the Instantiation.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
bool end() const
Returns true if the Instantiation reached the end.
void setFirstOut(const Instantiation &i)
Assign the first values in the Instantiation for the variables not in i.
~FMDPSimulator()
Default destructor.