A single component simulator
Inheritance:
Public Methods
-
pdevs_sim(atomic* model, ADEVS_TIME_TYPE t_granule = ADEVS_EPSILON)
-
Construct a simulator for the supplied atomic model
-
void computeInputOutput()
- Compute model output for time t = tN()
-
const adevs_bag<PortValue> & getOutput()
- Get the model output compute via the last call to computeInputOutput()
-
void computeDeltaFunc(ADEVS_TIME_TYPE t)
-
Compute next state of the model at time t using in supplied via the inject method
-
void endOfCycle()
- End of cycle garbage collection
-
void inject(const PortValue& x)
-
Inject a an input for use during the next call to computeDeltaFunc()
The input is owned by the caller and will not be deleted by the simulator
-
void inject(const adevs_bag<PortValue>& x)
-
Inject an input for use during the next call to computeDeltaFunc()
The input is owned by the caller and will not be deleted by the simulator
-
ADEVS_TIME_TYPE timeNext() const
- Get the simulator's time of next event
-
ADEVS_TIME_TYPE timeLast() const
- Get time of last event
-
~pdevs_sim()
- Destructor
Protected Fields
-
atomic* model
-
adevs_bag<PortValue> x
-
adevs_bag<PortValue> y
Protected Methods
-
pdevs_sim()
-
pdevs_sim(const pdevs_sim& src)
-
void operator=(const pdevs_sim& src)
Public Methods
-
ADEVS_TIME_TYPE getTimeGranule() const
-
virtual void restore_state(ADEVS_TIME_TYPE t)
-
virtual void remove_fossils(ADEVS_TIME_TYPE t_old)
Protected Fields
-
ADEVS_TIME_TYPE t_granule
Documentation
A single component simulator
pdevs_sim(atomic* model, ADEVS_TIME_TYPE t_granule = ADEVS_EPSILON)
-
Construct a simulator for the supplied atomic model
void computeInputOutput()
- Compute model output for time t = tN()
const adevs_bag<PortValue> & getOutput()
- Get the model output compute via the last call to computeInputOutput()
void computeDeltaFunc(ADEVS_TIME_TYPE t)
-
Compute next state of the model at time t using in supplied via the inject method
void endOfCycle()
- End of cycle garbage collection
void inject(const PortValue& x)
-
Inject a an input for use during the next call to computeDeltaFunc()
The input is owned by the caller and will not be deleted by the simulator
void inject(const adevs_bag<PortValue>& x)
-
Inject an input for use during the next call to computeDeltaFunc()
The input is owned by the caller and will not be deleted by the simulator
ADEVS_TIME_TYPE timeNext() const
- Get the simulator's time of next event
ADEVS_TIME_TYPE timeLast() const
- Get time of last event
~pdevs_sim()
- Destructor
atomic* model
adevs_bag<PortValue> x
adevs_bag<PortValue> y
pdevs_sim()
pdevs_sim(const pdevs_sim& src)
void operator=(const pdevs_sim& src)
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.