Eclipse SUMO - Simulation of Urban MObility
MapMatcher< E, L, N > Class Template Referenceabstract

Provides utility functions for matching locations to edges (during route parsing) More...

#include <MapMatcher.h>

Collaboration diagram for MapMatcher< E, L, N >:
[legend]

Protected Member Functions

const E * getClosestEdge (const Position &pos, double distance, SUMOVehicleClass vClass)
 find closest edge within distance for the given position or nullptr More...
 
const E * getJunctionTaz (const Position &pos, const E *closestEdge, SUMOVehicleClass vClass, bool isFrom)
 find closest junction taz given the closest edge More...
 
virtual void initLaneTree (NamedRTree *tree)=0
 
 MapMatcher (bool matchJunctions, double matchDistance, MsgHandler *errorOutput)
 
void parseGeoEdges (const PositionVector &positions, bool geo, SUMOVehicleClass vClass, std::vector< const E * > &into, const std::string &rid, bool isFrom, bool &ok)
 
virtual E * retrieveEdge (const std::string &id)=0
 
virtual ~MapMatcher ()
 

Private Member Functions

NamedRTreegetLaneTree ()
 initialize lane-RTree More...
 
 MapMatcher (const MapMatcher &s)=delete
 Invalidated copy constructor. More...
 
MapMatcheroperator= (const MapMatcher &s)=delete
 Invalidated assignment operator. More...
 

Private Attributes

MsgHandlermyErrorOutput
 
NamedRTreemyLaneTree
 RTree for finding lanes. More...
 
double myMapMatchingDistance
 
bool myMapMatchJunctions
 

Detailed Description

template<class E, class L, class N>
class MapMatcher< E, L, N >

Provides utility functions for matching locations to edges (during route parsing)

Definition at line 44 of file MapMatcher.h.

Constructor & Destructor Documentation

◆ MapMatcher() [1/2]

template<class E , class L , class N >
MapMatcher< E, L, N >::MapMatcher ( bool  matchJunctions,
double  matchDistance,
MsgHandler errorOutput 
)
inlineprotected

Definition at line 46 of file MapMatcher.h.

◆ ~MapMatcher()

template<class E , class L , class N >
virtual MapMatcher< E, L, N >::~MapMatcher ( )
inlineprotectedvirtual

Definition at line 52 of file MapMatcher.h.

References MapMatcher< E, L, N >::myLaneTree.

◆ MapMatcher() [2/2]

template<class E , class L , class N >
MapMatcher< E, L, N >::MapMatcher ( const MapMatcher< E, L, N > &  s)
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ getClosestEdge()

template<class E , class L , class N >
const E* MapMatcher< E, L, N >::getClosestEdge ( const Position pos,
double  distance,
SUMOVehicleClass  vClass 
)
inlineprotected

find closest edge within distance for the given position or nullptr

Definition at line 94 of file MapMatcher.h.

References Boundary::add(), MapMatcher< E, L, N >::getLaneTree(), Boundary::grow(), L, NamedRTree::Search(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().

Referenced by MapMatcher< E, L, N >::parseGeoEdges().

Here is the caller graph for this function:

◆ getJunctionTaz()

template<class E , class L , class N >
const E* MapMatcher< E, L, N >::getJunctionTaz ( const Position pos,
const E *  closestEdge,
SUMOVehicleClass  vClass,
bool  isFrom 
)
inlineprotected

find closest junction taz given the closest edge

Definition at line 130 of file MapMatcher.h.

References MsgHandler::inform(), JUNCTION_TAZ_MISSING_HELP, MapMatcher< E, L, N >::myErrorOutput, MapMatcher< E, L, N >::retrieveEdge(), and toString().

Referenced by MapMatcher< E, L, N >::parseGeoEdges().

Here is the caller graph for this function:

◆ getLaneTree()

template<class E , class L , class N >
NamedRTree* MapMatcher< E, L, N >::getLaneTree ( )
inlineprivate

initialize lane-RTree

Definition at line 177 of file MapMatcher.h.

References MapMatcher< E, L, N >::initLaneTree(), and MapMatcher< E, L, N >::myLaneTree.

Referenced by MapMatcher< E, L, N >::getClosestEdge().

Here is the caller graph for this function:

◆ initLaneTree()

template<class E , class L , class N >
virtual void MapMatcher< E, L, N >::initLaneTree ( NamedRTree tree)
protectedpure virtual

Implemented in RORouteHandler, and MSRouteHandler.

Referenced by MapMatcher< E, L, N >::getLaneTree().

Here is the caller graph for this function:

◆ operator=()

template<class E , class L , class N >
MapMatcher& MapMatcher< E, L, N >::operator= ( const MapMatcher< E, L, N > &  s)
privatedelete

Invalidated assignment operator.

◆ parseGeoEdges()

template<class E , class L , class N >
void MapMatcher< E, L, N >::parseGeoEdges ( const PositionVector positions,
bool  geo,
SUMOVehicleClass  vClass,
std::vector< const E * > &  into,
const std::string &  rid,
bool  isFrom,
bool &  ok 
)
inlineprotected

◆ retrieveEdge()

template<class E , class L , class N >
virtual E* MapMatcher< E, L, N >::retrieveEdge ( const std::string &  id)
protectedpure virtual

Implemented in RORouteHandler, and MSRouteHandler.

Referenced by MapMatcher< E, L, N >::getJunctionTaz().

Here is the caller graph for this function:

Field Documentation

◆ myErrorOutput

template<class E , class L , class N >
MsgHandler* MapMatcher< E, L, N >::myErrorOutput
private

◆ myLaneTree

template<class E , class L , class N >
NamedRTree* MapMatcher< E, L, N >::myLaneTree
private

RTree for finding lanes.

Definition at line 186 of file MapMatcher.h.

Referenced by MapMatcher< E, L, N >::getLaneTree(), and MapMatcher< E, L, N >::~MapMatcher().

◆ myMapMatchingDistance

template<class E , class L , class N >
double MapMatcher< E, L, N >::myMapMatchingDistance
private

Definition at line 188 of file MapMatcher.h.

Referenced by MapMatcher< E, L, N >::parseGeoEdges().

◆ myMapMatchJunctions

template<class E , class L , class N >
bool MapMatcher< E, L, N >::myMapMatchJunctions
private

Definition at line 187 of file MapMatcher.h.

Referenced by MapMatcher< E, L, N >::parseGeoEdges().


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