Eclipse SUMO - Simulation of Urban MObility
|
Provides utility functions for matching locations to edges (during route parsing) More...
#include <MapMatcher.h>
Public Member Functions | |
void | parseGeoEdges (const PositionVector &positions, bool geo, SUMOVehicleClass vClass, std::vector< const E * > &into, const std::string &rid, bool isFrom, bool &ok, bool forceEdge=false) |
Protected Member Functions | |
const L * | getClosestLane (const Position &pos, SUMOVehicleClass vClass, double distance=-1.) |
find closest lane within distance for the given position or nullptr | |
const E * | getJunctionTaz (const Position &pos, const E *closestEdge, SUMOVehicleClass vClass, bool isFrom) |
find closest junction taz given the closest edge | |
virtual SumoRNG * | getRNG () |
const E * | getTaz (const Position &pos, const E *closestEdge, bool isFrom) |
find closest junction taz given the closest edge | |
virtual void | initLaneTree (NamedRTree *tree)=0 |
MapMatcher (bool matchJunctions, bool matchTAZ, double matchDistance, MsgHandler *errorOutput) | |
virtual E * | retrieveEdge (const std::string &id)=0 |
virtual | ~MapMatcher () |
Protected Attributes | |
bool | myMapMatchTAZ |
Private Member Functions | |
NamedRTree * | getLaneTree () |
initialize lane-RTree | |
MapMatcher (const MapMatcher &s)=delete | |
Invalidated copy constructor. | |
MapMatcher & | operator= (const MapMatcher &s)=delete |
Invalidated assignment operator. | |
Private Attributes | |
MsgHandler * | myErrorOutput |
NamedRTree * | myLaneTree |
RTree for finding lanes. | |
double | myMapMatchingDistance |
bool | myMapMatchJunctions |
Provides utility functions for matching locations to edges (during route parsing)
Definition at line 45 of file MapMatcher.h.
|
inlineprotected |
Definition at line 98 of file MapMatcher.h.
|
inlineprotectedvirtual |
Definition at line 105 of file MapMatcher.h.
References MapMatcher< E, L, N >::myLaneTree.
|
privatedelete |
Invalidated copy constructor.
|
inlineprotected |
find closest lane within distance for the given position or nullptr
Definition at line 110 of file MapMatcher.h.
References Boundary::add(), MapMatcher< E, L, N >::getLaneTree(), Boundary::grow(), L, MapMatcher< E, L, N >::myMapMatchingDistance, NamedRTree::Search(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by MapMatcher< E, L, N >::parseGeoEdges().
|
inlineprotected |
find closest junction taz given the closest edge
Definition at line 138 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().
|
inlineprivate |
initialize lane-RTree
Definition at line 221 of file MapMatcher.h.
References MapMatcher< E, L, N >::initLaneTree(), and MapMatcher< E, L, N >::myLaneTree.
Referenced by MapMatcher< E, L, N >::getClosestLane().
|
inlineprotectedvirtual |
Reimplemented in MSRouteHandler.
Definition at line 209 of file MapMatcher.h.
Referenced by MapMatcher< E, L, N >::getTaz().
|
inlineprotected |
find closest junction taz given the closest edge
Definition at line 179 of file MapMatcher.h.
References MapMatcher< E, L, N >::getRNG(), MsgHandler::inform(), JUNCTION_TAZ_MISSING_HELP, MapMatcher< E, L, N >::myErrorOutput, RandHelper::rand(), and toString().
Referenced by MapMatcher< E, L, N >::parseGeoEdges().
|
protectedpure virtual |
Implemented in MSDevice_FCDReplay::FCDHandler, MSRouteHandler, and RORouteHandler.
Referenced by MapMatcher< E, L, N >::getLaneTree().
|
privatedelete |
Invalidated assignment operator.
|
inline |
Definition at line 48 of file MapMatcher.h.
References MapMatcher< E, L, N >::getClosestLane(), GeoConvHelper::getFinal(), MapMatcher< E, L, N >::getJunctionTaz(), MapMatcher< E, L, N >::getTaz(), gPrecision, gPrecisionGeo, MsgHandler::inform(), L, MIN2(), MapMatcher< E, L, N >::myErrorOutput, MapMatcher< E, L, N >::myMapMatchingDistance, MapMatcher< E, L, N >::myMapMatchJunctions, MapMatcher< E, L, N >::myMapMatchTAZ, TL, toString(), WRITE_ERROR, and GeoConvHelper::x2cartesian_const().
|
protectedpure virtual |
Implemented in MSDevice_FCDReplay::FCDHandler, MSRouteHandler, and RORouteHandler.
Referenced by MapMatcher< E, L, N >::getJunctionTaz().
|
private |
Definition at line 233 of file MapMatcher.h.
Referenced by MapMatcher< E, L, N >::getJunctionTaz(), MapMatcher< E, L, N >::getTaz(), and MapMatcher< E, L, N >::parseGeoEdges().
|
private |
RTree for finding lanes.
Definition at line 230 of file MapMatcher.h.
Referenced by MapMatcher< E, L, N >::getLaneTree(), and MapMatcher< E, L, N >::~MapMatcher().
Definition at line 232 of file MapMatcher.h.
Referenced by MapMatcher< E, L, N >::getClosestLane(), and MapMatcher< E, L, N >::parseGeoEdges().
Definition at line 231 of file MapMatcher.h.
Referenced by MapMatcher< E, L, N >::parseGeoEdges().
Definition at line 217 of file MapMatcher.h.
Referenced by MapMatcher< E, L, N >::parseGeoEdges().