template<class X> class adevs::Atomic

Base type for all atomic DEVS models

Inheritance:


Public Methods

[more] Atomic()
The constructor should place the model into its initial state
[more]virtual void delta_int() = 0
Internal transition function
[more]virtual void delta_ext(double e, const Bag<X>& xb) = 0
External transition function.
[more]virtual void delta_conf(const Bag<X>& xb) = 0
Confluent transition function
[more]virtual void output_func(Bag<X>& yb) = 0
Output function.
[more]virtual double ta() = 0
Time advance function.
[more]virtual void gc_output(Bag<X>& g) = 0
Garbage collection function.
[more]virtual ~Atomic()
Destructor
[more]Atomic<X> * typeIsAtomic()
Returns a pointer to this model

Protected Methods

[more]double getLastEventTime() const
Get the last event time for this model.


Inherited from Devs:

Public Methods

ovirtual Network<X> * typeIsNetwork()
oconst Network<X> * getParent() const
oNetwork<X> * getParent()
ovoid setParent(Network<X>* parent)
ovirtual bool model_transition()


Documentation

Base type for all atomic DEVS models
o Atomic()
The constructor should place the model into its initial state

ovirtual void delta_int() = 0
Internal transition function

ovirtual void delta_ext(double e, const Bag<X>& xb) = 0
External transition function.

ovirtual void delta_conf(const Bag<X>& xb) = 0
Confluent transition function

ovirtual void output_func(Bag<X>& yb) = 0
Output function. Output values should be added to the bag y.

ovirtual double ta() = 0
Time advance function. DBL_MAX is used as infinity.

ovirtual void gc_output(Bag<X>& g) = 0
Garbage collection function. The 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 objects produced as output by this model.

ovirtual ~Atomic()
Destructor

oAtomic<X> * typeIsAtomic()
Returns a pointer to this model

odouble getLastEventTime() const
Get the last event time for this model. This is provided primarily for use with the backwards compatibility functions and should not be relied on. It is likely to be removed in later versions of the code.


Direct child classes:
ModelWrapper
DESS
Friends:
class Simulator
class Schedule

Alphabetic index HTML hierarchy of classes or Java



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