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
-
Devs()
- Default constructor
-
virtual ~Devs()
- Destructor
-
virtual Network<X> * typeIsNetwork()
-
Returns NULL if this is not a network model; returns a pointer to
itself otherwise.
-
virtual Atomic<X> * typeIsAtomic()
- Returns NULL if this is not a atomic model; returns itself otherwise
-
const Network<X> * getParent() const
-
Get the model that contains this model as a component.
-
Network<X> * getParent()
-
void setParent(Network<X>* parent)
-
Assign a new parent to this model.
-
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
Devs()
- Default constructor
virtual ~Devs()
- Destructor
virtual 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.
virtual Atomic<X> * typeIsAtomic()
- Returns NULL if this is not a atomic model; returns itself otherwise
const 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.
Network<X> * getParent()
void setParent(Network<X>* parent)
-
Assign a new parent to this model. This method is intended to
support end user network models.
virtual 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 model model_transition()
to 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 transition function.
- 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++.