Eclipse SUMO - Simulation of Urban MObility
MSStageTranship Class Reference

#include <MSStageTranship.h>

Inheritance diagram for MSStageTranship:
[legend]
Collaboration diagram for MSStageTranship:
[legend]

Public Member Functions

virtual void abort (MSTransportable *)
 abort this stage (TraCI) More...
 
virtual void activateEntryReminders (MSTransportable *)
 
MSStageclone () const
 
double getAngle (SUMOTime now) const
 Returns the angle of the container. More...
 
double getArrivalPos () const
 
SUMOTime getArrived () const
 get arrival time of stage More...
 
double getConfiguredSpeed () const
 Returns the configured speed in this stage. More...
 
SUMOTime getDeparted () const
 get departure time of stage More...
 
int getDepartLane () const
 
double getDepartPos () const
 
double getDepartPosLat () const
 
const MSEdgegetDestination () const
 returns the destination edge More...
 
MSStoppingPlacegetDestinationStop () const
 returns the destination stop (if any) More...
 
int getDirection () const
 Return the movement directon on the edge. More...
 
double getDistance () const
 get travel distance in this stage More...
 
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...
 
double getEdgePos (SUMOTime now) const
 Returns the offset from the start of the current edge measured in its natural direction. More...
 
Position getEdgePosition (const MSEdge *e, double at, double offset) const
 get position on edge e at length at with orthogonal offset More...
 
ConstMSEdgeVector getEdges () const
 the edges of the current stage More...
 
const MSEdgegetFromEdge () const
 Returns first edge of the containers route. More...
 
const std::string & getGroup () const
 return the id of the group of transportables traveling together More...
 
const MSLanegetLane () const
 Returns the current lane. More...
 
Position getLanePosition (const MSLane *lane, double at, double offset) const
 get position on lane at length at with orthogonal offset More...
 
double getMaxSpeed (const MSTransportable *const transportable=nullptr) const
 the maximum speed of the transportable More...
 
const MSEdgegetNextRouteEdge () const
 
virtual MSStoppingPlacegetOriginStop () const
 returns the origin stop (if any). only needed for MSStageTrip More...
 
Position getPosition (SUMOTime now) const
 Returns the position of the container. More...
 
const std::vector< const MSEdge * > & getRoute () const
 
virtual int getRoutePosition () const
 return index of current edge within route More...
 
const std::vector< constMSEdge * >::iterator getRouteStep () const
 
double getSpeed () const
 Returns the speed of the container. More...
 
std::string getStageDescription (const bool isPerson) const
 Returns the current stage description as a string. More...
 
std::string getStageSummary (const bool isPerson) const
 return string summary of the current stage More...
 
MSStageType getStageType () const
 
virtual MSTransportableStateAdaptergetState () const
 
virtual SUMOVehiclegetVehicle () const
 Current vehicle in which the transportable is driving (or nullptr) More...
 
SUMOTime getWaitingTime (SUMOTime now) const
 Returns the time the container 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...
 
virtual void loadState (MSTransportable *transportable, std::istringstream &state)
 Reconstructs the current state, standard implementation does nothing. More...
 
void markSet (int what)
 
bool moveToNextEdge (MSTransportable *container, SUMOTime currentTime, int prevDir, MSEdge *nextInternal=0)
 move forward and return whether the container arrived More...
 
 MSStageTranship (const std::vector< const MSEdge * > &route, MSStoppingPlace *toStop, double speed, double departPos, double arrivalPos)
 constructor More...
 
void proceed (MSNet *net, MSTransportable *transportable, SUMOTime now, MSStage *previous)
 proceeds to the next step More...
 
virtual void replaceRoute (MSTransportable *const transportable, const ConstMSEdgeVector &edges, int routeOffset)
 
void routeOutput (const bool isPerson, OutputDevice &os, const bool withRouteLength, const MSStage *const previous) const
 Called on writing vehroute output. More...
 
virtual void saveState (std::ostringstream &out)
 Saves the current state into the given stream, standard implementation does nothing. More...
 
void setArrivalPos (double arrivalPos)
 
virtual const std::string setArrived (MSNet *net, MSTransportable *transportable, SUMOTime now, const bool vehicleArrived)
 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 setRouteIndex (MSTransportable *const transportable, int routeOffset)
 place transportable on a previously passed edge More...
 
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...
 
bool wasSet (int what) const
 
 ~MSStageTranship ()
 destructor More...
 

Static Public Member Functions

static const MSLanecheckDepartLane (const MSEdge *edge, SUMOVehicleClass svc, int laneIndex, const std::string &id)
 interpret custom depart lane More...
 

Protected Attributes

double myArrivalPos
 the position at which we want to arrive More...
 
SUMOTime myArrived
 the time at which this stage ended More...
 
MSEdgemyCurrentInternalEdge = nullptr
 The current internal edge this transportable is on or nullptr. More...
 
SUMOTime myDeparted
 the time at which this stage started More...
 
int myDepartLane
 the depart lane or -1 More...
 
double myDepartPos
 the depart position More...
 
double myDepartPosLat
 the lateral depart position More...
 
const MSEdgemyDestination
 the next edge to reach by getting transported More...
 
MSStoppingPlacemyDestinationStop
 the stop to reach by getting transported (if any) More...
 
const std::string myGroup
 The id of the group of transportables traveling together. More...
 
int myParametersSet
 Information on which parameter were set (mainly for vehroute output) More...
 
std::vector< const MSEdge * > myRoute
 The route of the container. More...
 
std::string myRouteID
 The original route id. More...
 
std::vector< constMSEdge * >::iterator myRouteStep
 current step More...
 
double mySpeed
 the speed of the transportable More...
 
MSTransportableStateAdaptermyState
 state that is to be manipulated by MSPModel More...
 
MSStageType myType
 The type of this stage. More...
 

Static Protected Attributes

static const double ROADSIDE_OFFSET
 the offset for computing positions when standing at an edge More...
 

Private Member Functions

 MSStageTranship (const MSStageTranship &)
 Invalidated copy constructor. More...
 
MSStageTranshipoperator= (const MSStageTranship &)
 Invalidated assignment operator. More...
 

Detailed Description

A "real" stage performing the tranship of a container A container is in this stage if it gets transhiped between two stops that are assumed to be connected.

Definition at line 57 of file MSStageTranship.h.

Constructor & Destructor Documentation

◆ MSStageTranship() [1/2]

MSStageTranship::MSStageTranship ( const std::vector< const MSEdge * > &  route,
MSStoppingPlace toStop,
double  speed,
double  departPos,
double  arrivalPos 
)

constructor

Definition at line 45 of file MSStageTranship.cpp.

References SUMOVehicleParameter::interpretEdgePos(), MSStage::myArrivalPos, MSStageMoving::myDepartPos, MSStageMoving::myRoute, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, and TRANSHIP.

Referenced by clone().

Here is the caller graph for this function:

◆ ~MSStageTranship()

MSStageTranship::~MSStageTranship ( )

destructor

Definition at line 59 of file MSStageTranship.cpp.

◆ MSStageTranship() [2/2]

MSStageTranship::MSStageTranship ( const MSStageTranship )
private

Invalidated copy constructor.

Member Function Documentation

◆ abort()

virtual void MSStage::abort ( MSTransportable )
inlinevirtualinherited

abort this stage (TraCI)

Reimplemented in MSPerson::MSPersonStage_Walking, MSStageWaiting, and MSStageDriving.

Definition at line 136 of file MSStage.h.

Referenced by GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject().

Here is the caller graph for this function:

◆ activateEntryReminders()

virtual void MSStageMoving::activateEntryReminders ( MSTransportable )
inlinevirtualinherited

Reimplemented in MSPerson::MSPersonStage_Walking.

Definition at line 94 of file MSStageMoving.h.

◆ checkDepartLane()

const MSLane * MSStageMoving::checkDepartLane ( const MSEdge edge,
SUMOVehicleClass  svc,
int  laneIndex,
const std::string &  id 
)
staticinherited

interpret custom depart lane

Definition at line 119 of file MSStageMoving.cpp.

References MSEdge::getLanes(), OptionsCont::getOptions(), toString(), and WRITE_WARNING.

Referenced by MSPModel_Striping::add(), and MSRouteHandler::interpretDepartPosLat().

Here is the caller graph for this function:

◆ clone()

MSStage * MSStageTranship::clone ( ) const
virtual

◆ getAngle()

double MSStageMoving::getAngle ( SUMOTime  now) const
virtualinherited

Returns the angle of the container.

Implements MSStage.

Definition at line 79 of file MSStageMoving.cpp.

References MSTransportableStateAdapter::getAngle(), and MSStageMoving::myState.

◆ getArrivalPos()

double MSStageTranship::getArrivalPos ( ) const
inlinevirtual

Reimplemented from MSStage.

Definition at line 106 of file MSStageTranship.h.

References MSStage::myArrivalPos.

◆ getArrived()

SUMOTime MSStage::getArrived ( ) const
inherited

get arrival time of stage

Definition at line 122 of file MSStage.cpp.

References MSStage::myArrived.

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

Here is the caller graph for this function:

◆ getConfiguredSpeed()

double MSStageMoving::getConfiguredSpeed ( ) const
inlineinherited

Returns the configured speed in this stage.

Definition at line 84 of file MSStageMoving.h.

References MSStageMoving::mySpeed.

◆ getDeparted()

SUMOTime MSStage::getDeparted ( ) const
inherited

get departure time of stage

Definition at line 117 of file MSStage.cpp.

References MSStage::myDeparted.

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

Here is the caller graph for this function:

◆ getDepartLane()

int MSStageMoving::getDepartLane ( ) const
inlineinherited

Definition at line 117 of file MSStageMoving.h.

References MSStageMoving::myDepartLane.

Referenced by MSPModel_Striping::add().

Here is the caller graph for this function:

◆ getDepartPos()

double MSStageMoving::getDepartPos ( ) const
inlineinherited

Definition at line 109 of file MSStageMoving.h.

References MSStageMoving::myDepartPos.

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

Here is the caller graph for this function:

◆ getDepartPosLat()

double MSStageMoving::getDepartPosLat ( ) const
inlineinherited

Definition at line 113 of file MSStageMoving.h.

References MSStageMoving::myDepartPosLat.

◆ getDestination()

◆ getDestinationStop()

◆ getDirection()

int MSStageMoving::getDirection ( ) const
virtualinherited

Return the movement directon on the edge.

Reimplemented from MSStage.

Definition at line 68 of file MSStageMoving.cpp.

References MSTransportableStateAdapter::getDirection(), MSNet::getInstance(), MSStageMoving::myState, and MSPModel::UNDEFINED_DIRECTION.

◆ getDistance()

double MSStageTranship::getDistance ( ) const
virtual

get travel distance in this stage

Implements MSStage.

Definition at line 88 of file MSStageTranship.cpp.

References MSStage::myArrived, MSStage::myDeparted, MSStageMoving::mySpeed, and STEPS2TIME.

Referenced by tripInfoOutput().

Here is the caller graph for this function:

◆ getEdge()

const MSEdge * MSStageMoving::getEdge ( ) const
virtualinherited

◆ getEdgeAngle()

double MSStage::getEdgeAngle ( const MSEdge e,
double  at 
) const
inherited

get angle of the edge at a certain position

Definition at line 149 of file MSStage.cpp.

References MSEdge::getLanes().

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

Here is the caller graph for this function:

◆ getEdgePos()

double MSStageMoving::getEdgePos ( SUMOTime  now) const
virtualinherited

Returns the offset from the start of the current edge measured in its natural direction.

Reimplemented from MSStage.

Definition at line 63 of file MSStageMoving.cpp.

References MSTransportableStateAdapter::getEdgePos(), and MSStageMoving::myState.

◆ getEdgePosition()

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

get position on edge e at length at with orthogonal offset

Definition at line 138 of file MSStage.cpp.

References MSStage::getLanePosition(), and MSEdge::getLanes().

Referenced by MSStageDriving::getPosition(), MSStageTrip::getPosition(), and MSStageWaiting::getPosition().

Here is the caller graph for this function:

◆ getEdges()

ConstMSEdgeVector MSStageMoving::getEdges ( ) const
virtualinherited

the edges of the current stage

Reimplemented from MSStage.

Definition at line 57 of file MSStageMoving.cpp.

References MSStageMoving::myRoute.

Referenced by MSPModel_NonInteracting::CState::computeDuration(), and LIBSUMO_NAMESPACE::Person::moveToXY().

Here is the caller graph for this function:

◆ getFromEdge()

const MSEdge * MSStageMoving::getFromEdge ( ) const
virtualinherited

Returns first edge of the containers route.

Reimplemented from MSStage.

Definition at line 52 of file MSStageMoving.cpp.

References MSStageMoving::myRoute.

Referenced by MSPModel_NonInteracting::CState::computeDuration().

Here is the caller graph for this function:

◆ getGroup()

const std::string & MSStage::getGroup ( ) const
inlineinherited

return the id of the group of transportables traveling together

Definition at line 122 of file MSStage.h.

References MSStage::myGroup.

◆ getLane()

const MSLane * MSStageMoving::getLane ( ) const
virtualinherited

Returns the current lane.

Reimplemented from MSStage.

Definition at line 94 of file MSStageMoving.cpp.

References MSTransportableStateAdapter::getLane(), and MSStageMoving::myState.

◆ getLanePosition()

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

get position on lane at length at with orthogonal offset

Definition at line 143 of file MSStage.cpp.

References MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), and PositionVector::positionAtOffset().

Referenced by MSPModel_NonInteracting::CState::computeDuration(), MSStage::getEdgePosition(), MSPModel_NonInteracting::PState::getPosition(), and MSPModel_Striping::PState::getPosition().

Here is the caller graph for this function:

◆ getMaxSpeed()

double MSStageTranship::getMaxSpeed ( const MSTransportable *const  transportable = nullptr) const
inlinevirtual

the maximum speed of the transportable

Implements MSStageMoving.

Definition at line 101 of file MSStageTranship.h.

References MSStageMoving::mySpeed, and UNUSED_PARAMETER.

◆ getNextRouteEdge()

const MSEdge * MSStageTranship::getNextRouteEdge ( ) const
inlinevirtual

Implements MSStageMoving.

Definition at line 110 of file MSStageTranship.h.

References MSStageMoving::myRoute, and MSStageMoving::myRouteStep.

◆ getOriginStop()

virtual MSStoppingPlace * MSStage::getOriginStop ( ) const
inlinevirtualinherited

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

Reimplemented in MSStageDriving, and MSStageTrip.

Definition at line 85 of file MSStage.h.

Referenced by GUIPerson::getGUIPosition(), MSTransportableControl::loadAnyWaiting(), MSStageDriving::loadState(), MSStageDriving::proceed(), and MSTransportable::proceed().

Here is the caller graph for this function:

◆ getPosition()

Position MSStageMoving::getPosition ( SUMOTime  now) const
virtualinherited

Returns the position of the container.

Implements MSStage.

Definition at line 74 of file MSStageMoving.cpp.

References MSTransportableStateAdapter::getPosition(), Position::INVALID, and MSStageMoving::myState.

◆ getRoute()

const std::vector< const MSEdge * > & MSStageMoving::getRoute ( ) const
inlineinherited

Definition at line 101 of file MSStageMoving.h.

References MSStageMoving::myRoute.

Referenced by GUIPerson::drawGLAdditional(), MSPModel_Striping::getNextLane(), LIBSUMO_NAMESPACE::Person::moveToXY(), and MSPModel_Striping::PState::PState().

Here is the caller graph for this function:

◆ getRoutePosition()

virtual int MSStage::getRoutePosition ( ) const
inlinevirtualinherited

return index of current edge within route

Reimplemented in MSPerson::MSPersonStage_Walking.

Definition at line 176 of file MSStage.h.

◆ getRouteStep()

const std::vector< constMSEdge * >::iterator MSStageMoving::getRouteStep ( ) const
inlineinherited

Definition at line 105 of file MSStageMoving.h.

References MSStageMoving::myRouteStep.

Referenced by LIBSUMO_NAMESPACE::Person::moveToXY().

Here is the caller graph for this function:

◆ getSpeed()

double MSStageMoving::getSpeed ( ) const
virtualinherited

Returns the speed of the container.

Reimplemented from MSStage.

Definition at line 89 of file MSStageMoving.cpp.

References MSTransportableStateAdapter::getSpeed(), and MSStageMoving::myState.

◆ getStageDescription()

std::string MSStageTranship::getStageDescription ( const bool  isPerson) const
inlinevirtual

Returns the current stage description as a string.

Implements MSStage.

Definition at line 75 of file MSStageTranship.h.

References UNUSED_PARAMETER.

◆ getStageSummary()

std::string MSStageTranship::getStageSummary ( const bool  isPerson) const
virtual

return string summary of the current stage

Implements MSStage.

Definition at line 153 of file MSStageTranship.cpp.

References MSStage::getDestination(), MSStage::getDestinationStop(), and Named::getID().

◆ getStageType()

MSStageType MSStage::getStageType ( ) const
inlineinherited

Definition at line 117 of file MSStage.h.

References MSStage::myType.

Referenced by MSPerson::checkAccess(), LIBSUMO_NAMESPACE::Person::getStage(), MSStageDriving::loadState(), MSStageDriving::proceed(), MSTransportable::proceed(), MSTransportable::rerouteParkingArea(), MSStageDriving::routeOutput(), and MSStageTrip::routeOutput().

Here is the caller graph for this function:

◆ getState()

virtual MSTransportableStateAdapter * MSStageMoving::getState ( ) const
inlinevirtualinherited

Definition at line 49 of file MSStageMoving.h.

References MSStageMoving::myState.

Referenced by GUIPerson::drawAction_drawWalkingareaPath(), MSPModel_NonInteracting::MoveToNextEdge::execute(), MSPerson::getNextEdgePtr(), MSPerson::isJammed(), LIBSUMO_NAMESPACE::Person::moveTo(), and MSPerson::Influencer::postProcessRemoteControl().

Here is the caller graph for this function:

◆ getVehicle()

virtual SUMOVehicle * MSStage::getVehicle ( ) const
inlinevirtualinherited

Current vehicle in which the transportable is driving (or nullptr)

Reimplemented in MSStageDriving.

Definition at line 162 of file MSStage.h.

Referenced by GUIPerson::getVehicleID().

Here is the caller graph for this function:

◆ getWaitingTime()

SUMOTime MSStageMoving::getWaitingTime ( SUMOTime  now) const
virtualinherited

Returns the time the container spent waiting.

Reimplemented from MSStage.

Definition at line 84 of file MSStageMoving.cpp.

References MSTransportableStateAdapter::getWaitingTime(), and MSStageMoving::myState.

◆ isWaiting4Vehicle()

virtual bool MSStage::isWaiting4Vehicle ( ) const
inlinevirtualinherited

Whether the transportable waits for a vehicle.

Reimplemented in MSStageDriving.

Definition at line 157 of file MSStage.h.

◆ isWaitingFor()

bool MSStage::isWaitingFor ( const SUMOVehicle vehicle) const
virtualinherited

Whether the transportable waits for the given vehicle.

Reimplemented in MSStageDriving.

Definition at line 133 of file MSStage.cpp.

◆ loadState()

virtual void MSStage::loadState ( MSTransportable transportable,
std::istringstream &  state 
)
inlinevirtualinherited

Reconstructs the current state, standard implementation does nothing.

Reimplemented in MSPerson::MSPersonStage_Walking, MSStageDriving, and MSStageWaiting.

Definition at line 219 of file MSStage.h.

References UNUSED_PARAMETER.

◆ markSet()

void MSStage::markSet ( int  what)
inlineinherited

Definition at line 228 of file MSStage.h.

References MSStage::myParametersSet.

Referenced by MSStageTrip::setArrived().

Here is the caller graph for this function:

◆ moveToNextEdge()

bool MSStageTranship::moveToNextEdge ( MSTransportable container,
SUMOTime  currentTime,
int  prevDir,
MSEdge nextInternal = 0 
)
virtual

◆ operator=()

MSStageTranship & MSStageTranship::operator= ( const MSStageTranship )
private

Invalidated assignment operator.

◆ proceed()

◆ replaceRoute()

void MSStageMoving::replaceRoute ( MSTransportable *const  transportable,
const ConstMSEdgeVector edges,
int  routeOffset 
)
virtualinherited

◆ routeOutput()

void MSStageTranship::routeOutput ( const bool  isPerson,
OutputDevice os,
const bool  withRouteLength,
const MSStage *const  previous 
) const
virtual

Called on writing vehroute output.

Parameters
[in]isPersonWhether we are writing person or container info
[in]osThe stream to write the information into
[in]withRouteLengthwhether route length shall be written
[in]previousThe previous stage for additional info such as from edge
Exceptions
IOErrornot yet implemented

Implements MSStage.

Definition at line 113 of file MSStageTranship.cpp.

References OutputDevice::closeTag(), StringUtils::escapeXML(), MSStoppingPlace::getElement(), Named::getID(), MSStoppingPlace::getMyName(), OptionsCont::getOptions(), MSStage::myArrived, MSStage::myDeparted, MSStage::myDestinationStop, MSStageMoving::myRoute, MSStageMoving::mySpeed, OutputDevice::openTag(), STEPS2TIME, SUMO_ATTR_EDGES, SUMO_ATTR_ENDED, SUMO_ATTR_SPEED, SUMO_ATTR_STARTED, time2string(), toString(), and OutputDevice::writeAttr().

◆ saveState()

virtual void MSStage::saveState ( std::ostringstream &  out)
inlinevirtualinherited

Saves the current state into the given stream, standard implementation does nothing.

Reimplemented in MSPerson::MSPersonStage_Walking, MSStageDriving, and MSStageWaiting.

Definition at line 213 of file MSStage.h.

References UNUSED_PARAMETER.

◆ setArrivalPos()

void MSStage::setArrivalPos ( double  arrivalPos)
inlineinherited

Definition at line 93 of file MSStage.h.

References MSStage::myArrivalPos.

Referenced by MSTransportable::rerouteParkingArea(), and MSStageTrip::setArrived().

Here is the caller graph for this function:

◆ setArrived()

const std::string MSStage::setArrived ( MSNet net,
MSTransportable transportable,
SUMOTime  now,
const bool  vehicleArrived 
)
virtualinherited

logs end of the step

Reimplemented in MSStageDriving, and MSStageTrip.

Definition at line 127 of file MSStage.cpp.

References MSStage::myArrived.

Referenced by MSTransportable::proceed(), MSStageDriving::setArrived(), and MSStageTrip::setArrived().

Here is the caller graph for this function:

◆ setDeparted()

void MSStage::setDeparted ( SUMOTime  now)
inherited

logs end of the step

Definition at line 110 of file MSStage.cpp.

References MSStage::myDeparted.

◆ setDestination()

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

Definition at line 155 of file MSStage.cpp.

References MSStoppingPlace::getBeginLanePosition(), MSStoppingPlace::getEndLanePosition(), MSStage::myArrivalPos, MSStage::myDestination, and MSStage::myDestinationStop.

Referenced by MSTransportable::rerouteParkingArea().

Here is the caller graph for this function:

◆ setRouteIndex()

void MSStageMoving::setRouteIndex ( MSTransportable *const  transportable,
int  routeOffset 
)
virtualinherited

place transportable on a previously passed edge

Definition at line 99 of file MSStageMoving.cpp.

References MSEdge::addTransportable(), MSStageMoving::getEdge(), MSStageMoving::myRoute, MSStageMoving::myRouteStep, and MSEdge::removeTransportable().

◆ setSpeed()

virtual void MSStage::setSpeed ( double  )
inlinevirtualinherited

sets the walking speed (ignored in other stages)

Reimplemented in MSPerson::MSPersonStage_Walking.

Definition at line 139 of file MSStage.h.

◆ tripInfoOutput()

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

Called on writing tripinfo output.

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

Implements MSStage.

Definition at line 99 of file MSStageTranship.cpp.

References OutputDevice::closeTag(), getDistance(), MSStage::myArrivalPos, MSStage::myArrived, MSStage::myDeparted, MSStageMoving::myDepartPos, MSStageMoving::mySpeed, OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().

◆ wasSet()

bool MSStage::wasSet ( int  what) const
inlineinherited

Definition at line 224 of file MSStage.h.

References MSStage::myParametersSet.

Referenced by MSStageTrip::routeOutput(), and MSStageTrip::setArrived().

Here is the caller graph for this function:

Field Documentation

◆ myArrivalPos

◆ myArrived

◆ myCurrentInternalEdge

MSEdge* MSStageMoving::myCurrentInternalEdge = nullptr
protectedinherited

The current internal edge this transportable is on or nullptr.

Definition at line 138 of file MSStageMoving.h.

Referenced by MSStageMoving::getEdge().

◆ myDeparted

◆ myDepartLane

int MSStageMoving::myDepartLane
protectedinherited

the depart lane or -1

Definition at line 150 of file MSStageMoving.h.

Referenced by MSStageMoving::getDepartLane().

◆ myDepartPos

double MSStageMoving::myDepartPos
protectedinherited

◆ myDepartPosLat

double MSStageMoving::myDepartPosLat
protectedinherited

the lateral depart position

Definition at line 147 of file MSStageMoving.h.

Referenced by MSStageMoving::getDepartPosLat().

◆ myDestination

◆ myDestinationStop

◆ myGroup

const std::string MSStage::myGroup
protectedinherited

The id of the group of transportables traveling together.

Definition at line 253 of file MSStage.h.

Referenced by MSStageDriving::abort(), MSStageDriving::clone(), MSStageTrip::clone(), MSStage::getGroup(), MSStageDriving::registerWaiting(), MSStageTrip::routeOutput(), and MSStageTrip::setArrived().

◆ myParametersSet

int MSStage::myParametersSet
protectedinherited

Information on which parameter were set (mainly for vehroute output)

Definition at line 256 of file MSStage.h.

Referenced by MSStage::markSet(), and MSStage::wasSet().

◆ myRoute

◆ myRouteID

std::string MSStageMoving::myRouteID
protectedinherited

The original route id.

Definition at line 132 of file MSStageMoving.h.

◆ myRouteStep

std::vector<constMSEdge*>::iterator MSStageMoving::myRouteStep
protectedinherited

◆ mySpeed

double MSStageMoving::mySpeed
protectedinherited

◆ myState

◆ myType

MSStageType MSStage::myType
protectedinherited

◆ ROADSIDE_OFFSET

const double MSStage::ROADSIDE_OFFSET
staticprotectedinherited

the offset for computing positions when standing at an edge

Definition at line 259 of file MSStage.h.

Referenced by MSStageDriving::getPosition(), MSStageTrip::getPosition(), and MSStageWaiting::getPosition().


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