The devssim functions as the root coordinator for a simulation.
Public Methods
-
devssim(devs* model, TIME_TYPE t0 = ZERO)
- Creates and initializes a simulator for the model with initial time t0
-
void step(TIME_TYPE dt)
- Step the simulator by dt units of time.
-
void step(TIME_TYPE dt, const adevs_bag<PortValue>& input)
- Steps the simulator after applying the PortValues in the input list to the top level model.
-
void run(TIME_TYPE t_max = INFINITY)
-
TIME_TYPE timeCurrent()
- Returns the current simulation time
-
TIME_TYPE timeNext()
- Returns the time of next event
-
TIME_TYPE timeLast()
- Returns the time of of the last event
-
bool isPassive()
- Returns true if tN = INFINITY, false otherwise
-
virtual void reset(TIME_TYPE t0 = ZERO)
- Resets the simulator (reinitialize all models for another run)
-
virtual bool halt()
- Returns true if the simulator should stop, false otherwise.
-
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.
devssim(devs* model, TIME_TYPE t0 = ZERO)
- Creates and initializes a simulator for the model with initial time t0
void step(TIME_TYPE dt)
-
Step the simulator by dt units of time. Throws an adevs_exception
if dt < 0 or if (timeCurrent() + dt) > timeNext().
void step(TIME_TYPE dt, const adevs_bag<PortValue>& input)
-
Steps the simulator after applying the PortValues in the
input list to the top level model.
void run(TIME_TYPE t_max = INFINITY)
TIME_TYPE timeCurrent()
- Returns the current simulation time
TIME_TYPE timeNext()
- Returns the time of next event
TIME_TYPE timeLast()
- Returns the time of of the last event
bool isPassive()
- Returns true if tN = INFINITY, false otherwise
virtual void reset(TIME_TYPE t0 = ZERO)
-
Resets the simulator (reinitialize all models for another run)
virtual 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.
virtual ~devssim()
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.