|
SUMO - Simulation of Urban MObility
|
#include <TraCIDijkstraRouter.h>
Public Member Functions | |
| EdgeInfo * | add (const E *edgeArg, SUMOReal effortArg, EdgeInfo *prevArg) |
| Adds the information about the effort to get to an edge and its predeccessing edge. | |
| EdgeInfo * | add (const E *edgeArg, SUMOReal effortArg, EdgeInfo *prevArg, SUMOReal distArg) |
| Adds the information about the effort to get to an edge and its predeccessing edge. | |
| EdgeInfoCont (size_t toAlloc) | |
| Constructor. | |
| SUMOReal | getEffort (const E *to) const |
| Returns the effort to get to the specify edge The value is valid if the edge was already visited. | |
| void | reset () |
| Resets all effort-information. | |
| ~EdgeInfoCont () | |
| Destructor. | |
Private Attributes | |
| std::vector< EdgeInfo > | myEdgeInfos |
| The container of edge information. | |
A class holding the instances of effort-to-reach and predeccessor information for every edge within the network. This class is used instead of the former saving of these values within the edges to allow parallel route computation in multithreading mode.
Definition at line 239 of file TraCIDijkstraRouter.h.
| TraCIDijkstraRouter< E >::EdgeInfoCont::EdgeInfoCont | ( | size_t | toAlloc | ) | [inline] |
Constructor.
Definition at line 242 of file TraCIDijkstraRouter.h.
| TraCIDijkstraRouter< E >::EdgeInfoCont::~EdgeInfoCont | ( | ) | [inline] |
Destructor.
Definition at line 246 of file TraCIDijkstraRouter.h.
| EdgeInfo* TraCIDijkstraRouter< E >::EdgeInfoCont::add | ( | const E * | edgeArg, |
| SUMOReal | effortArg, | ||
| EdgeInfo * | prevArg | ||
| ) | [inline] |
Adds the information about the effort to get to an edge and its predeccessing edge.
Definition at line 249 of file TraCIDijkstraRouter.h.
References TraCIDijkstraRouter< E >::EdgeInfo::dist, TraCIDijkstraRouter< E >::EdgeInfo::edge, TraCIDijkstraRouter< E >::EdgeInfo::effort, TraCIDijkstraRouter< E >::EdgeInfoCont::myEdgeInfos, and TraCIDijkstraRouter< E >::EdgeInfo::prev.
Referenced by TraCIDijkstraRouter< E >::compute().
| EdgeInfo* TraCIDijkstraRouter< E >::EdgeInfoCont::add | ( | const E * | edgeArg, |
| SUMOReal | effortArg, | ||
| EdgeInfo * | prevArg, | ||
| SUMOReal | distArg | ||
| ) | [inline] |
Adds the information about the effort to get to an edge and its predeccessing edge.
Definition at line 259 of file TraCIDijkstraRouter.h.
References TraCIDijkstraRouter< E >::EdgeInfo::dist, TraCIDijkstraRouter< E >::EdgeInfo::edge, TraCIDijkstraRouter< E >::EdgeInfo::effort, TraCIDijkstraRouter< E >::EdgeInfoCont::myEdgeInfos, and TraCIDijkstraRouter< E >::EdgeInfo::prev.
| SUMOReal TraCIDijkstraRouter< E >::EdgeInfoCont::getEffort | ( | const E * | to | ) | const [inline] |
Returns the effort to get to the specify edge The value is valid if the edge was already visited.
Definition at line 279 of file TraCIDijkstraRouter.h.
References TraCIDijkstraRouter< E >::EdgeInfoCont::myEdgeInfos.
Referenced by TraCIDijkstraRouter< E >::compute().
| void TraCIDijkstraRouter< E >::EdgeInfoCont::reset | ( | ) | [inline] |
Resets all effort-information.
Definition at line 270 of file TraCIDijkstraRouter.h.
References max, and TraCIDijkstraRouter< E >::EdgeInfoCont::myEdgeInfos.
Referenced by TraCIDijkstraRouter< E >::compute().
std::vector<EdgeInfo> TraCIDijkstraRouter< E >::EdgeInfoCont::myEdgeInfos [private] |
The container of edge information.
Definition at line 285 of file TraCIDijkstraRouter.h.
Referenced by TraCIDijkstraRouter< E >::EdgeInfoCont::add(), TraCIDijkstraRouter< E >::EdgeInfoCont::getEffort(), and TraCIDijkstraRouter< E >::EdgeInfoCont::reset().