class atomic

Base type for all atomic DEVS models

Inheritance:


Public Methods

[more] atomic()
[more] atomic(const atomic& src)
[more]const atomic& operator=(const atomic& src)
[more]void init(ADEVS_TIME_TYPE t0)
Calls init() method.
[more]virtual void init() = 0
Initialization function
[more]virtual void delta_int() = 0
Internal transition function
[more]virtual void delta_ext(ADEVS_TIME_TYPE e, const adevs_bag<PortValue>& x) = 0
External transition function
[more]virtual void delta_conf(const adevs_bag<PortValue>& x) = 0
Confluent transition function
[more]virtual void output_func(adevs_bag<PortValue>& y) = 0
Output function
[more]virtual void gc_output(adevs_bag<PortValue>& g) = 0
Garbage collection function.
[more]virtual ~atomic()
[more]static void output(ADEVS_PORT_TYPE port, ADEVS_IO_TYPE value, adevs_bag<PortValue>& y)
Adds the PortValue pair (port,value) to the bag y
[more]ADEVS_TIME_TYPE timeNext() const
Get the time of the next internal event
[more]ADEVS_TIME_TYPE timeLast() const
Get the time of the last state transition
[more]ADEVS_TIME_TYPE timeCurrent() const
Get the current simulation time
[more]ADEVS_TIME_TYPE elapsed() const
Get the elapsed time since tL
[more]ADEVS_TIME_TYPE sigma() const
Get the time remaining until the next internal event
[more]ADEVS_TIME_TYPE ta() const
Get the value of the time advance function
[more]void hold(ADEVS_TIME_TYPE dt)
Sets the time of next event (timeNext()) to timeCurrent()+dt Throws an exception if dt < ADEVS_ZERO.
[more]void passivate()
Set the time of next event to ADEVS_INFINITY
[more]void setTimeCurrent(ADEVS_TIME_TYPE t_current)
For use by the simulator.
[more]void setTimeNext(ADEVS_TIME_TYPE t_next)
For use by the simulator.
[more]void setTimeLast(ADEVS_TIME_TYPE t_last)
For use by the simulator.
[more]atomic* typeIsAtomic()
[more]adevs_bag<PortValue> * get_output_bag()
For use by the simulator.
[more]adevs_bag<PortValue> * get_input_bag()
For use by the simulator.
[more]void set_input_bag(adevs_bag<PortValue>* xx)
For use by the simulator.
[more]void set_output_bag(adevs_bag<PortValue>* yy)
For use by the simulator.


Inherited from devs:

Public Methods

odevsn* getParent()
oconst devsn* getParent() const
ovoid setParent(devsn* model)
ovirtual devsn* typeIsNetwork()
ovirtual netExec* typeIsNetExec()
ounsigned long get_cellspace_key() const
ovoid set_cellspace_key(unsigned long cell_key)


Inherited from object:

Public Methods

ovirtual object* clone() const


Documentation

Base type for all atomic DEVS models
o atomic()

o atomic(const atomic& src)

oconst atomic& operator=(const atomic& src)

ovoid init(ADEVS_TIME_TYPE t0)
Calls init() method. timeCurrent() == t0 will be true.

ovirtual void init() = 0
Initialization function

ovirtual void delta_int() = 0
Internal transition function

ovirtual void delta_ext(ADEVS_TIME_TYPE e, const adevs_bag<PortValue>& x) = 0
External transition function

ovirtual void delta_conf(const adevs_bag<PortValue>& x) = 0
Confluent transition function

ovirtual void output_func(adevs_bag<PortValue>& y) = 0
Output function

ovirtual void gc_output(adevs_bag<PortValue>& g) = 0
Garbage collection function. The PortValue objects in g are no longer in use by the simulation engine and should be disposed of. ` Note that the elements in g are only those PortValue objects produced as output by this model.

ovirtual ~atomic()

ostatic void output(ADEVS_PORT_TYPE port, ADEVS_IO_TYPE value, adevs_bag<PortValue>& y)
Adds the PortValue pair (port,value) to the bag y

oADEVS_TIME_TYPE timeNext() const
Get the time of the next internal event

oADEVS_TIME_TYPE timeLast() const
Get the time of the last state transition

oADEVS_TIME_TYPE timeCurrent() const
Get the current simulation time

oADEVS_TIME_TYPE elapsed() const
Get the elapsed time since tL

oADEVS_TIME_TYPE sigma() const
Get the time remaining until the next internal event

oADEVS_TIME_TYPE ta() const
Get the value of the time advance function

ovoid hold(ADEVS_TIME_TYPE dt)
Sets the time of next event (timeNext()) to timeCurrent()+dt Throws an exception if dt < ADEVS_ZERO. This is the preferred method for scheduling an event.

ovoid passivate()
Set the time of next event to ADEVS_INFINITY

ovoid setTimeCurrent(ADEVS_TIME_TYPE t_current)
For use by the simulator. Sets the current time.

ovoid setTimeNext(ADEVS_TIME_TYPE t_next)
For use by the simulator. Sets the next event time.

ovoid setTimeLast(ADEVS_TIME_TYPE t_last)
For use by the simulator. Sets the last event time.

oatomic* typeIsAtomic()

oadevs_bag<PortValue> * get_output_bag()
For use by the simulator. Get the output bag for this model.

oadevs_bag<PortValue> * get_input_bag()
For use by the simulator. Get the input bag for this model.

ovoid set_input_bag(adevs_bag<PortValue>* xx)
For use by the simulator. Assign an input bag to this model.

ovoid set_output_bag(adevs_bag<PortValue>* yy)
For use by the simulator. Assign an output bag to this model.


Direct child classes:
netExec

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.