adevs
Public Member Functions | List of all members
adevs::SimpleDigraph< DataType, TimeType > Class Template Reference

A simple graph model. More...

#include <adevs_pdevs.h>

Inheritance diagram for adevs::SimpleDigraph< DataType, TimeType >:
adevs::Network< DataType, TimeType > adevs::Devs< DataType, TimeType > adevs::Model< DataType, TimeType >

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...
 

Detailed Description

template<typename DataType, typename TimeType = Time>
class adevs::SimpleDigraph< DataType, TimeType >

A simple graph model.

This is like the Digraph class, but without ports.

Member Function Documentation

◆ couple()

template<typename DataType , typename TimeType >
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.


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