![]() |
SUMO - Simulation of Urban MObility
|
The pedestrian following model. More...
#include <MSPModel.h>
Public Member Functions | |
virtual PedestrianState * | add (MSPerson *person, MSPerson::MSPersonStage_Walking *stage, SUMOTime now)=0 |
register the given person as a pedestrian More... | |
virtual bool | blockedAtDist (const MSLane *lane, SUMOReal distToCrossing, std::vector< const MSPerson * > *collectBlockers)=0 |
whether a pedestrian is blocking the crossing of lane at offset distToCrossing More... | |
virtual void | cleanupHelper () |
virtual | ~MSPModel () |
Static Public Member Functions | |
static bool | canTraverse (int dir, const ConstMSEdgeVector &route) |
return whether the route may traversed with the given starting direction More... | |
static void | cleanup () |
remove state at simulation end More... | |
static MSPModel * | getModel () |
Static Public Attributes | |
static const int | BACKWARD |
static const int | FORWARD |
static const SUMOReal | SAFETY_GAP |
static const SUMOReal | SIDEWALK_OFFSET |
the offset for computing person positions when walking on edges without a sidewalk More... | |
static const int | UNDEFINED_DIRECTION |
Static Private Attributes | |
static MSPModel * | myModel |
The pedestrian following model.
Definition at line 54 of file MSPModel.h.
|
inlinevirtual |
Definition at line 62 of file MSPModel.h.
References add(), blockedAtDist(), and SUMOReal.
|
pure virtual |
register the given person as a pedestrian
Implemented in MSPModel_Striping, and MSPModel_NonInteracting.
Referenced by MSPerson::MSPersonStage_Walking::proceed(), and ~MSPModel().
|
pure virtual |
whether a pedestrian is blocking the crossing of lane at offset distToCrossing
Implemented in MSPModel_Striping, and MSPModel_NonInteracting.
Referenced by ~MSPModel().
|
static |
return whether the route may traversed with the given starting direction
Definition at line 91 of file MSPModel.cpp.
References BACKWARD, FORWARD, MSEdge::getFromJunction(), and MSEdge::getToJunction().
Referenced by MSPModel_Striping::PState::PState().
|
static |
remove state at simulation end
Definition at line 81 of file MSPModel.cpp.
References cleanupHelper(), and myModel.
Referenced by MSNet::clearAll().
|
inlinevirtual |
Reimplemented in MSPModel_Striping.
Definition at line 70 of file MSPModel.h.
Referenced by cleanup().
|
static |
Definition at line 63 of file MSPModel.cpp.
References MSNet::getInstance(), OptionsCont::getOptions(), OptionsCont::getString(), and myModel.
Referenced by MSPerson::MSPersonStage_Walking::proceed(), and MSLink::writeApproaching().
|
static |
Definition at line 74 of file MSPModel.h.
Referenced by MSPModel_Striping::addCloserObstacle(), canTraverse(), MSPModel_NonInteracting::PState::computeWalkingTime(), MSPModel_Striping::connectedDirection(), MSPModel_Striping::MovePedestrians::execute(), MSPModel_Striping::PState::getAngle(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::initWalkingAreaPaths(), MSPModel_Striping::PState::moveToNextLane(), MSPModel_Striping::PState::PState(), and MSPModel_Striping::PState::walk().
|
static |
Definition at line 70 of file MSPModel.h.
Referenced by MSPModel_Striping::addCloserObstacle(), MSPModel_Striping::blockedAtDist(), canTraverse(), MSPModel_NonInteracting::PState::computeWalkingTime(), MSPModel_Striping::connectedDirection(), MSPModel_Striping::PState::distanceTo(), MSPModel_Striping::PState::distToLaneEnd(), MSPModel_Striping::MovePedestrians::execute(), MSPModel_Striping::PState::getMaxX(), MSPModel_Striping::PState::getMinX(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::getNextWalkingArea(), MSPModel_Striping::initWalkingAreaPaths(), MSPModel_Striping::PState::PState(), and MSPModel_Striping::PState::walk().
|
staticprivate |
Definition at line 87 of file MSPModel.h.
Referenced by cleanup(), MSPModel_Striping::MovePedestrians::execute(), and getModel().
|
static |
Definition at line 78 of file MSPModel.h.
Referenced by MSPModel_Striping::blockedAtDist(), and MSLink::writeApproaching().
|
static |
the offset for computing person positions when walking on edges without a sidewalk
Definition at line 81 of file MSPModel.h.
Referenced by MSPModel_NonInteracting::PState::getPosition(), and GUINet::initGUIStructures().
|
static |
Definition at line 75 of file MSPModel.h.
Referenced by MSPModel_NonInteracting::PState::computeWalkingTime(), MSPModel_Striping::connectedDirection(), MSPModel_Striping::getNextLane(), and MSPModel_Striping::PState::moveToNextLane().