Eclipse SUMO - Simulation of Urban MObility
MSPerson::MSPersonStage_Access Class Reference

#include <MSPerson.h>

Inheritance diagram for MSPerson::MSPersonStage_Access:
Collaboration diagram for MSPerson::MSPersonStage_Access:

Data Structures

class  ProceedCmd
 

Public Member Functions

virtual void abort (MSTransportable *)
 abort this stage (TraCI) More...
 
void beginEventOutput (const MSTransportable &, SUMOTime, OutputDevice &) const
 Called on writing events output (begin of an action). Currently does nothing. More...
 
Stageclone () const
 
void endEventOutput (const MSTransportable &, SUMOTime, OutputDevice &) const
 Called on writing events output (end of an action). Currently does nothing. More...
 
double getAngle (SUMOTime now) const
 returns the angle of the transportable More...
 
double getArrivalPos () const
 
SUMOTime getDeparted () const
 get departure time of stage More...
 
const MSEdgegetDestination () const
 returns the destination edge More...
 
MSStoppingPlacegetDestinationStop () const
 returns the destination stop (if any) More...
 
double getDistance () const
 get travel distance in this stage More...
 
virtual const MSEdgegetEdge () const
 Returns the current edge. More...
 
double getEdgeAngle (const MSEdge *e, double at) const
 get angle of the edge at a certain position More...
 
virtual double getEdgePos (SUMOTime now) const
 
Position getEdgePosition (const MSEdge *e, double at, double offset) const
 get position on edge e at length at with orthogonal offset More...
 
virtual ConstMSEdgeVector getEdges () const
 the edges of the current stage More...
 
virtual const MSEdgegetFromEdge () const
 
Position getLanePosition (const MSLane *lane, double at, double offset) const
 get position on lane at length at with orthogonal offset More...
 
virtual const MSStoppingPlacegetOriginStop () const
 returns the origin stop (if any). only needed for Stage_Trip More...
 
Position getPosition (SUMOTime now) const
 returns the position of the transportable More...
 
virtual double getSpeed () const
 the speed of the transportable More...
 
std::string getStageDescription () const
 returns the stage description as a string More...
 
std::string getStageSummary () const
 return string summary of the current stage More...
 
StageType getStageType () const
 
virtual SUMOVehiclegetVehicle () const
 Whether the transportable waits for a vehicle. More...
 
virtual SUMOTime getWaitingTime (SUMOTime now) const
 the time this transportable spent waiting More...
 
virtual bool isWaiting4Vehicle () const
 Whether the transportable waits for a vehicle. More...
 
virtual bool isWaitingFor (const SUMOVehicle *vehicle) const
 Whether the transportable waits for the given vehicle. More...
 
 MSPersonStage_Access (const MSEdge *destination, MSStoppingPlace *toStop, const double arrivalPos, const double dist, const bool isExit)
 constructor More...
 
virtual void proceed (MSNet *net, MSTransportable *person, SUMOTime now, Stage *previous)
 proceeds to the next step More...
 
void routeOutput (OutputDevice &, const bool) const
 Called on writing vehroute output. Currently does nothing. More...
 
virtual void setArrived (MSNet *net, MSTransportable *transportable, SUMOTime now)
 logs end of the step More...
 
void setDeparted (SUMOTime now)
 logs end of the step More...
 
void setDestination (const MSEdge *newDestination, MSStoppingPlace *newDestStop)
 
virtual void setSpeed (double)
 sets the walking speed (ignored in other stages) More...
 
void tripInfoOutput (OutputDevice &os, const MSTransportable *const transportable) const
 Called on writing tripinfo output. More...
 
 ~MSPersonStage_Access ()
 destructor More...
 

Protected Attributes

double myArrivalPos
 the position at which we want to arrive More...
 
SUMOTime myArrived
 the time at which this stage ended More...
 
SUMOTime myDeparted
 the time at which this stage started More...
 
const MSEdgemyDestination
 the next edge to reach by getting transported More...
 
MSStoppingPlacemyDestinationStop
 the stop to reach by getting transported (if any) More...
 
StageType myType
 The type of this stage. More...
 

Private Attributes

const bool myAmExit
 
const double myDist
 
SUMOTime myEstimatedArrival
 
PositionVector myPath
 

Detailed Description

An intermediate stage performing the access from or to public transport as given by the access elements of the public transport stop. The travel time is computed by the simulation

Definition at line 285 of file MSPerson.h.

Constructor & Destructor Documentation

◆ MSPersonStage_Access()

MSPerson::MSPersonStage_Access::MSPersonStage_Access ( const MSEdge destination,
MSStoppingPlace toStop,
const double  arrivalPos,
const double  dist,
const bool  isExit 
)

◆ ~MSPersonStage_Access()

MSPerson::MSPersonStage_Access::~MSPersonStage_Access ( )

destructor

Definition at line 540 of file MSPerson.cpp.

Member Function Documentation

◆ abort()

virtual void MSTransportable::Stage::abort ( MSTransportable )
inlinevirtualinherited

◆ beginEventOutput()

void MSPerson::MSPersonStage_Access::beginEventOutput ( const MSTransportable ,
SUMOTime  ,
OutputDevice  
) const
inlinevirtual

Called on writing events output (begin of an action). Currently does nothing.

Implements MSTransportable::Stage.

Definition at line 324 of file MSPerson.h.

◆ clone()

MSTransportable::Stage * MSPerson::MSPersonStage_Access::clone ( ) const
virtual

Implements MSTransportable::Stage.

Definition at line 543 of file MSPerson.cpp.

◆ endEventOutput()

void MSPerson::MSPersonStage_Access::endEventOutput ( const MSTransportable ,
SUMOTime  ,
OutputDevice  
) const
inlinevirtual

Called on writing events output (end of an action). Currently does nothing.

Implements MSTransportable::Stage.

Definition at line 327 of file MSPerson.h.

◆ getAngle()

double MSPerson::MSPersonStage_Access::getAngle ( SUMOTime  now) const
virtual

returns the angle of the transportable

Implements MSTransportable::Stage.

Definition at line 575 of file MSPerson.cpp.

◆ getArrivalPos()

◆ getDeparted()

SUMOTime MSTransportable::Stage::getDeparted ( ) const
inherited

get departure time of stage

Definition at line 108 of file MSTransportable.cpp.

◆ getDestination()

const MSEdge * MSTransportable::Stage::getDestination ( ) const
inherited

◆ getDestinationStop()

◆ getDistance()

double MSPerson::MSPersonStage_Access::getDistance ( ) const
inlinevirtual

get travel distance in this stage

Implements MSTransportable::Stage.

Definition at line 308 of file MSPerson.h.

References myDist.

◆ getEdge()

◆ getEdgeAngle()

double MSTransportable::Stage::getEdgeAngle ( const MSEdge e,
double  at 
) const
inherited

get angle of the edge at a certain position

Definition at line 133 of file MSTransportable.cpp.

References MSEdge::getLanes().

Referenced by MSPModel_NonInteracting::PState::getAngle(), and CState::getAngle().

◆ getEdgePos()

◆ getEdgePosition()

Position MSTransportable::Stage::getEdgePosition ( const MSEdge e,
double  at,
double  offset 
) const
inherited

get position on edge e at length at with orthogonal offset

Definition at line 123 of file MSTransportable.cpp.

References MSEdge::getLanes().

◆ getEdges()

ConstMSEdgeVector MSTransportable::Stage::getEdges ( ) const
virtualinherited

◆ getFromEdge()

const MSEdge * MSTransportable::Stage::getFromEdge ( ) const
virtualinherited

◆ getLanePosition()

Position MSTransportable::Stage::getLanePosition ( const MSLane lane,
double  at,
double  offset 
) const
inherited

◆ getOriginStop()

virtual const MSStoppingPlace* MSTransportable::Stage::getOriginStop ( ) const
inlinevirtualinherited

returns the origin stop (if any). only needed for Stage_Trip

Reimplemented in MSTransportable::Stage_Trip.

Definition at line 90 of file MSTransportable.h.

Referenced by MSPerson::MSPersonStage_Driving::proceed().

◆ getPosition()

Position MSPerson::MSPersonStage_Access::getPosition ( SUMOTime  now) const
virtual

returns the position of the transportable

Implements MSTransportable::Stage.

Definition at line 569 of file MSPerson.cpp.

◆ getSpeed()

double MSTransportable::Stage::getSpeed ( ) const
virtualinherited

the speed of the transportable

Reimplemented in MSTransportable::Stage_Driving, MSContainer::MSContainerStage_Tranship, and MSPerson::MSPersonStage_Walking.

Definition at line 87 of file MSTransportable.cpp.

◆ getStageDescription()

std::string MSPerson::MSPersonStage_Access::getStageDescription ( ) const
virtual

returns the stage description as a string

Implements MSTransportable::Stage.

Definition at line 557 of file MSPerson.cpp.

◆ getStageSummary()

std::string MSPerson::MSPersonStage_Access::getStageSummary ( ) const
virtual

return string summary of the current stage

Implements MSTransportable::Stage.

Definition at line 563 of file MSPerson.cpp.

◆ getStageType()

StageType MSTransportable::Stage::getStageType ( ) const
inlineinherited

◆ getVehicle()

virtual SUMOVehicle* MSTransportable::Stage::getVehicle ( ) const
inlinevirtualinherited

Whether the transportable waits for a vehicle.

Reimplemented in MSTransportable::Stage_Driving.

Definition at line 147 of file MSTransportable.h.

Referenced by libsumo::Person::getStage().

◆ getWaitingTime()

SUMOTime MSTransportable::Stage::getWaitingTime ( SUMOTime  now) const
virtualinherited

the time this transportable spent waiting

Reimplemented in MSTransportable::Stage_Driving, MSTransportable::Stage_Waiting, MSContainer::MSContainerStage_Tranship, and MSPerson::MSPersonStage_Walking.

Definition at line 81 of file MSTransportable.cpp.

◆ isWaiting4Vehicle()

virtual bool MSTransportable::Stage::isWaiting4Vehicle ( ) const
inlinevirtualinherited

Whether the transportable waits for a vehicle.

Reimplemented in MSTransportable::Stage_Driving.

Definition at line 142 of file MSTransportable.h.

◆ isWaitingFor()

bool MSTransportable::Stage::isWaitingFor ( const SUMOVehicle vehicle) const
virtualinherited

Whether the transportable waits for the given vehicle.

Reimplemented in MSTransportable::Stage_Driving.

Definition at line 118 of file MSTransportable.cpp.

◆ proceed()

void MSPerson::MSPersonStage_Access::proceed ( MSNet net,
MSTransportable person,
SUMOTime  now,
Stage previous 
)
virtual

◆ routeOutput()

void MSPerson::MSPersonStage_Access::routeOutput ( OutputDevice ,
const bool   
) const
inlinevirtual

Called on writing vehroute output. Currently does nothing.

Implements MSTransportable::Stage.

Definition at line 321 of file MSPerson.h.

◆ setArrived()

void MSTransportable::Stage::setArrived ( MSNet net,
MSTransportable transportable,
SUMOTime  now 
)
virtualinherited

◆ setDeparted()

void MSTransportable::Stage::setDeparted ( SUMOTime  now)
inherited

logs end of the step

Definition at line 101 of file MSTransportable.cpp.

◆ setDestination()

void MSTransportable::Stage::setDestination ( const MSEdge newDestination,
MSStoppingPlace newDestStop 
)
inherited

◆ setSpeed()

virtual void MSTransportable::Stage::setSpeed ( double  )
inlinevirtualinherited

sets the walking speed (ignored in other stages)

Reimplemented in MSPerson::MSPersonStage_Walking.

Definition at line 127 of file MSTransportable.h.

◆ tripInfoOutput()

void MSPerson::MSPersonStage_Access::tripInfoOutput ( OutputDevice os,
const MSTransportable *const  transportable 
) const
virtual

Called on writing tripinfo output.

Parameters
[in]osThe stream to write the information into
[in]transportableThe person to write information about
Exceptions
IOErrornot yet implemented

Implements MSTransportable::Stage.

Definition at line 581 of file MSPerson.cpp.

References OutputDevice::closeTag(), MSTransportable::getID(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().

Field Documentation

◆ myAmExit

const bool MSPerson::MSPersonStage_Access::myAmExit
private

Definition at line 345 of file MSPerson.h.

◆ myArrivalPos

double MSTransportable::Stage::myArrivalPos
protectedinherited

◆ myArrived

SUMOTime MSTransportable::Stage::myArrived
protectedinherited

the time at which this stage ended

Definition at line 215 of file MSTransportable.h.

◆ myDeparted

SUMOTime MSTransportable::Stage::myDeparted
protectedinherited

the time at which this stage started

Definition at line 212 of file MSTransportable.h.

◆ myDestination

const MSEdge* MSTransportable::Stage::myDestination
protectedinherited

the next edge to reach by getting transported

Definition at line 203 of file MSTransportable.h.

◆ myDestinationStop

MSStoppingPlace* MSTransportable::Stage::myDestinationStop
protectedinherited

the stop to reach by getting transported (if any)

Definition at line 206 of file MSTransportable.h.

Referenced by MSTransportable::Stage::getDestinationStop(), and MSPersonStage_Access().

◆ myDist

const double MSPerson::MSPersonStage_Access::myDist
private

Definition at line 344 of file MSPerson.h.

Referenced by getDistance().

◆ myEstimatedArrival

SUMOTime MSPerson::MSPersonStage_Access::myEstimatedArrival
private

Definition at line 346 of file MSPerson.h.

◆ myPath

PositionVector MSPerson::MSPersonStage_Access::myPath
private

Definition at line 347 of file MSPerson.h.

Referenced by MSPersonStage_Access().

◆ myType

StageType MSTransportable::Stage::myType
protectedinherited

The type of this stage.

Definition at line 218 of file MSTransportable.h.

Referenced by MSTransportable::Stage::getStageType().


The documentation for this class was generated from the following files: