|
adevs
|
#include <adevs_models.h>
Public Member Functions | |
| Network () | |
| Constructor. | |
| virtual void | getComponents (Set< Devs< X, T > * > &c)=0 |
| virtual void | route (const X &value, Devs< X, T > *model, Bag< Event< X, T > > &r)=0 |
| virtual | ~Network () |
| Network< X, T > * | typeIsNetwork () |
| Returns a pointer to this model. | |
Public Member Functions inherited from adevs::Devs< X, T > | |
| Devs () | |
| Default constructor. | |
| virtual | ~Devs () |
| Destructor. | |
| virtual Atomic< X, T > * | typeIsAtomic () |
| Returns NULL if this is not an atomic model; returns itself otherwise. | |
| const Network< X, T > * | getParent () const |
| Network< X, T > * | getParent () |
| void | setParent (Network< X, T > *parent) |
| virtual bool | model_transition () |
| virtual T | lookahead () |
| void | setProc (int proc) |
| int | getProc () |
Base class for DEVS network models.
|
inlinevirtual |
Destructor. This destructor does not delete any component models. Any necessary cleanup should be done by the derived class.
|
pure virtual |
This method should fill the set c with all the Network's components, excluding the Network model itself.
| c | An empty set to the filled with the Network's components. |
Implemented in adevs::SimpleDigraph< VALUE, T >.
|
pure virtual |
This method is called by the Simulator to route an output value produced by a model. This method should fill the bag r with Events that point to the target model and carry the value to be delivered to the target. The target may be a component of the Network or the Network itself, the latter causing the Network to produce an output.
| model | The model that produced the output value |
| value | The output value produced by the model |
| r | A bag to be filled with (target,value) pairs |
Implemented in adevs::SimpleDigraph< VALUE, T >.
1.8.6