223 const SUMOReal arrivalPos,
const std::vector<std::string>& lines);
339 return "waiting (" + myActType +
")";
SUMOVehicle * getVehicle() const
The vehicle the person is riding or 0.
const MSEdge * myWaitingEdge
virtual ~MSPerson()
destructor
const MSEdge * getNextRouteEdge() const
A lane area vehicles can halt at.
arrival_finder(SUMOTime time)
constructor
MSEdge * myCurrentInternalEdge
The current internal edge this person is on or 0.
SUMOTime myWaitingSince
The time since which this person is waiting for a ride.
Position getPosition(SUMOTime now) const
returns the position of the transportable
const std::set< std::string > myLines
the lines to choose from
SUMOTime myWaitingUntil
the time until the person is waiting
const MSEdge * getNextEdgePtr() const
returns the next edge ptr if this person is walking and the pedestrian model allows it ...
virtual void routeOutput(OutputDevice &os) const
Called on writing vehroute output.
std::vector< const MSEdge * > ConstMSEdgeVector
virtual bool isWaiting4Vehicle() const
Whether the transportable waits for a vehicle.
virtual void beginEventOutput(const MSTransportable &p, SUMOTime t, OutputDevice &os) const
Called for writing the events output.
std::vector< const MSEdge * > ConstMSEdgeVector
The simulated network and simulation perfomer.
SUMOReal getEdgePos(SUMOTime now) const
The car-following model and parameter.
const MSEdge * getEdge() const
Returns the current edge.
The pedestrian following model.
virtual void proceed(MSNet *net, MSTransportable *person, SUMOTime now, Stage *previous)
proceeds to the next step
ConstMSEdgeVector myRoute
The route of the person.
A road/street connecting two junctions.
std::vector< MSTransportable::Stage * > MSTransportablePlan
the structure holding the plan of a transportable
bool moveToNextEdge(MSPerson *person, SUMOTime currentTime, MSEdge *nextInternal=0)
move forward and return whether the person arrived
PedestrianState * getPedestrianState() const
Representation of a vehicle.
virtual bool isWaitingFor(const std::string &line) const
Whether the transportable waits for a vehicle of the line specified.
MSPersonStage_Walking & operator=(const MSPersonStage_Walking &)
Invalidated assignment operator.
A point in 2D or 3D with translation and scaling methods.
const ConstMSEdgeVector & getRoute() const
SUMOReal computeAverageSpeed() const
SUMOTime myWaitingDuration
the time the person is waiting
SUMOReal myArrivalPos
the position at which we want to arrive
std::string myActType
The type of activity.
ConstMSEdgeVector::iterator myRouteStep
const MSEdge * getRouteEdge() const
bool operator()(SUMOReal t) const
comparison operator
void setVehicle(SUMOVehicle *v)
SUMOTime getWaitingTime(SUMOTime now) const
the time this transportable spent waiting
std::string getStageDescription() const
return string representation of the current stage
abstract base class for managing callbacks to retrieve various state information from the model ...
SUMOReal getArrivalPos() const
SUMOReal getAngle(SUMOTime now) const
returns the angle of the transportable
virtual void endEventOutput(const MSTransportable &p, SUMOTime t, OutputDevice &os) const
Called for writing the events output (end of an action)
Structure representing possible vehicle parameter.
SUMOTime myTime
the searched arrival time
SUMOTime myWaitingStart
the time the person is waiting
SUMOTime myWalkingTime
the time the person is walking
SUMOReal getDepartPos() const
~MSPersonStage_Walking()
destructor
const std::string & getNextEdge() const
return the list of internal edges if this person is walking and the pedestrian model allows it ...
PedestrianState * myPedestrianState
state that is to be manipulated by MSPModel
const MSEdge * getFromEdge() const
MSPerson(const SUMOVehicleParameter *pars, const MSVehicleType *vtype, MSTransportable::MSTransportablePlan *plan)
constructor
Static storage of an output device and its base (abstract) implementation.
MSPersonStage_Walking(const ConstMSEdgeVector &route, MSStoppingPlace *toStop, SUMOTime walkingTime, SUMOReal speed, SUMOReal departPos, SUMOReal arrivalPos)
constructor
SUMOVehicle * myVehicle
The taken vehicle.
SUMOReal getMaxSpeed() const
accessors to be used by MSPModel
SUMOReal getSpeed() const
the speed of the transportable
Representation of a lane in the micro simulation.
std::string getStageDescription() const
return string representation of the current stage
virtual void tripInfoOutput(OutputDevice &os) const
Called on writing tripinfo output.