virtual const MSEdge * getNextEdge(const MSPerson::MSPersonStage_Walking &stage) const =0
return the list of internal edges if the pedestrian is on an intersection
virtual void cleanupHelper()
static const SUMOReal SAFETY_GAP
virtual ~PedestrianState()
virtual SUMOTime getWaitingTime(const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const =0
return the time the person spent standing
The base class for an intersection.
std::vector< const MSEdge * > ConstMSEdgeVector
static MSPModel * myModel
The simulated network and simulation perfomer.
virtual Position getPosition(const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const =0
return the network coordinate of the person
virtual PedestrianState * add(MSPerson *person, MSPerson::MSPersonStage_Walking *stage, SUMOTime now)=0
register the given person as a pedestrian
The pedestrian following model.
A road/street connecting two junctions.
static const int UNDEFINED_DIRECTION
virtual SUMOReal getAngle(const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const =0
return the direction in which the person faces in degrees
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
static MSPModel * getModel()
A point in 2D or 3D with translation and scaling methods.
abstract base class for managing callbacks to retrieve various state information from the model ...
static const SUMOReal SIDEWALK_OFFSET
the offset for computing person positions when walking on edges without a sidewalk ...
static void cleanup()
remove state at simulation end
static const int BACKWARD
Representation of a lane in the micro simulation.
virtual SUMOReal getSpeed(const MSPerson::MSPersonStage_Walking &stage) const =0
return the current speed of the person
virtual SUMOReal getEdgePos(const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const =0
return the offset from the start of the current edge measured in its natural direction ...
static bool canTraverse(int dir, const ConstMSEdgeVector &route)
return whether the route may traversed with the given starting direction