template<class VALUE, class PORT=int> class adevs::Digraph

This Digraph model uses PortValue objects to describe component coupling.

Inheritance:


Public Methods

[more] Digraph()
Construct a network with no components
[more]void add(Component* model)
Add a model to the network
[more]void couple(Component* src, PORT srcPort, Component* dst, PORT dstPort)
Couple the source model to the destination model.
[more]void getComponents(Set<Component*>& c)
Assigns the model component set to c
[more]void route(const IO_Type& x, Component* model, Bag<Event<IO_Type> >& r)
Route an event based on the coupling information
[more] ~Digraph()
Destructor.

Public Members

[more]typedef PortValue<VALUE,PORT> IO_Type
A componet input or output
[more]typedef Devs<IO_Type> Component
A component of the Digraph model


Inherited from Network:

Public Methods

oNetwork<X> * typeIsNetwork()


Inherited from Devs:

Public Methods

ovirtual Atomic<X> * typeIsAtomic()
oconst Network<X> * getParent() const
oNetwork<X> * getParent()
ovoid setParent(Network<X>* parent)
ovirtual bool model_transition()


Documentation

This Digraph model uses PortValue objects to describe component coupling. The default port type is an integer.
otypedef PortValue<VALUE,PORT> IO_Type
A componet input or output

otypedef Devs<IO_Type> Component
A component of the Digraph model

o Digraph()
Construct a network with no components

ovoid add(Component* model)
Add a model to the network

ovoid couple(Component* src, PORT srcPort, Component* dst, PORT dstPort)
Couple the source model to the destination model.

ovoid getComponents(Set<Component*>& c)
Assigns the model component set to c

ovoid route(const IO_Type& x, Component* model, Bag<Event<IO_Type> >& r)
Route an event based on the coupling information

o ~Digraph()
Destructor. Destroys all of the component models.

o node()

o node(Component* model, PORT port)

oconst node& operator=(const node& src)

oComponent* model

oPORT port

obool operator<(const node& other) const


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.