Eclipse SUMO - Simulation of Urban MObility
PedestrianRouter Class Reference

#include <MSNet.h>

Collaboration diagram for PedestrianRouter:

Public Member Functions

virtual SUMOAbstractRouter< E, _IntermodalTrip > * clone ()
 
bool compute (const E *, const E *, const _IntermodalTrip *const, SUMOTime, std::vector< const E * > &, bool)
 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...
 
double compute (const E *from, const E *to, double departPos, double arrivalPos, double speed, SUMOTime msTime, const N *onlyNode, std::vector< const E * > &into, bool allEdges=false)
 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...
 
 PedestrianRouter ()
 Constructor. More...
 
 PedestrianRouter (_IntermodalNetwork *net)
 
void prohibit (const std::vector< E * > &toProhibit)
 
virtual ~PedestrianRouter ()
 Destructor. More...
 

Private Types

typedef IntermodalEdge< E, L, N, V > _IntermodalEdge
 
typedef IntermodalNetwork< E, L, N, V > _IntermodalNetwork
 
typedef IntermodalTrip< E, N, V > _IntermodalTrip
 
typedef DijkstraRouter< _IntermodalEdge, _IntermodalTrip_InternalRouter
 

Private Member Functions

PedestrianRouteroperator= (const PedestrianRouter &s)
 Invalidated assignment operator. More...
 

Private Attributes

const bool myAmClone
 
_InternalRoutermyInternalRouter
 
_IntermodalNetworkmyPedNet
 

Detailed Description

The router for pedestrians (on a bidirectional network of sidewalks and crossings)

Definition at line 81 of file MSNet.h.

Member Typedef Documentation

◆ _IntermodalEdge

Definition at line 49 of file PedestrianRouter.h.

◆ _IntermodalNetwork

Definition at line 50 of file PedestrianRouter.h.

◆ _IntermodalTrip

Definition at line 51 of file PedestrianRouter.h.

◆ _InternalRouter

Constructor & Destructor Documentation

◆ PedestrianRouter() [1/2]

PedestrianRouter::PedestrianRouter ( )
inline

Constructor.

Definition at line 56 of file PedestrianRouter.h.

◆ PedestrianRouter() [2/2]

PedestrianRouter::PedestrianRouter ( _IntermodalNetwork net)
inline

Definition at line 63 of file PedestrianRouter.h.

◆ ~PedestrianRouter()

virtual PedestrianRouter::~PedestrianRouter ( )
inlinevirtual

Destructor.

Definition at line 71 of file PedestrianRouter.h.

Member Function Documentation

◆ clone()

virtual SUMOAbstractRouter<E, _IntermodalTrip>* PedestrianRouter::clone ( )
inlinevirtual

Definition at line 78 of file PedestrianRouter.h.

◆ compute() [1/2]

bool PedestrianRouter::compute ( const E *  ,
const E *  ,
const _IntermodalTrip * const  ,
SUMOTime  ,
std::vector< const E * > &  ,
bool   
)
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 123 of file PedestrianRouter.h.

◆ compute() [2/2]

double PedestrianRouter::compute ( const E *  from,
const E *  to,
double  departPos,
double  arrivalPos,
double  speed,
SUMOTime  msTime,
const N *  onlyNode,
std::vector< const E * > &  into,
bool  allEdges = false 
)
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 84 of file PedestrianRouter.h.

Referenced by MSPModel_Striping::getNextLane(), MSPModel_Striping::PState::PState(), and libsumo::Person::rerouteTraveltime().

◆ operator=()

PedestrianRouter& PedestrianRouter::operator= ( const PedestrianRouter s)
private

Invalidated assignment operator.

◆ prohibit()

void PedestrianRouter::prohibit ( const std::vector< E * > &  toProhibit)
inline

Definition at line 128 of file PedestrianRouter.h.

Field Documentation

◆ myAmClone

const bool PedestrianRouter::myAmClone
private

◆ myInternalRouter

◆ myPedNet


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