class basic_pdevs_sim

Basic simulator for the parallel DEVS protocol

Inheritance:


Public Fields

[more]typedef enum COORD Type

Public Methods

[more] basic_pdevs_sim(basic_pdevs_sim::Type type)
[more]virtual void computeInputOutput()
Compute the model I/O for time t = tN()
[more]const adevs_bag<PortValue> & getOutput()
Get the output for this model previously computed with computeInputOutput()
[more]virtual void computeDeltaFunc(TIME_TYPE t)
Compute the next state of this model for time t <= tN().
[more]virtual void endOfCycle()
Do garbage collection and rescheduling at the end of a simulation cycle
[more]void inject(const PortValue& x)
Inject a bag of inputs for use during the next call to computeDeltaFunc()
[more]void inject(const adevs_bag<PortValue>& x)
Inject an input for use during the next call to computeDeltaFunc()
[more]devs* getModel()
Get the model associated with this simulator
[more]TIME_TYPE timeNext()
[more]TIME_TYPE timeLast()
[more]TIME_TYPE timeCurrent()
[more]virtual void detachModel()
Detach the model from this simulator.
[more]Type getType() const
[more]virtual ~basic_pdevs_sim()

Public

[more]typedef enum SIM

Protected Fields

[more]static TIME_TYPE granule
[more]adevs_bag<PortValue> y
[more]adevs_bag<PortValue> x

Protected Methods

[more]void setModel(devs* m)
[more] basic_pdevs_sim()


Inherited from basic_sim:


Documentation

Basic simulator for the parallel DEVS protocol
otypedef enum SIM

otypedef enum COORD Type

o basic_pdevs_sim(basic_pdevs_sim::Type type)

ovirtual void computeInputOutput()
Compute the model I/O for time t = tN()

oconst adevs_bag<PortValue> & getOutput()
Get the output for this model previously computed with computeInputOutput()

ovirtual 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().

ovirtual void endOfCycle()
Do garbage collection and rescheduling at the end of a simulation cycle

ovoid inject(const PortValue& x)
Inject a bag of inputs for use during the next call to computeDeltaFunc()

ovoid inject(const adevs_bag<PortValue>& x)
Inject an input for use during the next call to computeDeltaFunc()

odevs* getModel()
Get the model associated with this simulator

oTIME_TYPE timeNext()

oTIME_TYPE timeLast()

oTIME_TYPE timeCurrent()

ovirtual void detachModel()
Detach the model from this simulator. Performs garbage collection, cleans up internal data structures, and sets the model to NULL.

oType getType() const

ovirtual ~basic_pdevs_sim()

ostatic TIME_TYPE granule

oadevs_bag<PortValue> y

oadevs_bag<PortValue> x

ovoid setModel(devs* m)

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