class devs

The devs class provides basic operations for all devs models Note that models are derived from the object class.

Inheritance:


Public Methods

[more] devs()
Default constructor
[more] devs(const devs& src)
Copy constructor
[more]void operator=(const devs& src)
Assignment operator
[more]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
[more]devsn* getParent()
For use by the simulator.
[more]const devsn* getParent() const
[more]void setParent(devsn* model)
The model parent should be set when the model becomes a component in a network model.
[more]virtual ~devs()
Destructor
[more]virtual devsn* typeIsNetwork()
Returns NULL if this is not a network model and returns a pointer to itself otherwise.
[more]virtual atomic* typeIsAtomic()
Returns NULL if this is not a atomic model; returns itself otherwise
[more]virtual netExec* typeIsNetExec()
Returns NULL if this is not a network executive; returns itself otherwise
[more]unsigned long get_cellspace_key() const
Get the cell space index key assigned to this model
[more]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

ovirtual 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).
o devs()
Default constructor

o devs(const devs& src)
Copy constructor

ovoid operator=(const devs& src)
Assignment operator

ovirtual 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

odevsn* getParent()
For use by the simulator. Returns a pointer to the models parent.

oconst devsn* getParent() const

ovoid 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.

ovirtual ~devs()
Destructor

ovirtual 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.

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

ovirtual netExec* typeIsNetExec()
Returns NULL if this is not a network executive; returns itself otherwise

ounsigned long get_cellspace_key() const
Get the cell space index key assigned to this model

ovoid 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++.