A class that stores a 2D geometrical boundary.
Base (microsim) event class.
A road/street connecting two junctions.
Representation of a lane in the micro simulation.
The simulated network and simulation perfomer.
MSPModel_Remote * myRemoteModel
SUMOTime execute(SUMOTime currentTime) override
Executes the command.
Event(MSPModel_Remote *remoteModel)
Container for pedestrian state and individual position update function.
const MSEdge * getNextEdge(const MSStageMoving &stage) const override
return the list of internal edges if the transportable is on an intersection
int getDirection(const MSStageMoving &stage, SUMOTime now) const override
return the walking direction (FORWARD, BACKWARD)
void setPosition(double x, double y)
Position getPosition(const MSStageMoving &stage, SUMOTime now) const override
return the network coordinate of the transportable
double getSpeed(const MSStageMoving &stage) const override
return the current speed of the transportable
double getAngle(const MSStageMoving &stage, SUMOTime now) const override
return the direction in which the transportable faces in degrees
double getEdgePos(const MSStageMoving &stage, SUMOTime now) const override
return the offset from the start of the current edge measured in its natural direction
SUMOTime getWaitingTime(const MSStageMoving &stage, SUMOTime now) const override
return the time the transportable spent standing
MSStageMoving * getStage()
The pedestrian following model connected to the external JuPedSim simulation.
std::map< int, const MSEdge * > transitionsEdgesMapping
MSLane * getFirstPedestrianLane(const MSEdge *const &edge)
MSTransportableStateAdapter * add(MSTransportable *person, MSStageMoving *stage, SUMOTime now) override
register the given person as a pedestrian
std::map< int, PState * > remoteIdPStateMapping
void remove(MSTransportableStateAdapter *state) override
remove the specified person from the pedestrian simulation
SUMOTime execute(SUMOTime time)
int getActiveNumber()
return the number of active objects
std::map< const MSEdge *, std::tuple< int, int > > edgesTransitionsMapping
void clearState()
Resets pedestrians when quick-loading state.
bool usingInternalLanes()
whether movements on intersections are modelled
The pedestrian (and also sometimes container) movement model.
abstract base class for managing callbacks to retrieve various state information from the model
A storage for options typed value containers)
A point in 2D or 3D with translation and scaling methods.