DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | List of all members
Diades::Automata::TopologyMap Class Reference

#include <TopologyMap.hh>

Public Types

typedef Diades::Utils::Exception< TopologyException
 

Public Member Functions

 TopologyMap (const Topology &topology)
 
bool valid () const
 
const Topologytopology () const
 
void mapComponentToNode (const ObservableComponent &component, Topology::Node itsNode)
 
Node getNodeSourceOf (Event event) const
 
const ObservableComponentgetComponent (Topology::Node node) const
 
Topology::Node getNode (const ObservableComponent &component) const
 
void addConnection (Topology::Connection connection, Topology::Node node, Event event)
 
void importMap (const string &fileName)
 
void exportMap (const string &fileName)
 
const ConnectionMapgetConnectionMap (Topology::Connection connection) const
 

Static Public Member Functions

static string typeName ()
 

Private Types

typedef const ObservableComponentComponentPointer
 
typedef ConstNodeMap< ConnectionMap_ConnMap
 
typedef ConstNodeMap< ComponentPointer_CompMap
 

Private Attributes

const Topology_topology
 
_ConnMap _connMap
 
_CompMap _compMap
 
unordered_map< ComponentPointer, Node_nodeMap
 
unordered_map< Event, Node_eventMap
 

Detailed Description

This class maps a Topology to the involved Components and Events in this Topology

Definition at line 25 of file TopologyMap.hh.

Member Typedef Documentation

◆ _CompMap

Definition at line 31 of file TopologyMap.hh.

◆ _ConnMap

Definition at line 30 of file TopologyMap.hh.

◆ ComponentPointer

Definition at line 29 of file TopologyMap.hh.

◆ Exception

Definition at line 41 of file TopologyMap.hh.

Constructor & Destructor Documentation

◆ TopologyMap()

Diades::Automata::TopologyMap::TopologyMap ( const Topology topology)
inline

Definition at line 47 of file TopologyMap.hh.

Member Function Documentation

◆ addConnection()

void Diades::Automata::TopologyMap::addConnection ( Topology::Connection  connection,
Topology::Node  node,
Event  event 
)
inline

Definition at line 78 of file TopologyMap.hh.

References exportMap(), importMap(), and topology().

◆ exportMap()

void Diades::Automata::TopologyMap::exportMap ( const string &  fileName)

Referenced by addConnection().

◆ getComponent()

const ObservableComponent& Diades::Automata::TopologyMap::getComponent ( Topology::Node  node) const
inline

Definition at line 64 of file TopologyMap.hh.

References Diades::Automata::Topology::graph(), require, and topology().

◆ getConnectionMap()

const ConnectionMap& Diades::Automata::TopologyMap::getConnectionMap ( Topology::Connection  connection) const
inline

Definition at line 90 of file TopologyMap.hh.

Referenced by main().

◆ getNode()

Topology::Node Diades::Automata::TopologyMap::getNode ( const ObservableComponent component) const
inline

Definition at line 72 of file TopologyMap.hh.

◆ getNodeSourceOf()

Node Diades::Automata::TopologyMap::getNodeSourceOf ( Event  event) const
inline

Definition at line 53 of file TopologyMap.hh.

◆ importMap()

void Diades::Automata::TopologyMap::importMap ( const string &  fileName)

Referenced by addConnection(), and main().

◆ mapComponentToNode()

void Diades::Automata::TopologyMap::mapComponentToNode ( const ObservableComponent component,
Topology::Node  itsNode 
)

Referenced by main(), and topology().

◆ topology()

const Topology& Diades::Automata::TopologyMap::topology ( ) const
inline

Definition at line 49 of file TopologyMap.hh.

References _topology, and mapComponentToNode().

Referenced by addConnection(), getComponent(), and valid().

◆ typeName()

static string Diades::Automata::TopologyMap::typeName ( )
inlinestatic

Definition at line 40 of file TopologyMap.hh.

◆ valid()

bool Diades::Automata::TopologyMap::valid ( ) const
inline

Definition at line 48 of file TopologyMap.hh.

References topology(), and Diades::Automata::Topology::valid().

Member Data Documentation

◆ _compMap

_CompMap Diades::Automata::TopologyMap::_compMap
private

Definition at line 35 of file TopologyMap.hh.

◆ _connMap

_ConnMap Diades::Automata::TopologyMap::_connMap
private

Definition at line 34 of file TopologyMap.hh.

◆ _eventMap

unordered_map<Event,Node> Diades::Automata::TopologyMap::_eventMap
private

Definition at line 37 of file TopologyMap.hh.

◆ _nodeMap

unordered_map<ComponentPointer,Node> Diades::Automata::TopologyMap::_nodeMap
private

Definition at line 36 of file TopologyMap.hh.

◆ _topology

const Topology* Diades::Automata::TopologyMap::_topology
private

Definition at line 33 of file TopologyMap.hh.

Referenced by topology().


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