class pdevs_sim

A single component simulator

Inheritance:


Public Methods

[more] pdevs_sim(atomic* model, ADEVS_TIME_TYPE t_granule = ADEVS_EPSILON)
Construct a simulator for the supplied atomic model
[more]void computeInputOutput()
Compute model output for time t = tN()
[more]const adevs_bag<PortValue> & getOutput()
Get the model output compute via the last call to computeInputOutput()
[more]void computeDeltaFunc(ADEVS_TIME_TYPE t)
Compute next state of the model at time t using in supplied via the inject method
[more]void endOfCycle()
End of cycle garbage collection
[more]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
[more]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
[more]ADEVS_TIME_TYPE timeNext() const
Get the simulator's time of next event
[more]ADEVS_TIME_TYPE timeLast() const
Get time of last event
[more] ~pdevs_sim()
Destructor

Protected Fields

[more]atomic* model
[more]adevs_bag<PortValue> x
[more]adevs_bag<PortValue> y

Protected Methods

[more] pdevs_sim()
[more] pdevs_sim(const pdevs_sim& src)
[more]void operator=(const pdevs_sim& src)


Inherited from basic_sim:

Public Methods

oADEVS_TIME_TYPE getTimeGranule() const
ovirtual void restore_state(ADEVS_TIME_TYPE t)
ovirtual void remove_fossils(ADEVS_TIME_TYPE t_old)

Protected Fields

oADEVS_TIME_TYPE t_granule


Documentation

A single component simulator
o pdevs_sim(atomic* model, ADEVS_TIME_TYPE t_granule = ADEVS_EPSILON)
Construct a simulator for the supplied atomic model

ovoid computeInputOutput()
Compute model output for time t = tN()

oconst adevs_bag<PortValue> & getOutput()
Get the model output compute via the last call to computeInputOutput()

ovoid computeDeltaFunc(ADEVS_TIME_TYPE t)
Compute next state of the model at time t using in supplied via the inject method

ovoid endOfCycle()
End of cycle garbage collection

ovoid 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

ovoid 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

oADEVS_TIME_TYPE timeNext() const
Get the simulator's time of next event

oADEVS_TIME_TYPE timeLast() const
Get time of last event

o ~pdevs_sim()
Destructor

oatomic* model

oadevs_bag<PortValue> x

oadevs_bag<PortValue> y

o pdevs_sim()

o pdevs_sim(const pdevs_sim& src)

ovoid 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++.