adevs
Classes | Public Types | Public Member Functions
adevs::Digraph Class Reference

#include <adevs_digraph.h>

Inheritance diagram for adevs::Digraph:
adevs::Network< PortValue< VALUE, PORT >, T >

List of all members.

Classes

struct  node

Public Types

typedef PortValue< VALUE, PORT > IO_Type
 An input or output to a component model.
typedef Devs< IO_Type, T > Component
 A component of the Digraph model.

Public Member Functions

 Digraph ()
 Construct a network with no components.
void add (Component *model)
 Add a model to the network.
void couple (Component *src, PORT srcPort, Component *dst, PORT dstPort)
 Couple the source model to the destination model.
void getComponents (Set< Component * > &c)
 Puts the network's components into to c.
void route (const IO_Type &x, Component *model, Bag< Event< IO_Type, T > > &r)
 Route an event based on the coupling information.
 ~Digraph ()
 Destructor. Destroys all of the component models.

Detailed Description

The digraph model is used to build block-diagrams from network and atomic components. Its components must have PortValue objects as their input/output type.


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