#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. |
Base class for DEVS network models.
virtual adevs::Network< X, T >::~Network | ( | ) | [inline, virtual] |
Destructor. This destructor does not delete any component models. Any necessary cleanup should be done by the derived class.
virtual void adevs::Network< X, T >::getComponents | ( | Set< Devs< X, T > * > & | c | ) | [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 >.
virtual void adevs::Network< X, T >::route | ( | const X & | value, | |
Devs< X, T > * | model, | |||
Bag< Event< X, T > > & | r | |||
) | [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 >.