#include <adevs_simpledigraph.h>
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. | |
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.
1.6.1