Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NBContHelper Class Reference

#include <NBContHelper.h>

Data Structures

class  edge_by_angle_to_nodeShapeCentroid_sorter
 
class  edge_by_priority_sorter
 
class  edge_opposite_direction_sorter
 Class to sort edges by their angle in relation to the given edge. More...
 
class  edge_similar_direction_sorter
 
class  edge_with_destination_finder
 
class  node_with_incoming_finder
 
class  node_with_outgoing_finder
 
class  opposite_finder
 
class  relative_incoming_edge_sorter
 
class  relative_outgoing_edge_sorter
 
class  same_connection_edge_sorter
 

Static Public Member Functions

static NBEdgefindConnectingEdge (const EdgeVector &edges, NBNode *from, NBNode *to)
 
static double getMaxSpeed (const EdgeVector &edges)
 
static double getMinSpeed (const EdgeVector &edges)
 
static double maxSpeed (const EdgeVector &ev)
 
static void nextCCW (const EdgeVector &edges, EdgeVector::const_iterator &from)
 
static void nextCW (const EdgeVector &edges, EdgeVector::const_iterator &from)
 
static std::ostream & out (std::ostream &os, const std::vector< bool > &v)
 

Friends

std::ostream & operator<< (std::ostream &os, const EdgeVector &ev)
 

Detailed Description

NBContHelper Some static helper methods that traverse a sorted list of edges in both directions

Definition at line 46 of file NBContHelper.h.

Member Function Documentation

◆ findConnectingEdge()

NBEdge * NBContHelper::findConnectingEdge ( const EdgeVector edges,
NBNode from,
NBNode to 
)
static

Tries to return the first edge within the given container which connects both given nodes

Definition at line 66 of file NBContHelper.cpp.

◆ getMaxSpeed()

double NBContHelper::getMaxSpeed ( const EdgeVector edges)
static

Definition at line 217 of file NBContHelper.cpp.

◆ getMinSpeed()

double NBContHelper::getMinSpeed ( const EdgeVector edges)
static

Definition at line 232 of file NBContHelper.cpp.

◆ maxSpeed()

double NBContHelper::maxSpeed ( const EdgeVector ev)
static

returns the maximum speed allowed on the edges

Definition at line 79 of file NBContHelper.cpp.

Referenced by NBTrafficLightDefinition::computeBrakingTime().

Here is the caller graph for this function:

◆ nextCCW()

void NBContHelper::nextCCW ( const EdgeVector edges,
EdgeVector::const_iterator &  from 
)
static

Moves the given iterator counter clockwise within the given container of edges sorted clockwise

Definition at line 47 of file NBContHelper.cpp.

Referenced by NBRequest::computeRightOutgoingLinkCrossings(), NBNode::getNextCompatibleOutgoing(), NBOwnTLDef::patchNEMAStateForCrossings(), and NBNode::turnFoes().

Here is the caller graph for this function:

◆ nextCW()

void NBContHelper::nextCW ( const EdgeVector edges,
EdgeVector::const_iterator &  from 
)
static

Moves the given iterator clockwise within the given container of edges sorted clockwise

Definition at line 38 of file NBContHelper.cpp.

Referenced by NBRequest::computeLeftOutgoingLinkCrossings(), NBNode::edgesBetween(), NBNodeShapeComputer::getDefaultRadius(), NBNode::getEdgesThatApproach(), NBNode::getNextCompatibleOutgoing(), NBRampsComputer::getOffRampEdges(), NBEdgeCont::guessRoundabouts(), NBNode::isLeftMover(), NBNode::isSimpleContinuation(), NBOwnTLDef::patchNEMAStateForCrossings(), NBRequest::setBlocking(), and NBNode::turnFoes().

Here is the caller graph for this function:

◆ out()

std::ostream & NBContHelper::out ( std::ostream &  os,
const std::vector< bool > &  v 
)
static

writes the vector of bools to the given stream

Definition at line 57 of file NBContHelper.cpp.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const EdgeVector ev 
)
friend

Definition at line 204 of file NBContHelper.cpp.


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