|
adevs
|
A simple graph model. More...
#include <adevs_pdevs.h>
Public Member Functions | |
| void | add (SimEnv< DataType, TimeType > *env) |
| Add this model and its submodels to the simulation context. You must couple your models first, then add them to the simulator. | |
| void | couple (Devs< DataType, TimeType > *src, Devs< DataType, TimeType > *dst) |
| Create a link in the network. More... | |
| void | route (Model< DataType, TimeType > *src, DataType data, std::vector< std::pair< Model< DataType, TimeType > *, DataType > > &msgs) |
| The network's route method. Do not override. | |
Public Member Functions inherited from adevs::Network< DataType, TimeType > | |
| void | assign_parent (Devs< DataType, TimeType > *model) |
| Set the parent of a model to be this Network. More... | |
| virtual | ~Network () |
| Destructor. | |
| TimeType | update (SimEnv< DataType, TimeType > *) |
| No op update. | |
| TimeType | update (SimEnv< DataType, TimeType > *, std::vector< DataType > &) |
| No op update. | |
| TimeType | init (SimEnv< DataType, TimeType > *) |
| No op init. | |
| void | fini (TimeType) |
| No op fini. | |
| std::pair< Model< DataType, TimeType > *, DataType > | relay (Model< DataType, TimeType > *src, DataType x) |
| Relay uses the route method to redirect messages. Do not override. | |
Public Member Functions inherited from adevs::Devs< DataType, TimeType > | |
| Network< DataType, TimeType > * | parent () const |
| Get the parent of this model. More... | |
Public Member Functions inherited from adevs::Model< DataType, TimeType > | |
| virtual std::string | name () |
| Return a name for this model. More... | |
| virtual | ~Model () |
| Destructor. | |
| void | reset () |
| Reset simulation support to reuse the model in a new simulation context. More... | |
A simple graph model.
This is like the Digraph class, but without ports.
| void adevs::SimpleDigraph< DataType, TimeType >::couple | ( | Devs< DataType, TimeType > * | src, |
| Devs< DataType, TimeType > * | dst | ||
| ) |
Create a link in the network.
Connect the src model to the dst model.
1.8.13