7#define I_REALLY_KNOW_HOW_TO_USE_WAITUNTIL
45 Print(
"Model _TEST_ --- test model for SIMLIB/C++ \n");
TestProcess globalprocess
void Behavior() override
behavior description
block: constant (value can not be changed)
block for numerical integration input is derivative, output is state
double Value() override
the state of integrator
nonlinear block: limitation
Abstract base class for all simulation processesProcess behavior is specified by Behavior method and ...
virtual void Wait(double dtime)
wait for dtime interval
virtual void Activate(double t) override
activate at time t (schedule)
objects of this class call global function periodically (typicaly used for output of continuous model...
State variables (memory) base for blocks with internal state (Relay, ...)
virtual double Value() override
value of state variable
virtual double Value()=0
get block output value this method should be defined in classes derived from aContiBlock
void Activate(Entity *e)
activate entity e
const double & Time
model time (is NOT the block)
aContiBlock & T
simulation time block reference
void SetAccuracy(double _abserr, double _relerr)
set max.
void SetStep(double _dtmin, double _dtmax)
Set integration step interval.
void Run()
run simulation experiment
int Print(const char *fmt,...)
for Output methods, can be redirected
void Init(double t0, double t1=SIMLIB_MAXTIME)
Initialize simulator and model time.
Main SIMLIB/C++ interface.