template<class X> class adevs::Devs

The Devs class provides basic operations for all devs models The model I/O type can be specialized with the the template argument

Inheritance:


Public Methods

[more] Devs()
Default constructor
[more]virtual ~Devs()
Destructor
[more]virtual Network<X> * typeIsNetwork()
Returns NULL if this is not a network model; returns a pointer to itself otherwise.
[more]virtual Atomic<X> * typeIsAtomic()
Returns NULL if this is not a atomic model; returns itself otherwise
[more]const Network<X> * getParent() const
Get the model that contains this model as a component.
[more]Network<X> * getParent()
[more]void setParent(Network<X>* parent)
Assign a new parent to this model.
[more]virtual bool model_transition()
This is the model transition function.


Documentation

The Devs class provides basic operations for all devs models The model I/O type can be specialized with the the template argument
o Devs()
Default constructor

ovirtual ~Devs()
Destructor

ovirtual Network<X> * typeIsNetwork()
Returns NULL if this is not a network model; returns a pointer to itself otherwise. This method is used to avoid a relatively expensive dynamic cast.

ovirtual Atomic<X> * typeIsAtomic()
Returns NULL if this is not a atomic model; returns itself otherwise

oconst Network<X> * getParent() const
Get the model that contains this model as a component. Returns NULL if this model is at the top of the hierarchy.

oNetwork<X> * getParent()

ovoid setParent(Network<X>* parent)
Assign a new parent to this model. This method is intended to support end user network models.

ovirtual bool model_transition()
This is the model transition function. It should return true if a model transition occurs, and false otherwise. False is the default return value. This method is used by the simulator to limit the execution of potentially expensive structure changes. If the return value is true, then the parent's model_transition() will be evaluated. For Network models, the model_transition() function is preceded and anteceded by a call to getComponents(). The difference of these two sets is used to determine if any models were added or removed as part of the model transition.


Direct child classes:
Network
Atomic
Friends:
class Simulator

Alphabetic index HTML hierarchy of classes or Java



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