next up previous contents index
Next: Displaying State as a Up: Atomic DEVS: Atomic Previous: Atomic DEVS: Atomic   Contents   Index

Characteristic Functions

There are four public characteristic functions that are defined as abstract in 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 $ s_0$ , 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);


next up previous contents index
Next: Displaying State as a Up: Atomic DEVS: Atomic Previous: Atomic DEVS: Atomic   Contents   Index
MHHwang 2007-05-08