Eclipse SUMO - Simulation of Urban MObility
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:
Collaboration diagram for ROPerson::Walk:

Public Member Functions

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

Protected Attributes

double cost
 

Private Member Functions

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

Private Attributes

const double arr
 
const double dep
 
const std::string destStop
 
const double dur
 
const ConstROEdgeVector edges
 
const double v
 

Detailed Description

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

Definition at line 224 of file ROPerson.h.

Constructor & Destructor Documentation

◆ Walk() [1/2]

ROPerson::Walk::Walk ( const ConstROEdgeVector _edges,
const double  _cost,
double  departPos = std::numeric_limits<double>::infinity(),
double  arrivalPos = std::numeric_limits<double>::infinity(),
const std::string &  _destStop = "" 
)
inline

Definition at line 226 of file ROPerson.h.

◆ Walk() [2/2]

ROPerson::Walk::Walk ( 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 231 of file ROPerson.h.

Member Function Documentation

◆ clone()

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

Implements ROPerson::TripItem.

Definition at line 235 of file ROPerson.h.

◆ getDestination()

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

Implements ROPerson::TripItem.

Definition at line 242 of file ROPerson.h.

◆ getDestinationPos()

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

Implements ROPerson::TripItem.

Definition at line 245 of file ROPerson.h.

References ROPerson::PlanItem::saveAsXML().

◆ getDuration()

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

Definition at line 165 of file ROPerson.h.

References TIME2STEPS.

◆ getOrigin()

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

Implements ROPerson::TripItem.

Definition at line 239 of file ROPerson.h.

◆ 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 252 of file ROPerson.h.

◆ cost

double ROPerson::TripItem::cost
protectedinherited

Definition at line 169 of file ROPerson.h.

◆ dep

const double ROPerson::Walk::dep
private

Definition at line 252 of file ROPerson.h.

◆ destStop

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

Definition at line 253 of file ROPerson.h.

◆ dur

const double ROPerson::Walk::dur
private

Definition at line 252 of file ROPerson.h.

◆ edges

const ConstROEdgeVector ROPerson::Walk::edges
private

Definition at line 251 of file ROPerson.h.

◆ v

const double ROPerson::Walk::v
private

Definition at line 252 of file ROPerson.h.


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