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, ADEVS_TIME_TYPE t_granule = ADEVS_EPSILON)
Create and initialize 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)
Run the simulation until the time of next event is greater than t_max
[more]ADEVS_TIME_TYPE timeCurrent()
Get the current simulation time
[more]ADEVS_TIME_TYPE timeNext()
Returns the time of next event
[more]ADEVS_TIME_TYPE timeLast()
Returns the time 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, ADEVS_TIME_TYPE t_granule = ADEVS_EPSILON)
Reset the simulator and reinitialize the model
[more]virtual bool halt()
Returns true if the simulator should stop, false otherwise.
[more]virtual ~devssim()
Destructor.


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, ADEVS_TIME_TYPE t_granule = ADEVS_EPSILON)
Create and initialize 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. The values of the PortValue objects are owned by the caller and can be freed when the step() method returns.

ovoid run(ADEVS_TIME_TYPE t_max = ADEVS_INFINITY)
Run the simulation until the time of next event is greater than t_max

oADEVS_TIME_TYPE timeCurrent()
Get the current simulation time

oADEVS_TIME_TYPE timeNext()
Returns the time of next event

oADEVS_TIME_TYPE timeLast()
Returns the time of the last event

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

ovirtual void reset(ADEVS_TIME_TYPE t0 = ADEVS_ZERO, ADEVS_TIME_TYPE t_granule = ADEVS_EPSILON)
Reset the simulator and reinitialize the model

ovirtual bool halt()
Returns true if the simulator should stop, false otherwise. This method is called by the simulator at the end of each simulation cycle. The default behavior is to return true when the model becomes passive.

ovirtual ~devssim()
Destructor. Does not delete the model.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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