adevs
Public Member Functions
adevs::Network Class Reference

#include <adevs_models.h>

Inheritance diagram for adevs::Network:
adevs::Devs< X, T >

List of all members.

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.

Detailed Description

Base class for DEVS network models.


Constructor & Destructor Documentation

virtual adevs::Network::~Network ( ) [inline, virtual]

Destructor. This destructor does not delete any component models. Any necessary cleanup should be done by the derived class.


Member Function Documentation

virtual void adevs::Network::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.

Parameters:
cAn empty set to the filled with the Network's components.
virtual void adevs::Network::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.

Parameters:
modelThe model that produced the output value
valueThe output value produced by the model
rA bag to be filled with (target,value) pairs

The documentation for this class was generated from the following file: