SUMO - Simulation of Urban MObility
|
The pedestrian following model. More...
#include <MSPModel_NonInteracting.h>
Data Structures | |
class | MoveToNextEdge |
class | PState |
abstract base class for managing callbacks to retrieve various state information from the model More... |
Public Member Functions | |
PedestrianState * | add (MSPerson *person, MSPerson::MSPersonStage_Walking *stage, SUMOTime now) |
register the given person as a pedestrian | |
bool | blockedAtDist (const MSLane *lane, SUMOReal distToCrossing, std::vector< const MSPerson * > *collectBlockers) |
whether a pedestrian is blocking the crossing of lane at offset distToCrossing | |
virtual void | cleanupHelper () |
MSPModel_NonInteracting (const OptionsCont &oc, MSNet *net) | |
Constructor (it should not be necessary to construct more than one instance) | |
~MSPModel_NonInteracting () |
Static Public Member Functions | |
static bool | canTraverse (int dir, const std::vector< const MSEdge * > &route) |
return whether the route may traversed with the given starting direction | |
static void | cleanup () |
remove state at simulation end | |
static MSPModel * | getModel () |
static MSLane * | getSidewalk (const MSEdge *edge) |
return the appropriate lane to walk on |
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 | |
static const int | UNDEFINED_DIRECTION |
Private Attributes | |
MSNet * | myNet |
the net to which to issue moveToNextEdge commands |
The pedestrian following model.
Definition at line 56 of file MSPModel_NonInteracting.h.
MSPModel_NonInteracting::MSPModel_NonInteracting | ( | const OptionsCont & | oc, |
MSNet * | net | ||
) |
Constructor (it should not be necessary to construct more than one instance)
Definition at line 63 of file MSPModel_NonInteracting.cpp.
References myNet, and UNUSED_PARAMETER.
MSPModel_NonInteracting::~MSPModel_NonInteracting | ( | ) |
Definition at line 70 of file MSPModel_NonInteracting.cpp.
|
virtual |
register the given person as a pedestrian
Implements MSPModel.
Definition at line 75 of file MSPModel_NonInteracting.cpp.
References MSEventControl::ADAPT_AFTER_EXECUTION, MSEventControl::addEvent(), MSPModel_NonInteracting::PState::computeWalkingTime(), MSNet::getBeginOfTimestepEvents(), and myNet.
|
virtual |
whether a pedestrian is blocking the crossing of lane at offset distToCrossing
Implements MSPModel.
Definition at line 87 of file MSPModel_NonInteracting.cpp.
return whether the route may traversed with the given starting direction
Definition at line 109 of file MSPModel.cpp.
References MSPModel::BACKWARD, MSPModel::FORWARD, MSEdge::getFromJunction(), and MSEdge::getToJunction().
Referenced by MSPModel_Striping::PState::PState().
|
staticinherited |
remove state at simulation end
Definition at line 83 of file MSPModel.cpp.
References MSPModel::cleanupHelper(), and MSPModel::myModel.
Referenced by MSNet::clearAll().
|
inlinevirtualinherited |
Reimplemented in MSPModel_Striping.
Definition at line 73 of file MSPModel.h.
Referenced by MSPModel::cleanup().
|
staticinherited |
Definition at line 65 of file MSPModel.cpp.
References MSNet::getInstance(), OptionsCont::getOptions(), OptionsCont::getString(), and MSPModel::myModel.
Referenced by MSPerson::MSPersonStage_Walking::proceed().
return the appropriate lane to walk on
Definition at line 93 of file MSPModel.cpp.
References MSEdge::getLanes(), and SVC_PEDESTRIAN.
Referenced by MSPModel_Striping::add(), MSPModel_Striping::getNextLane(), MSPModel_NonInteracting::PState::getPosition(), and MSPModel_Striping::initWalkingAreaPaths().
|
staticinherited |
Definition at line 77 of file MSPModel.h.
Referenced by MSPModel::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().
|
staticinherited |
Definition at line 73 of file MSPModel.h.
Referenced by MSPModel_Striping::blockedAtDist(), MSPModel::canTraverse(), MSPModel_NonInteracting::PState::computeWalkingTime(), MSPModel_Striping::connectedDirection(), MSPModel_Striping::PState::distToLaneEnd(), MSPModel_Striping::MovePedestrians::execute(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::getNextWalkingArea(), MSPModel_Striping::initWalkingAreaPaths(), MSPModel_Striping::PState::PState(), and MSPModel_Striping::PState::walk().
|
private |
the net to which to issue moveToNextEdge commands
Definition at line 113 of file MSPModel_NonInteracting.h.
Referenced by add(), and MSPModel_NonInteracting().
|
staticinherited |
Definition at line 81 of file MSPModel.h.
Referenced by MSPModel_Striping::blockedAtDist().
|
staticinherited |
the offset for computing person positions when walking on edges without a sidewalk
Definition at line 84 of file MSPModel.h.
Referenced by MSPModel_NonInteracting::PState::getPosition(), MSPerson::MSPersonStage_Driving::getPosition(), MSPerson::MSPersonStage_Waiting::getPosition(), and GUINet::initGUIStructures().
|
staticinherited |
Definition at line 78 of file MSPModel.h.
Referenced by MSPModel_NonInteracting::PState::computeWalkingTime(), MSPModel_Striping::connectedDirection(), MSPModel_Striping::getNextLane(), and MSPModel_Striping::PState::moveToNextLane().