SUMO - Simulation of Urban MObility
|
#include <IntermodalRouter.h>
Data Structures | |
struct | TripItem |
Public Types | |
typedef SUMOReal(* | Operation )(const E *const, const IntermodalTrip< E, N, V > *const, SUMOReal) |
Type of the function that is used to retrieve the edge effort. More... | |
Public Member Functions | |
void | addAccess (const std::string &stopId, const E *stopEdge, const SUMOReal pos) |
void | addSchedule (const SUMOVehicleParameter &pars) |
SUMOAbstractRouter< E, _IntermodalTrip > * | clone () |
bool | compute (const E *from, const E *to, SUMOReal departPos, SUMOReal arrivalPos, SUMOReal speed, const V *const vehicle, const SVCPermissions modeSet, SUMOTime msTime, std::vector< TripItem > &into) |
Builds the route between the given edges using the minimum effort at the given time The definition of the effort depends on the wished routing scheme. More... | |
bool | compute (const E *, const E *, const _IntermodalTrip *const, SUMOTime, std::vector< const E * > &) |
Builds the route between the given edges using the minimum effort at the given time The definition of the effort depends on the wished routing scheme. More... | |
void | endQuery (int visits) |
SUMOReal | getEffort (const E *const e, const IntermodalTrip< E, N, V > *const v, SUMOReal t) const |
IntermodalRouter (CreateNetCallback callback) | |
Constructor. More... | |
void | prohibit (const std::vector< E * > &toProhibit) |
SUMOReal | recomputeCosts (const std::vector< const E * > &, const _IntermodalTrip *const, SUMOTime) const |
void | setBulkMode (const bool mode) |
int | splitEdge (_IntermodalEdge *const toSplit, _IntermodalEdge *afterSplit, const SUMOReal pos, _IntermodalEdge *const fwdConn, _IntermodalEdge *const backConn=0) |
void | startQuery () |
virtual | ~IntermodalRouter () |
Destructor. More... | |
Protected Attributes | |
bool | myBulkMode |
whether we are currently operating several route queries in a bulk More... | |
Operation | myOperation |
The object's operation to perform. More... | |
Private Types | |
typedef AccessEdge< E, L, N, V > | _AccessEdge |
typedef IntermodalEdge< E, L, N, V > | _IntermodalEdge |
typedef IntermodalNetwork< E, L, N, V > | _IntermodalNetwork |
typedef IntermodalTrip< E, N, V > | _IntermodalTrip |
typedef PublicTransportEdge< E, L, N, V > | _PTEdge |
typedef void(* | CreateNetCallback )(IntermodalRouter< E, L, N, V, INTERNALROUTER > &) |
Private Member Functions | |
void | addCarEdges (const std::vector< E * > &edges) |
void | createNet () |
_IntermodalEdge * | getCarEdge (const E *e) |
Returns the associated car edge. More... | |
IntermodalRouter (_IntermodalNetwork *net) | |
IntermodalRouter & | operator= (const IntermodalRouter &s) |
Invalidated assignment operator. More... | |
Private Attributes | |
std::map< _IntermodalEdge *, std::vector < _IntermodalEdge * > > | myAccessSplits |
retrieve the splitted edges for the given "original" More... | |
const bool | myAmClone |
CreateNetCallback | myCallback |
std::map< const E *, _IntermodalEdge * > | myCarLookup |
retrieve the car edge for the given input edge E More... | |
_IntermodalNetwork * | myIntermodalNet |
INTERNALROUTER * | myInternalRouter |
int | myNumericalID |
std::map< std::string, std::vector< _PTEdge * > > | myPTLines |
retrieve the public transport edges for the given line More... | |
std::map< std::string, _IntermodalEdge * > | myStopConnections |
retrieve the connecting edges for the given "bus" stop More... | |
The router for pedestrians (on a bidirectional network of sidewalks and crossings)
Definition at line 58 of file IntermodalRouter.h.
|
private |
Definition at line 63 of file IntermodalRouter.h.
|
private |
Definition at line 61 of file IntermodalRouter.h.
|
private |
Definition at line 64 of file IntermodalRouter.h.
|
private |
Definition at line 65 of file IntermodalRouter.h.
|
private |
Definition at line 62 of file IntermodalRouter.h.
|
private |
Definition at line 60 of file IntermodalRouter.h.
|
inherited |
Type of the function that is used to retrieve the edge effort.
Definition at line 56 of file SUMOAbstractRouter.h.
|
inline |
Constructor.
Definition at line 76 of file IntermodalRouter.h.
|
inlinevirtual |
Destructor.
Definition at line 81 of file IntermodalRouter.h.
|
inlineprivate |
Definition at line 314 of file IntermodalRouter.h.
|
inline |
Definition at line 141 of file IntermodalRouter.h.
Referenced by RONet::adaptIntermodalRouter().
|
inlineprivate |
Definition at line 319 of file IntermodalRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::createNet().
|
inline |
Definition at line 185 of file IntermodalRouter.h.
Referenced by RONet::adaptIntermodalRouter().
|
inlinevirtual |
Implements SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >.
Definition at line 88 of file IntermodalRouter.h.
|
inline |
Builds the route between the given edges using the minimum effort at the given time The definition of the effort depends on the wished routing scheme.
Definition at line 243 of file IntermodalRouter.h.
Referenced by ROPerson::computeIntermodal().
|
inlinevirtual |
Builds the route between the given edges using the minimum effort at the given time The definition of the effort depends on the wished routing scheme.
Implements SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >.
Definition at line 294 of file IntermodalRouter.h.
|
inlineprivate |
Definition at line 343 of file IntermodalRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::clone(), and IntermodalRouter< E, L, N, V >::compute().
|
inlineinherited |
Definition at line 96 of file SUMOAbstractRouter.h.
References SysUtils::getCurrentMillis(), SUMOAbstractRouter< E, V >::myQueryStartTime, SUMOAbstractRouter< E, V >::myQueryTimeSum, and SUMOAbstractRouter< E, V >::myQueryVisits.
|
inlineprivate |
Returns the associated car edge.
Definition at line 354 of file IntermodalRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::addCarEdges(), and IntermodalRouter< E, L, N, V >::prohibit().
|
inlineinherited |
Definition at line 87 of file SUMOAbstractRouter.h.
References SUMOAbstractRouter< E, V >::myOperation.
|
private |
Invalidated assignment operator.
|
inline |
Definition at line 303 of file IntermodalRouter.h.
|
inlinevirtual |
Implements SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >.
Definition at line 299 of file IntermodalRouter.h.
|
inlineinherited |
Definition at line 101 of file SUMOAbstractRouter.h.
References SUMOAbstractRouter< E, V >::myBulkMode.
|
inline |
Definition at line 93 of file IntermodalRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::addAccess().
|
inlineinherited |
Definition at line 91 of file SUMOAbstractRouter.h.
References SysUtils::getCurrentMillis(), SUMOAbstractRouter< E, V >::myNumQueries, and SUMOAbstractRouter< E, V >::myQueryStartTime.
|
private |
retrieve the splitted edges for the given "original"
Definition at line 379 of file IntermodalRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::addAccess(), and IntermodalRouter< E, L, N, V >::splitEdge().
|
private |
Definition at line 363 of file IntermodalRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::~IntermodalRouter().
|
protectedinherited |
whether we are currently operating several route queries in a bulk
Definition at line 110 of file SUMOAbstractRouter.h.
|
private |
Definition at line 367 of file IntermodalRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::createNet().
|
private |
retrieve the car edge for the given input edge E
Definition at line 370 of file IntermodalRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::addAccess(), IntermodalRouter< E, L, N, V >::addCarEdges(), and IntermodalRouter< E, L, N, V >::getCarEdge().
|
private |
Definition at line 365 of file IntermodalRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::addAccess(), IntermodalRouter< E, L, N, V >::addCarEdges(), IntermodalRouter< E, L, N, V >::addSchedule(), IntermodalRouter< E, L, N, V >::clone(), IntermodalRouter< E, L, N, V >::compute(), IntermodalRouter< E, L, N, V >::createNet(), IntermodalRouter< E, L, N, V >::prohibit(), IntermodalRouter< E, L, N, V >::splitEdge(), and IntermodalRouter< E, L, N, V >::~IntermodalRouter().
|
private |
Definition at line 364 of file IntermodalRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::compute(), IntermodalRouter< E, L, N, V >::createNet(), IntermodalRouter< E, L, N, V >::prohibit(), and IntermodalRouter< E, L, N, V >::~IntermodalRouter().
|
private |
|
protectedinherited |
The object's operation to perform.
Definition at line 107 of file SUMOAbstractRouter.h.
|
private |
retrieve the public transport edges for the given line
Definition at line 373 of file IntermodalRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::addSchedule().
|
private |
retrieve the connecting edges for the given "bus" stop
Definition at line 376 of file IntermodalRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::addAccess(), and IntermodalRouter< E, L, N, V >::addSchedule().