Eclipse SUMO - Simulation of Urban MObility
ROPerson::Ride Class Reference

A ride is part of a trip, e.g., go from here to here by car or bus. More...

#include <ROPerson.h>

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

Public Member Functions

TripItemclone () const
 
double getCost () const
 
const ROEdgegetDestination () const
 
double getDestinationPos () const
 
SUMOTime getDuration () const
 
const ROEdgegetOrigin () const
 
SUMOTime getStart () const
 
 Ride (const SUMOTime start, const ROEdge *const _from, const ROEdge *const _to, const std::string &_lines, const std::string &_group, const double cost, const double arrivalPos, const double _length, const std::string &_destStop="", const std::string &_intended="", const SUMOTime _depart=-1)
 
void saveAsXML (OutputDevice &os, const bool extended, OptionsCont &options) const
 

Protected Attributes

const double myCost
 
const SUMOTime myStart
 

Private Member Functions

Rideoperator= (const Ride &src)
 Invalidated assignment operator. More...
 

Private Attributes

const double arrPos
 
const SUMOTime depart
 
const std::string destStop
 
const ROEdge *const from
 
const std::string group
 
const std::string intended
 
const double length
 
const std::string lines
 
const ROEdge *const to
 

Detailed Description

A ride is part of a trip, e.g., go from here to here by car or bus.

Definition at line 202 of file ROPerson.h.

Constructor & Destructor Documentation

◆ Ride()

ROPerson::Ride::Ride ( const SUMOTime  start,
const ROEdge *const  _from,
const ROEdge *const  _to,
const std::string &  _lines,
const std::string &  _group,
const double  cost,
const double  arrivalPos,
const double  _length,
const std::string &  _destStop = "",
const std::string &  _intended = "",
const SUMOTime  _depart = -1 
)
inline

Definition at line 204 of file ROPerson.h.

Referenced by clone().

Here is the caller graph for this function:

Member Function Documentation

◆ clone()

TripItem* ROPerson::Ride::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::Ride::getDestination ( ) const
inlinevirtual

Implements ROPerson::TripItem.

Definition at line 226 of file ROPerson.h.

References to.

◆ getDestinationPos()

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

Implements ROPerson::TripItem.

Definition at line 229 of file ROPerson.h.

References arrPos.

◆ getDuration()

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

Definition at line 186 of file ROPerson.h.

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

Referenced by saveAsXML().

Here is the caller graph for this function:

◆ getOrigin()

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

Implements ROPerson::TripItem.

Definition at line 223 of file ROPerson.h.

References from.

◆ getStart()

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

Definition at line 182 of file ROPerson.h.

References ROPerson::TripItem::myStart.

Referenced by saveAsXML().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ saveAsXML()

Field Documentation

◆ arrPos

const double ROPerson::Ride::arrPos
private

Definition at line 242 of file ROPerson.h.

Referenced by clone(), getDestinationPos(), and saveAsXML().

◆ depart

const SUMOTime ROPerson::Ride::depart
private

Definition at line 241 of file ROPerson.h.

Referenced by clone(), and saveAsXML().

◆ destStop

const std::string ROPerson::Ride::destStop
private

Definition at line 239 of file ROPerson.h.

Referenced by clone(), and saveAsXML().

◆ from

const ROEdge* const ROPerson::Ride::from
private

Definition at line 235 of file ROPerson.h.

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

◆ group

const std::string ROPerson::Ride::group
private

Definition at line 238 of file ROPerson.h.

Referenced by clone(), and saveAsXML().

◆ intended

const std::string ROPerson::Ride::intended
private

Definition at line 240 of file ROPerson.h.

Referenced by clone(), and saveAsXML().

◆ length

const double ROPerson::Ride::length
private

Definition at line 243 of file ROPerson.h.

Referenced by clone(), and saveAsXML().

◆ lines

const std::string ROPerson::Ride::lines
private

Definition at line 237 of file ROPerson.h.

Referenced by clone(), and saveAsXML().

◆ myCost

const double ROPerson::TripItem::myCost
protectedinherited

◆ myStart

const SUMOTime ROPerson::TripItem::myStart
protectedinherited

Definition at line 194 of file ROPerson.h.

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

◆ to

const ROEdge* const ROPerson::Ride::to
private

Definition at line 236 of file ROPerson.h.

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


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