Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
ROPerson::Walk Class Reference

A walk is part of a trip, e.g., go from here to here by foot. More...

#include <ROPerson.h>

Inheritance diagram for ROPerson::Walk:
[legend]
Collaboration diagram for ROPerson::Walk:
[legend]

Public Member Functions

TripItemclone () const
 
double getCost () const
 
const ROEdgegetDestination () const
 
double getDestinationPos () const
 
SUMOTime getDuration () const
 
const ROEdgegetOrigin () const
 
SUMOTime getStart () const
 
void saveAsXML (OutputDevice &os, const bool extended, OptionsCont &options) const
 
 Walk (const SUMOTime start, const ConstROEdgeVector &_edges, const double cost, const std::vector< double > &_exitTimes, double departPos=std::numeric_limits< double >::infinity(), double arrivalPos=std::numeric_limits< double >::infinity(), const std::string &_destStop="")
 
 Walk (const SUMOTime start, const ConstROEdgeVector &edges, const double cost, const double duration, const double speed, const double departPos, const double arrivalPos, const std::string &_destStop)
 

Protected Attributes

const double myCost
 
const SUMOTime myStart
 

Private Member Functions

Walkoperator= (const Walk &src)
 Invalidated assignment operator.
 

Private Attributes

const double arr
 
const double dep
 
const std::string destStop
 
const double dur
 
const ConstROEdgeVector edges
 
const std::vector< double > exitTimes
 
const double v
 

Detailed Description

A walk is part of a trip, e.g., go from here to here by foot.

Definition at line 255 of file ROPerson.h.

Constructor & Destructor Documentation

◆ Walk() [1/2]

ROPerson::Walk::Walk ( const SUMOTime  start,
const ConstROEdgeVector _edges,
const double  cost,
const std::vector< double > &  _exitTimes,
double  departPos = std::numeric_limits<double>::infinity(),
double  arrivalPos = std::numeric_limits<double>::infinity(),
const std::string &  _destStop = "" 
)
inline

Definition at line 257 of file ROPerson.h.

◆ Walk() [2/2]

ROPerson::Walk::Walk ( const SUMOTime  start,
const ConstROEdgeVector edges,
const double  cost,
const double  duration,
const double  speed,
const double  departPos,
const double  arrivalPos,
const std::string &  _destStop 
)
inline

Definition at line 263 of file ROPerson.h.

Member Function Documentation

◆ clone()

TripItem * ROPerson::Walk::clone ( ) const
inlinevirtual

◆ getCost()

double ROPerson::TripItem::getCost ( ) const
inlineinherited

Definition at line 190 of file ROPerson.h.

References ROPerson::TripItem::myCost.

◆ getDestination()

const ROEdge * ROPerson::Walk::getDestination ( ) const
inlinevirtual

Implements ROPerson::TripItem.

Definition at line 274 of file ROPerson.h.

References edges.

◆ getDestinationPos()

double ROPerson::Walk::getDestinationPos ( ) const
inlinevirtual

Implements ROPerson::TripItem.

Definition at line 277 of file ROPerson.h.

References arr.

◆ getDuration()

SUMOTime ROPerson::TripItem::getDuration ( ) const
inlineinherited

Definition at line 186 of file ROPerson.h.

References ROPerson::TripItem::myCost, and TIME2STEPS.

Referenced by ROPerson::Ride::saveAsXML().

Here is the caller graph for this function:

◆ getOrigin()

const ROEdge * ROPerson::Walk::getOrigin ( ) const
inlinevirtual

Implements ROPerson::TripItem.

Definition at line 271 of file ROPerson.h.

References edges.

◆ getStart()

SUMOTime ROPerson::TripItem::getStart ( ) const
inlineinherited

Definition at line 182 of file ROPerson.h.

References ROPerson::TripItem::myStart.

Referenced by ROPerson::Ride::saveAsXML().

Here is the caller graph for this function:

◆ operator=()

Walk & ROPerson::Walk::operator= ( const Walk src)
private

Invalidated assignment operator.

◆ saveAsXML()

Field Documentation

◆ arr

const double ROPerson::Walk::arr
private

Definition at line 285 of file ROPerson.h.

Referenced by clone(), and getDestinationPos().

◆ dep

const double ROPerson::Walk::dep
private

Definition at line 285 of file ROPerson.h.

Referenced by clone().

◆ destStop

const std::string ROPerson::Walk::destStop
private

Definition at line 286 of file ROPerson.h.

Referenced by clone().

◆ dur

const double ROPerson::Walk::dur
private

Definition at line 285 of file ROPerson.h.

◆ edges

const ConstROEdgeVector ROPerson::Walk::edges
private

Definition at line 283 of file ROPerson.h.

Referenced by clone(), getDestination(), and getOrigin().

◆ exitTimes

const std::vector<double> ROPerson::Walk::exitTimes
private

Definition at line 284 of file ROPerson.h.

Referenced by clone().

◆ myCost

const double ROPerson::TripItem::myCost
protectedinherited

◆ myStart

const SUMOTime ROPerson::TripItem::myStart
protectedinherited

Definition at line 194 of file ROPerson.h.

Referenced by ROPerson::Ride::clone(), clone(), and ROPerson::TripItem::getStart().

◆ v

const double ROPerson::Walk::v
private

Definition at line 285 of file ROPerson.h.


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