49#ifndef GUM_FMDP_SIMULATOR_H
50#define GUM_FMDP_SIMULATOR_H
105 return _fmdp_->main2prime(mainVar);
110 return _fmdp_->beginVariables();
114 return _fmdp_->endVariables();
138 _fmdp_->transition(actionId, var))
Class for simulating a discrete time stochastic process.
AbstractSimulator()
Default constructor.
Instantiation currentState_
Tha state in which the system currently is.
Base class for discrete random variable.
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.
SequenceIteratorSafe< Idx > endActions()
Iteration over the variables of the simulated probleme.
FMDP< double > * _fmdp_
The Factored Markov Decision Process that describes how the system evolves.
SequenceIteratorSafe< Idx > beginActions()
Iteration over the variables of the simulated probleme.
void perform(Idx)
Sets the intial statefrom which we begun the simulation.
virtual const std::string & actionName(Idx actionId)
Iteration over the variables of the simulated probleme.
double reward()
Sets the intial statefrom which we begun the simulation.
virtual double transitionProbability_(const DiscreteVariable *var, const Instantiation &transit, Idx actionId)
~FMDPSimulator()
Default destructor.
const DiscreteVariable * primeVar(const DiscreteVariable *mainVar)
Iteration over the variables of the simulated probleme.
const bool _loaded_
Just to know if it should be deleted in the end.
Class for assigning/browsing values to tuples of discrete variables.
virtual GUM_SCALAR get(const Instantiation &i) const
Returns the value pointed by i.
Safe iterators for Sequence.
Size Idx
Type for indexes.
gum is the global namespace for all aGrUM entities