1 #ifndef SM_CycleLoader_H
2 #define SM_CycleLoader_H
5 #include "CORE_Object.h"
8 #include "SM_BeamTemperatureRange.h"
9 #include "SM_BeamHysteresis.h"
10 #include "SM_BeamTimeStepRange.h"
12 #include "SM_BeamRandomJRange.h"
96 tBoolean isSeedUpdated;
97 if (options.
getOptionValue(
"is-step-cycle-seed-updated",isSeedUpdated)) {
109 tBoolean isRestoring=
false;
113 tBoolean isStochasticOutputSavedAtCStep=
true;
114 options.
getOptionValue(
"is-stochastic-output-saved-at-each-cycle-step",isStochasticOutputSavedAtCStep);
119 return LoadHysteresisCycleFromOptions(*hys,options);
123 return LoadTemperatureCycleFromOptions(*temps,options);
127 return LoadRandomJCycleFromOptions(*js,options);
131 return LoadTimeStepCycleFromOptions(*dts,options);
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
This class is an list of options.
Definition: CORE_OptionsList.h:36
tBoolean getOptionValue(const tString &optName, tString &optValue) const
get the option value
Definition: CORE_OptionsList.h:334
This class is an interface of Beam Cycle class for Stoch Microm package.
Definition: SM_BeamCycle.h:20
void setIsRestoring(const tBoolean &v)
set to true if the cycle is restoring
Definition: SM_BeamCycle.h:132
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 setSeedPerCycleStep(const tULLInt &seed)
set the seed per step of each step cycle
Definition: SM_BeamCycle.h:118
This class is an hysteresis cycle manager for running a cycle of a beam class for Stoch Microm packag...
Definition: SM_BeamHysteresis.h:28
This class is an temperature cycle manager for running a cycle of beam class for Stoch Microm package...
Definition: SM_BeamRandomJRange.h:14
This class is an temperature cycle manager for running a cycle of beam class for Stoch Microm package...
Definition: SM_BeamTemperatureRange.h:14
This class is a time step cycle manager for running a cycle of beam class for Stoch Microm package.
Definition: SM_BeamTimeStepRange.h:16
this class loads classes of the package
Definition: SM_CycleLoader.h:20
static tBoolean LoadCycleFromOptions(SM_BeamCycle< T > &cycle, const CORE_OptionsList &options)
load the cycle from options
Definition: SM_CycleLoader.h:94
SM_CycleLoader()
build a SM_CycleLoader
Definition: SM_CycleLoader.h:43
virtual tMemSize getMemorySize() const override
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_CycleLoader.h:78
virtual ~SM_CycleLoader(void)
destroy a SM_CycleLoader
Definition: SM_CycleLoader.h:53