7 #define I_REALLY_KNOW_HOW_TO_USE_WAITUNTIL 15 limitation( v, -1, 1),
17 y( limitation*F, 1) {}
45 Print(
"Model _TEST_ --- test model for SIMLIB/C++ \n");
void Behavior() override
behavior description
void SetAccuracy(double _abserr, double _relerr)
set max.
nonlinear block: limitation
State variables (memory) base for blocks with internal state (Relay, ...)
void Run()
run simulation experiment
aContiBlock & T
simulation time block reference
virtual double Value() override
value of state variable
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...
const double & Time
model time (is NOT the block)
void SetStep(double _dtmin, double _dtmax)
Set integration step interval.
TestProcess globalprocess
void Init(double t0, double t1=SIMLIB_MAXTIME)
Initialize simulator and model time.
void Activate(Entity *e)
activate entity e
virtual void Activate(double t) override
activate at time t (schedule)
Main SIMLIB/C++ interface.
block: constant (value can not be changed)
Abstract base class for all simulation processesProcess behavior is specified by Behavior method and ...
virtual double Value()=0
get block output value this method should be defined in classes derived from aContiBlock ...
block for numerical integration input is derivative, output is state
double Value() override
the state of integrator