#include <ExecDepGraph.hpp>
Public Member Functions | |
void | addToGraph (const navcon_msgs::RegisterControllerRequest &info) |
ExecDepGraph () | |
void | findPath (const std::string &start, const std::string &end, std::list< std::string > &path) |
void | getDotDesc (std::string &desc) |
Private Types | |
typedef boost::property < boost::edge_weight_t, int > | EdgeProperty |
typedef boost::adjacency_list < boost::vecS, boost::vecS, boost::directedS, VertexProperty, EdgeProperty > | GraphType |
typedef boost::property < boost::vertex_name_t, std::string > | VertexProperty |
Private Attributes | |
GraphType | graph |
std::map< std::string, GraphType::vertex_descriptor > | nameMap |
The class contains implementation of the mission execution dependency graph.
Definition at line 53 of file ExecDepGraph.hpp.
typedef boost::property< boost::edge_weight_t, int > labust::control::ExecDepGraph::EdgeProperty [private] |
Definition at line 56 of file ExecDepGraph.hpp.
typedef boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, VertexProperty, EdgeProperty > labust::control::ExecDepGraph::GraphType [private] |
Definition at line 59 of file ExecDepGraph.hpp.
typedef boost::property<boost::vertex_name_t, std::string> labust::control::ExecDepGraph::VertexProperty [private] |
Definition at line 55 of file ExecDepGraph.hpp.
Main constructor
Definition at line 45 of file ExecDepGraph.cpp.
void ExecDepGraph::addToGraph | ( | const navcon_msgs::RegisterControllerRequest & | info | ) |
Add controller to the dependency graph.
Definition at line 53 of file ExecDepGraph.cpp.
void ExecDepGraph::findPath | ( | const std::string & | start, |
const std::string & | end, | ||
std::list< std::string > & | path | ||
) |
Find the path between to controllers.
Definition at line 78 of file ExecDepGraph.cpp.
void ExecDepGraph::getDotDesc | ( | std::string & | desc | ) |
Get the dependency graph DOT description.
Definition at line 68 of file ExecDepGraph.cpp.
The controller dependency graph.
Definition at line 84 of file ExecDepGraph.hpp.
std::map<std::string, GraphType::vertex_descriptor> labust::control::ExecDepGraph::nameMap [private] |
The name to vertice map.
Definition at line 89 of file ExecDepGraph.hpp.