71 virtual bool blockedAtDist(
const MSLane* lane,
double distToCrossing, std::vector<const MSPerson*>* collectBlockers) = 0;
virtual void cleanupHelper()
virtual ~PedestrianState()
The base class for an intersection.
static const double SIDEWALK_OFFSET
the offset for computing person positions when walking on edges without a sidewalk ...
std::vector< const MSEdge * > ConstMSEdgeVector
static MSPModel * myModel
The simulated network and simulation perfomer.
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
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 ...
virtual bool blockedAtDist(const MSLane *lane, double distToCrossing, std::vector< const MSPerson *> *collectBlockers)=0
whether a pedestrian is blocking the crossing of lane at offset distToCrossing
static void cleanup()
remove state at simulation end
static const int BACKWARD
static const double SAFETY_GAP
Representation of a lane in the micro simulation.
static bool canTraverse(int dir, const ConstMSEdgeVector &route)
return whether the route may traversed with the given starting direction