93 retState.
add(**varIter);
103 for (
auto varIter =
endState_.variablesSequence().beginSafe();
104 varIter !=
endState_.variablesSequence().endSafe();
Class for simulating a discrete time stochastic process.
AbstractSimulator()
Default constructor.
virtual SequenceIteratorSafe< const DiscreteVariable * > endVariables()=0
Iteration over the variables of the simulated probleme.
virtual Instantiation randomState_()
Choses a random state as the first test for a run.
Instantiation currentState_
Tha state in which the system currently is.
virtual SequenceIteratorSafe< const DiscreteVariable * > beginVariables()=0
Iteration over the variables of the simulated probleme.
virtual ~AbstractSimulator()
Default destructor.
virtual bool hasReachEnd()
Tests if end state has been reached.
void setInitialStateRandomly()
Sets the intial statefrom which we begun the simulation.
Class for assigning/browsing values to tuples of discrete variables.
Instantiation & chgVal(const DiscreteVariable &v, Idx newval)
Assign newval to variable v in the Instantiation.
void add(const DiscreteVariable &v) final
Adds a new variable in the Instantiation.
Idx randomValue(const Size max=2)
Returns a random Idx between 0 and max-1 included.
gum is the global namespace for all aGrUM entities