Atomic
class. Thus the user
must override them to define a concrete class from
Atomic
.
The function init()
is used when the model needs to be
reset to its initial state
, such as at the beginning of a simulation run.
public abstract void init();
The function tau()
returns the lifespan of the current
state when the schedule of the next internal event is reset by the
time of an interrupting input event or an generating output event.
public abstract double tau();
The function delta_x(PortValue x)
defines the input state
transition caused by an input event x
. The return value
true
indicates that the next schedule needs to be updated
by calling tau()
. Contrarily, the return value false
indicates that the time for the next schedule needs to be
preserved.
public abstract bool delta_x(PortValue x) ;
The function delta_y(ref PortValue y)
defines the output
transition by generating an output event y
. Recall that the
schedule will be updated right after this occurs, based upon the
value of tau()
.
public abstract void delta_y(ref PortValue y);