5 #include "CORE_Object.h"
11 #include "SM_StochasticOutputComponent.h"
19 template<
class CYCLE_CLASS>
29 tBoolean mIsSeedUpdated;
31 tBoolean mIsRestoring;
32 tBoolean mIsOutputSavedAtEachStep;
42 mIsOutputSavedAtEachStep=
true;
92 mIsOutputSavedAtEachStep=b;
98 return mIsOutputSavedAtEachStep;
112 return mIsSeedUpdated;
152 const tInteger& outputId,
153 tIndex& iCycleStep) {
154 return static_cast< CYCLE_CLASS*
>(
this)->
open(beam,stochasticOutput,outputId,iCycleStep);
172 static_cast< CYCLE_CLASS*
>(
this)->
nextCycleStep(iCycleStep,beam,outputId,output);
188 return static_cast<CYCLE_CLASS*
>(
this)->
close(iCycle,beam);
194 std::stringstream ret;
196 ret<<
"\t is seed updated at each step of cycle:"<<((mIsSeedUpdated)?
"true":
"false")<<
"\n";
197 ret<<
"\t updated seed at each step of cycle:"<<mSeed<<
"\n";
198 ret<<
"\t is restoring:"<<mIsRestoring<<
"\n";
199 ret<<
"\t stochastic output saved at each step:"<<mIsOutputSavedAtEachStep<<
"\n";
abstract base class for most classes.
Definition: CORE_Object.h:65
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: CORE_Object.h:278
virtual tString toString() const
return the string representation of the object node
Definition: CORE_Object.h:333
This class is an interface of Beam Cycle class for Stoch Microm package.
Definition: SM_BeamCycle.h:20
tBoolean close(const tIndex &iCycle, const SM_Beam &beam)
return true if the cycle is close without error
Definition: SM_BeamCycle.h:186
void nextCycleStep(const tIndex &iCycleStep, SM_Beam &beam, const SM_StochasticOutputComponent &output)
next step of the cycle of beam run
Definition: SM_BeamCycle.h:162
void setIsRestoring(const tBoolean &v)
set to true if the cycle is restoring
Definition: SM_BeamCycle.h:132
const tULLInt & getSeedPerCycleStep() const
get the seed
Definition: SM_BeamCycle.h:124
void setIsStochasticOutputSavedAtEachStep(const tBoolean &b)
set is the output is saved at each step
Definition: SM_BeamCycle.h:91
void setIsSeedUpdatedPerCycleStep(const tBoolean &b)
set if the seed is generated at each step of the cycle
Definition: SM_BeamCycle.h:104
void nextCycleStep(const tIndex &iCycleStep, SM_Beam &beam, const tInteger &outputId, const SM_StochasticOutputComponent &output)
next step of the cycle of beam run
Definition: SM_BeamCycle.h:171
virtual tString toString() const override
return the string representation of the class
Definition: SM_BeamCycle.h:193
const tBoolean & isRestoring() const
return true if the cycle starts at last computed cycle index
Definition: SM_BeamCycle.h:137
tBoolean open(SM_Beam &beam, SM_StochasticOutputComponent &stochasticOutput, const tInteger &outputId, tIndex &iCycleStep)
init the cycle of beam run
Definition: SM_BeamCycle.h:150
virtual ~SM_BeamCycle(void)
destroy
Definition: SM_BeamCycle.h:48
SM_BeamCycle(void)
create
Definition: SM_BeamCycle.h:38
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_BeamCycle.h:77
tBoolean isCycleFinished(const tIndex &iCycle, const SM_Beam &beam)
return true if the cycle is finished
Definition: SM_BeamCycle.h:178
const tBoolean & isStochasticOutputSavedAtEachStep() const
get if the output is saved at each step
Definition: SM_BeamCycle.h:97
void setSeedPerCycleStep(const tULLInt &seed)
set the seed per step of each step cycle
Definition: SM_BeamCycle.h:118
const tBoolean & isSeedUpdatedPerCycleStep() const
return true if the seed is generated at each cycle step
Definition: SM_BeamCycle.h:111
This class defines a general stochastic beam of trajectories of system.
Definition: SM_Beam.h:61
This class stores stochastic outpus computed for each trajectory of a simulation of trajectories of a...
Definition: SM_StochasticOutputComponent.h:36