 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
74 double speed,
double departPos,
double arrivalPos,
double departPosLat);
164 inline const std::vector<const MSEdge*>::iterator
getRouteStep()
const {
249 const double arrivalPos,
const std::vector<std::string>& lines,
250 const std::string& intendedVeh =
"",
SUMOTime intendedDepart = -1);
289 const double arrivalPos,
const double dist,
const bool isExit);
std::vector< const MSEdge * > ConstMSEdgeVector
The car-following model and parameter.
virtual void endEventOutput(const MSTransportable &p, SUMOTime t, OutputDevice &os) const
Called for writing the events output (end of an action)
void beginEventOutput(const MSTransportable &, SUMOTime, OutputDevice &) const
Called on writing events output (begin of an action). Currently does nothing.
ConstMSEdgeVector myRoute
The route of the person.
A lane area vehicles can halt at.
MSTransportable *const myPerson
double computeAverageSpeed() const
double myArrivalPos
the position at which we want to arrive
SUMOTime myWalkingTime
the time the person is walking
The pedestrian following model.
Representation of a lane in the micro simulation.
const std::string & getNextEdge() const
return the list of internal edges if this person is walking and the pedestrian model allows it
~MSPersonStage_Access()
destructor
void tripInfoOutput(OutputDevice &os, const MSTransportable *const transportable) const
Called on writing tripinfo output.
void endEventOutput(const MSTransportable &, SUMOTime, OutputDevice &) const
Called on writing events output (end of an action). Currently does nothing.
Static storage of an output device and its base (abstract) implementation.
bool hasInfluencer() const
SUMOTime getLastAccessTimeStep() const
MSPersonStage_Driving(const MSEdge *destination, MSStoppingPlace *toStop, const double arrivalPos, const std::vector< std::string > &lines, const std::string &intendedVeh="", SUMOTime intendedDepart=-1)
constructor
double getDepartPos() const
void postProcessRemoteControl(MSPerson *p)
SUMOTime myLastRemoteAccess
PedestrianState * myPedestrianState
state that is to be manipulated by MSPModel
The simulated network and simulation perfomer.
~MSPersonStage_Walking()
destructor
std::string getStageDescription() const
returns the stage description as a string
MSPersonStage_Walking(const std::string &personID, const ConstMSEdgeVector &route, MSStoppingPlace *toStop, SUMOTime walkingTime, double speed, double departPos, double arrivalPos, double departPosLat)
constructor
Representation of a vehicle.
std::vector< const MSEdge * > ConstMSEdgeVector
std::string getStageSummary() const
return string summary of the current stage
void setRemoteState(Position xyPos)
sets position outside the road network
bool operator()(double t) const
comparison operator
void setRemoteControlled(Position xyPos, MSLane *l, double pos, double posLat, double angle, int edgeOffset, const ConstMSEdgeVector &route, SUMOTime t)
Structure representing possible vehicle parameter.
arrival_finder(SUMOTime time)
constructor
SUMOTime execute(SUMOTime currentTime)
Executes the command.
const MSEdge * getFromEdge() const
SUMOTime myTime
the searched arrival time
const std::vector< const MSEdge * >::iterator getRouteStep() const
virtual void tripInfoOutput(OutputDevice &os, const MSTransportable *const transportable) const
Called on writing tripinfo output.
ProceedCmd & operator=(const ProceedCmd &)
Invalidated assignment operator.
Changes the wished person speed and position.
abstract base class for managing callbacks to retrieve various state information from the model
double walkDistance() const
compute total walking distance
const MSEdge * getRouteEdge() const
Influencer & getInfluencer()
Returns the velocity/lane influencer.
double getSpeed() const
the speed of the transportable
virtual void proceed(MSNet *net, MSTransportable *person, SUMOTime now, Stage *previous)
proceeds to the next step
SUMOTime getWaitingTime(SUMOTime now) const
the time this transportable spent waiting
virtual void tripInfoOutput(OutputDevice &os) const
Called on writing tripinfo output.
ProceedCmd(MSTransportable *person, MSEdge *edge)
MSPerson & operator=(const MSPerson &)
Invalidated assignment operator.
virtual void beginEventOutput(const MSTransportable &p, SUMOTime t, OutputDevice &os) const
Called for writing the events output.
void abort(MSTransportable *)
abort this stage (TraCI)
bool isRemoteAffected(SUMOTime t) const
ConstMSEdgeVector::iterator myRouteStep
std::string getStageSummary() const
return string summary of the current stage
~MSPersonStage_Driving()
destructor
double getMaxSpeed(const MSTransportable *const person) const
accessors to be used by MSPModel
A point in 2D or 3D with translation and scaling methods.
Position getPosition(SUMOTime now) const
returns the position of the transportable
Position getPosition(SUMOTime now) const
returns the position of the transportable
std::string getStageSummary() const
return string summary of the current stage
virtual void routeOutput(OutputDevice &os, const bool withRouteLength) const
Called on writing vehroute output.
void setSpeed(double speed)
sets the walking speed (ignored in other stages)
A road/street connecting two junctions.
MSEdge * myCurrentInternalEdge
The current internal edge this person is on or 0.
double getDepartPosLat() const
MSPersonStage_Access(const MSEdge *destination, MSStoppingPlace *toStop, const double arrivalPos, const double dist, const bool isExit)
constructor
void routeOutput(OutputDevice &, const bool) const
Called on writing vehroute output. Currently does nothing.
const double myChosenSpeedFactor
double getAngle(SUMOTime now) const
returns the angle of the transportable
double getArrivalPos() const
virtual bool isSelected() const
whether this person is selected in the GUI
virtual void routeOutput(OutputDevice &os, const bool withRouteLength) const
Called on writing vehroute output.
double getDistance() const
get travel distance in this stage
static DummyState myDummyState
double getSpeedFactor() const
the current speed factor of the transportable (where applicable)
MSPerson(const SUMOVehicleParameter *pars, MSVehicleType *vtype, MSTransportable::MSTransportablePlan *plan, const double speedFactor)
constructor
std::vector< MSTransportable::Stage * > MSTransportablePlan
the structure holding the plan of a transportable
ConstMSEdgeVector myRemoteRoute
virtual void proceed(MSNet *net, MSTransportable *person, SUMOTime now, Stage *previous)
proceeds to the next step
bool moveToNextEdge(MSPerson *person, SUMOTime currentTime, MSEdge *nextInternal=nullptr)
move forward and return whether the person arrived
const ConstMSEdgeVector & getRoute() const
double getDistance() const
get travel distance in this stage
Base (microsim) event class.
const MSEdge * getNextEdgePtr() const
returns the next edge ptr if this person is walking and the pedestrian model allows it
std::string getStageDescription() const
return (brief) string representation of the current stage
MSPerson(const MSPerson &)
Invalidated copy constructor.
MSPersonStage_Walking & operator=(const MSPersonStage_Walking &)
Invalidated assignment operator.
MSPersonStage_Walking(const MSPersonStage_Walking &)
Invalidated copy constructor.
const MSEdge * getEdge() const
Returns the current edge.
void reroute(ConstMSEdgeVector &newEdges, double departPos, int firstIndex, int nextIndex)
set new walk and replace the stages with relative indices in the interval [firstIndex,...
SUMOTime myEstimatedArrival
virtual ~MSPerson()
destructor
ConstMSEdgeVector getEdges() const
the edges of the current stage
double getAngle(SUMOTime now) const
returns the angle of the transportable
double getEdgePos(SUMOTime now) const
const MSEdge * getNextRouteEdge() const
void setRouteIndex(MSPerson *person, int routeOffset)
place person on a previously passed edge
bool isRemoteControlled() const
std::string getStageDescription() const
returns the stage description as a string
bool proceed(MSNet *net, SUMOTime time)
SUMOTime myLastEdgeEntryTime
the time the person entered the edge
Influencer * myInfluencer
An instance of a speed/position influencing instance; built in "getInfluencer".
virtual void tripInfoOutput(OutputDevice &os, const MSTransportable *const transportable) const
Called on writing tripinfo output.
virtual void routeOutput(OutputDevice &os, const bool withRouteLength) const
Called on writing vehroute output.
virtual void proceed(MSNet *net, MSTransportable *person, SUMOTime now, Stage *previous)
proceeds to the next step
PedestrianState * getPedestrianState() const