SUMO - Simulation of Urban MObility

NBJunctionTypesMatrix Class Reference

#include <NBJunctionTypesMatrix.h>

Data Structures

class  range_finder

Public Member Functions

SumoXMLNodeType getType (SUMOReal speed1, SUMOReal speed2) const
 NBJunctionTypesMatrix ()
 ~NBJunctionTypesMatrix ()

Private Types

typedef std::map< char,
SumoXMLNodeType > 
CharToVal
typedef std::vector< std::pair
< SUMOReal, SUMOReal > > 
RangeCont
typedef std::vector< std::string > StringCont

Private Member Functions

char getNameAt (size_t pos1, size_t pos2) const

Private Attributes

CharToVal myMap
RangeCont myRanges
StringCont myValues

Detailed Description

A class that stores the relationship between incoming edges and the junction type resulting from their types.

Definition at line 46 of file NBJunctionTypesMatrix.h.


Member Typedef Documentation

typedef std::map<char, SumoXMLNodeType> NBJunctionTypesMatrix::CharToVal [private]

a map of chars to ints

Definition at line 89 of file NBJunctionTypesMatrix.h.

typedef std::vector<std::pair<SUMOReal, SUMOReal> > NBJunctionTypesMatrix::RangeCont [private]

a container type for edge priority ranges

Definition at line 83 of file NBJunctionTypesMatrix.h.

typedef std::vector<std::string> NBJunctionTypesMatrix::StringCont [private]

A container type for the resulting junction types (cross matrix)

Definition at line 86 of file NBJunctionTypesMatrix.h.


Constructor & Destructor Documentation

NBJunctionTypesMatrix::NBJunctionTypesMatrix ( )
NBJunctionTypesMatrix::~NBJunctionTypesMatrix ( )

destructor

Definition at line 69 of file NBJunctionTypesMatrix.cpp.


Member Function Documentation

char NBJunctionTypesMatrix::getNameAt ( size_t  pos1,
size_t  pos2 
) const [private]

returns the one-char name of the junction type between the two given ranges

Definition at line 82 of file NBJunctionTypesMatrix.cpp.

References myValues.

Referenced by getType().

SumoXMLNodeType NBJunctionTypesMatrix::getType ( SUMOReal  speed1,
SUMOReal  speed2 
) const

returns the type of the junction on the crossing of edges of the given types

Definition at line 73 of file NBJunctionTypesMatrix.cpp.

References getNameAt(), myMap, and myRanges.


Field Documentation

a map of chars to their NBNode-representation

Definition at line 103 of file NBJunctionTypesMatrix.h.

Referenced by getType(), and NBJunctionTypesMatrix().

a container for edge priority ranges

Definition at line 92 of file NBJunctionTypesMatrix.h.

Referenced by getType(), and NBJunctionTypesMatrix().

A container for the resulting junction types (cross matrix) The informations are stored as chars: 't': Traffic Light Junction 'r': Right-before-Left Junction 'p': Priority Junction 'x': no Junction

Definition at line 100 of file NBJunctionTypesMatrix.h.

Referenced by getNameAt(), and NBJunctionTypesMatrix().


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines