SUMO - Simulation of Urban MObility
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 SUMOReal getMaxSpeed (const EdgeVector &edges)
 
static SUMOReal getMinSpeed (const EdgeVector &edges)
 
static SUMOReal 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 56 of file NBContHelper.h.

Member Function Documentation

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 79 of file NBContHelper.cpp.

SUMOReal NBContHelper::getMaxSpeed ( const EdgeVector edges)
static

Definition at line 228 of file NBContHelper.cpp.

References SUMOReal.

SUMOReal NBContHelper::getMinSpeed ( const EdgeVector edges)
static

Definition at line 243 of file NBContHelper.cpp.

References SUMOReal.

SUMOReal NBContHelper::maxSpeed ( const EdgeVector ev)
static

returns the maximum speed allowed on the edges

Definition at line 92 of file NBContHelper.cpp.

References max, and SUMOReal.

Referenced by NBTrafficLightDefinition::computeBrakingTime().

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 60 of file NBContHelper.cpp.

Referenced by NBNode::checkIsRemovable(), NBRequest::computeRightOutgoingLinkCrossings(), NBNode::getDirection(), and NBNode::getEdgesToJoin().

void NBContHelper::nextCW ( const EdgeVector edges,
EdgeVector::const_iterator &  from 
)
static
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 70 of file NBContHelper.cpp.

Friends And Related Function Documentation

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

Definition at line 214 of file NBContHelper.cpp.


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