![]() |
SUMO - Simulation of Urban MObility
|
#include <NBAlgorithms.h>
Static Public Member Functions | |
static void | computeEdgePriorities (NBNodeCont &nc) |
Computes edge priorities within a node. More... | |
static void | computeEdgePrioritiesSingleNode (NBNode *node) |
Computes edge priorities within a single node. More... | |
Static Private Member Functions | |
static NBEdge * | extractAndMarkFirst (NBNode &n, std::vector< NBEdge *> &s, int prio=1) |
Sets the priorites in case of a priority junction. More... | |
static bool | samePriority (const NBEdge *const e1, const NBEdge *const e2) |
Returns whether both edges have the same priority. More... | |
static void | setPriorityJunctionPriorities (NBNode &n) |
Sets the priorites in case of a priority junction. More... | |
Definition at line 225 of file NBAlgorithms.h.
|
static |
Computes edge priorities within a node.
[in] | nc | The container of nodes to loop along |
Definition at line 266 of file NBAlgorithms.cpp.
References NBNodeCont::begin(), NBNodeCont::end(), NBEdge::MINOR_ROAD, NBNode::myAllEdges, NBNode::myIncomingEdges, NBNode::myOutgoingEdges, NBNode::myType, and NODETYPE_RIGHT_BEFORE_LEFT.
Referenced by NBNetBuilder::compute().
|
static |
Computes edge priorities within a single node.
[in] | node | the single node |
Definition at line 286 of file NBAlgorithms.cpp.
References NBNode::getType(), NBEdge::MINOR_ROAD, NBNode::myAllEdges, NBNode::myIncomingEdges, NBNode::myOutgoingEdges, and NODETYPE_RIGHT_BEFORE_LEFT.
Referenced by NBNetBuilder::computeSingleNode().
|
staticprivate |
Sets the priorites in case of a priority junction.
[in] | n | The node to set edges' priorities |
[in] | s | The vector of edges to get and mark the first from |
[in] | prio | The priority to assign |
Definition at line 420 of file NBAlgorithms.cpp.
References NBEdge::setJunctionPriority().
|
staticprivate |
Returns whether both edges have the same priority.
[in] | e1 | The first edge |
[in] | e2 | The second edge Whether both edges have the same priority |
Definition at line 432 of file NBAlgorithms.cpp.
References NBEdge::getNumLanes(), NBEdge::getPriority(), and NBEdge::getSpeed().
|
staticprivate |
Sets the priorites in case of a priority junction.
[in] | n | The node to set edges' priorities |
Definition at line 302 of file NBAlgorithms.cpp.
References NBEdge::getAngleAtNode(), GeomHelper::getMinAngleDiff(), NBNode::myIncomingEdges, NBNode::myOutgoingEdges, NBEdge::PRIORITY_ROAD, and NBEdge::setJunctionPriority().