adevs
Public Types | Public Member Functions | List of all members
adevs::SimpleDigraph< VALUE, T > Class Template Reference

#include <adevs_simpledigraph.h>

Inheritance diagram for adevs::SimpleDigraph< VALUE, T >:
adevs::Network< VALUE, T > adevs::Devs< VALUE, T >

Public Types

typedef Devs< VALUE, T > Component
 A component of the SimpleDigraph model.
 

Public Member Functions

 SimpleDigraph ()
 Construct a network without components.
 
void add (Component *model)
 Add a model to the network.
 
void couple (Component *src, Component *dst)
 Couple the source model to the destination model.
 
void getComponents (Set< Component * > &c)
 Puts the network's set of components into c.
 
void route (const VALUE &x, Component *model, Bag< Event< VALUE, T > > &r)
 Route an event according to the network's couplings.
 
 ~SimpleDigraph ()
 Destructor. Destroys all of the component models.
 
- Public Member Functions inherited from adevs::Network< VALUE, T >
 Network ()
 Constructor.
 
virtual ~Network ()
 
Network< VALUE, T > * typeIsNetwork ()
 Returns a pointer to this model.
 
- Public Member Functions inherited from adevs::Devs< VALUE, T >
 Devs ()
 Default constructor.
 
virtual ~Devs ()
 Destructor.
 
virtual Atomic< VALUE, T > * typeIsAtomic ()
 Returns NULL if this is not an atomic model; returns itself otherwise.
 
const Network< VALUE, T > * getParent () const
 
Network< VALUE, T > * getParent ()
 
void setParent (Network< VALUE, T > *parent)
 
virtual bool model_transition ()
 
virtual T lookahead ()
 
void setProc (int proc)
 
int getProc ()
 

Detailed Description

template<class VALUE, class T = double>
class adevs::SimpleDigraph< VALUE, T >

This is a very simple digraph model for connecting single input/single output systems. Output generated by a component model is sent to all components connected to it.


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