class devssim

The devssim functions as the root coordinator for a simulation In generally, it should not be sub-classed, except to override the halt() method

Public Methods

[more] devssim(devs* model, ADEVS_TIME_TYPE t0 = ADEVS_ZERO)
Creates and initializes a simulator for the model with initial time t0
[more]void step(ADEVS_TIME_TYPE dt)
Step the simulator by dt units of time.
[more]void step(ADEVS_TIME_TYPE dt, const adevs_bag<PortValue>& input)
Steps the simulator after applying the PortValues in the input list to the top level model.
[more]void run(ADEVS_TIME_TYPE t_max = ADEVS_INFINITY)
[more]ADEVS_TIME_TYPE timeCurrent()
Returns the current simulation time
[more]ADEVS_TIME_TYPE timeNext()
Returns the time of next event
[more]ADEVS_TIME_TYPE timeLast()
Returns the time of of the last event
[more]bool isPassive()
Returns true if tN = ADEVS_INFINITY, false otherwise
[more]virtual void reset(ADEVS_TIME_TYPE t0 = ADEVS_ZERO)
Resets the simulator (reinitialize all models for another run)
[more]virtual bool halt()
Returns true if the simulator should stop, false otherwise.
[more]virtual ~devssim()


Documentation

The devssim functions as the root coordinator for a simulation In generally, it should not be sub-classed, except to override the halt() method
o devssim(devs* model, ADEVS_TIME_TYPE t0 = ADEVS_ZERO)
Creates and initializes a simulator for the model with initial time t0

ovoid step(ADEVS_TIME_TYPE dt)
Step the simulator by dt units of time. Throws an adevs_exception if dt < 0 or if (timeCurrent() + dt) > timeNext().

ovoid step(ADEVS_TIME_TYPE dt, const adevs_bag<PortValue>& input)
Steps the simulator after applying the PortValues in the input list to the top level model.

ovoid run(ADEVS_TIME_TYPE t_max = ADEVS_INFINITY)

oADEVS_TIME_TYPE timeCurrent()
Returns the current simulation time

oADEVS_TIME_TYPE timeNext()
Returns the time of next event

oADEVS_TIME_TYPE timeLast()
Returns the time of of the last event

obool isPassive()
Returns true if tN = ADEVS_INFINITY, false otherwise

ovirtual void reset(ADEVS_TIME_TYPE t0 = ADEVS_ZERO)
Resets the simulator (reinitialize all models for another run)

ovirtual bool halt()
Returns true if the simulator should stop, false otherwise. This method is called by the root coordinator/simulator at the end of each simulation cycle.

ovirtual ~devssim()


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.