The devs class provides basic operations for all devs models
Note that models are derived from the object class.
Inheritance:
Public Methods
-
devs()
- Default constructor
-
devs(const devs& src)
- Copy constructor
-
void operator=(const devs& src)
- Assignment operator
-
virtual void init(ADEVS_TIME_TYPE t0) = 0
-
The init function should place the model into its initial state
The time t0 is the initial simulation time
-
devsn* getParent()
- For use by the simulator.
-
const devsn* getParent() const
-
void setParent(devsn* model)
-
The model parent should be set when the model becomes a component in
a network model.
-
virtual ~devs()
- Destructor
-
virtual devsn* typeIsNetwork()
-
Returns NULL if this is not a network model and returns a pointer to
itself otherwise.
-
virtual atomic* typeIsAtomic()
- Returns NULL if this is not a atomic model; returns itself otherwise
-
virtual netExec* typeIsNetExec()
- Returns NULL if this is not a network executive; returns itself otherwise
-
unsigned long get_cellspace_key() const
- Get the cell space index key assigned to this model
-
void set_cellspace_key(unsigned long cell_key)
- Set the cell space index key for this model (used by the cellSpace class)
Inherited from object:
Public Methods
-
virtual object* clone() const
Documentation
The devs class provides basic operations for all devs models
Note that models are derived from the object class. Therefore
(if using the default configuration) models can, themselves,
be passed as I/O between models (this can be useful when building
some types of dynamic structure models).
devs()
- Default constructor
devs(const devs& src)
- Copy constructor
void operator=(const devs& src)
- Assignment operator
virtual void init(ADEVS_TIME_TYPE t0) = 0
-
The init function should place the model into its initial state
The time t0 is the initial simulation time
devsn* getParent()
- For use by the simulator. Returns a pointer to the models parent.
const devsn* getParent() const
void setParent(devsn* model)
-
The model parent should be set when the model becomes a component in
a network model. A value of NULL indicates that the model has no parent.
virtual ~devs()
- Destructor
virtual devsn* typeIsNetwork()
-
Returns NULL if this is not a network model and returns a pointer to
itself otherwise. This method is used to avoid a relatively expensive
dynamic cast, which resulted in significant performance penalties.
virtual atomic* typeIsAtomic()
- Returns NULL if this is not a atomic model; returns itself otherwise
virtual netExec* typeIsNetExec()
- Returns NULL if this is not a network executive; returns itself otherwise
unsigned long get_cellspace_key() const
- Get the cell space index key assigned to this model
void set_cellspace_key(unsigned long cell_key)
- Set the cell space index key for this model (used by the cellSpace class)
- Direct child classes:
- devsn
atomic
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.