43 step((dt>0.0) ? dt : 0.0),
46 Dprintf((
"Sampler::Sampler(%p,%g)", pf, dt));
61 Dprintf((
"Sampler::~Sampler() // \"%p\" ",
function));
82 Print(
"Sampler%p, function=%p, last=%g, on=%i\n",
91 Dprintf((
"Sampler::Behavior()"));
159 double laststep=
step;
160 step = (dt>0.0) ? dt : 0.0;
static void InitAll()
initialize all samplers (Init)
double step
step of sampling
void Sample()
performs sample (function call)
double last
last sample time – prevents sample duplication
Sampler(void(*pf)(), double dt=0.0)
virtual void Passivate()
deactivation
int Print(const char *fmt,...)
for Output methods, can be redirected
objects of this class call global function periodically (typicaly used for output of continuous model...
Implementation of class CalendarList interface is static - using global functions in SQS namespace...
const double & Time
model time (is NOT the block)
virtual void Behavior() override
behavior description
static void ActivateAll()
start all samplers (Run)
Internal header file for SIMLIB/C++.
void Start()
start + sample
Main SIMLIB/C++ interface.
#define INSTALL_HOOK(name, function)
double SetStep(double dt=0.0)
change step
virtual void Output() const override
print object to default output
void Activate()
activate now