Basic simulator for the parallel DEVS protocol
Inheritance:
Public Fields
-
typedef enum COORD Type
Public Methods
-
basic_pdevs_sim(basic_pdevs_sim::Type type)
-
virtual void computeInputOutput()
- Compute the model I/O for time t = tN()
-
const adevs_bag<PortValue> & getOutput()
- Get the output for this model previously computed with computeInputOutput()
-
virtual void computeDeltaFunc(TIME_TYPE t)
- Compute the next state of this model for time t <= tN().
-
virtual void endOfCycle()
- Do garbage collection and rescheduling at the end of a simulation cycle
-
void inject(const PortValue& x)
- Inject a bag of inputs for use during the next call to computeDeltaFunc()
-
void inject(const adevs_bag<PortValue>& x)
- Inject an input for use during the next call to computeDeltaFunc()
-
devs* getModel()
- Get the model associated with this simulator
-
TIME_TYPE timeNext()
-
TIME_TYPE timeLast()
-
TIME_TYPE timeCurrent()
-
virtual void detachModel()
- Detach the model from this simulator.
-
Type getType() const
-
virtual ~basic_pdevs_sim()
Public
-
typedef enum SIM
Protected Fields
-
static TIME_TYPE granule
-
adevs_bag<PortValue> y
-
adevs_bag<PortValue> x
Protected Methods
-
void setModel(devs* m)
-
basic_pdevs_sim()
Documentation
Basic simulator for the parallel DEVS protocol
typedef enum SIM
typedef enum COORD Type
basic_pdevs_sim(basic_pdevs_sim::Type type)
virtual void computeInputOutput()
- Compute the model I/O for time t = tN()
const adevs_bag<PortValue> & getOutput()
- Get the output for this model previously computed with computeInputOutput()
virtual void computeDeltaFunc(TIME_TYPE t)
-
Compute the next state of this model for time t <= tN().
Will apply all injected inputs at time t and use the results
of the previous call to computeInputOutput() if t = tN().
virtual void endOfCycle()
- Do garbage collection and rescheduling at the end of a simulation cycle
void inject(const PortValue& x)
- Inject a bag of inputs for use during the next call to computeDeltaFunc()
void inject(const adevs_bag<PortValue>& x)
- Inject an input for use during the next call to computeDeltaFunc()
devs* getModel()
- Get the model associated with this simulator
TIME_TYPE timeNext()
TIME_TYPE timeLast()
TIME_TYPE timeCurrent()
virtual void detachModel()
-
Detach the model from this simulator. Performs garbage collection,
cleans up internal data structures, and sets the model to NULL.
Type getType() const
virtual ~basic_pdevs_sim()
static TIME_TYPE granule
adevs_bag<PortValue> y
adevs_bag<PortValue> x
void setModel(devs* m)
basic_pdevs_sim()
- Direct child classes:
- pdevs_sim
pdevs_coord
- Friends:
- void setAdevsTimeGranule(TIME_TYPE t) { granule = t
TIME_TYPE getAdevsTimeGranule() { return granule
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.