 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef MSPModel_NonInteracting_h
18 #define MSPModel_NonInteracting_h
~MSPModel_NonInteracting()
The pedestrian following model.
The pedestrian following model.
double getSpeed(const MSPerson::MSPersonStage_Walking &stage) const
return the current speed of the person
Representation of a lane in the micro simulation.
The base class for an intersection.
Position getPosition(const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const
return the network coordinate of the person
The simulated network and simulation perfomer.
MoveToNextEdge * getCommand()
SUMOTime computeWalkingTime(const MSEdge *prev, const MSPerson::MSPersonStage_Walking &stage, SUMOTime currentTime)
compute walking time on edge and update state members
MSPerson::MSPersonStage_Walking & myParent
SUMOTime getWaitingTime(const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const
return the time the person spent standing
abstract base class for managing callbacks to retrieve various state information from the model
MoveToNextEdge(MSPerson *person, MSPerson::MSPersonStage_Walking &walk)
double getAngle(const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const
return the direction in which the person faces in degrees
const MSEdge * getNextEdge(const MSPerson::MSPersonStage_Walking &stage) const
return the list of internal edges if the pedestrian is on an intersection
abstract base class for managing callbacks to retrieve various state information from the model
SUMOTime execute(SUMOTime currentTime)
Executes the command.
SUMOTime myCurrentDuration
A point in 2D or 3D with translation and scaling methods.
MoveToNextEdge & operator=(const MoveToNextEdge &)
Invalidated assignment operator.
MoveToNextEdge * myCommand
const MSPerson * getPerson() const
void remove(PedestrianState *state)
remove the specified person from the pedestrian simulation
bool usingInternalLanes()
whether movements on intersections are modelled
A storage for options typed value containers)
A road/street connecting two junctions.
double getEdgePos(const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const
abstract methods inherited from PedestrianState
Base (microsim) event class.
MSPModel_NonInteracting(const OptionsCont &oc, MSNet *net)
Constructor (it should not be necessary to construct more than one instance)
PState(MoveToNextEdge *cmd)
MSNet * myNet
the net to which to issue moveToNextEdge commands
PedestrianState * add(MSPerson *person, MSPerson::MSPersonStage_Walking *stage, SUMOTime now)
register the given person as a pedestrian