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:
Collaboration diagram for ROPerson::Ride:

Public Member Functions

TripItemclone () const
 
const ROEdgegetDestination () const
 
double getDestinationPos () const
 
SUMOTime getDuration () const
 
const ROEdgegetOrigin () const
 
 Ride (const ROEdge *const _from, const ROEdge *const _to, const std::string &_lines, const double _cost, const double arrivalPos, const std::string &_destStop="", const std::string &_intended="", const SUMOTime _depart=-1)
 
void saveAsXML (OutputDevice &os, const bool extended) const
 

Protected Attributes

double cost
 

Private Member Functions

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

Private Attributes

const double arr
 
const SUMOTime depart
 
const std::string destStop
 
const ROEdge *const from
 
const std::string intended
 
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 176 of file ROPerson.h.

Constructor & Destructor Documentation

◆ Ride()

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

Definition at line 178 of file ROPerson.h.

Referenced by clone().

Member Function Documentation

◆ clone()

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

Implements ROPerson::TripItem.

Definition at line 190 of file ROPerson.h.

References arr, ROPerson::TripItem::cost, depart, destStop, from, intended, lines, Ride(), and to.

◆ getDestination()

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

Implements ROPerson::TripItem.

Definition at line 197 of file ROPerson.h.

References to.

◆ getDestinationPos()

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

Implements ROPerson::TripItem.

Definition at line 200 of file ROPerson.h.

References arr.

◆ getDuration()

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

Definition at line 165 of file ROPerson.h.

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

◆ getOrigin()

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

Implements ROPerson::TripItem.

Definition at line 194 of file ROPerson.h.

References from.

◆ operator=()

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

Invalidated assignment operator.

◆ saveAsXML()

Field Documentation

◆ arr

const double ROPerson::Ride::arr
private

Definition at line 212 of file ROPerson.h.

Referenced by clone(), and getDestinationPos().

◆ cost

double ROPerson::TripItem::cost
protectedinherited

◆ depart

const SUMOTime ROPerson::Ride::depart
private

Definition at line 211 of file ROPerson.h.

Referenced by clone(), and saveAsXML().

◆ destStop

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

Definition at line 209 of file ROPerson.h.

Referenced by clone(), and saveAsXML().

◆ from

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

Definition at line 206 of file ROPerson.h.

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

◆ intended

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

Definition at line 210 of file ROPerson.h.

Referenced by clone(), and saveAsXML().

◆ lines

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

Definition at line 208 of file ROPerson.h.

Referenced by clone(), and saveAsXML().

◆ to

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

Definition at line 207 of file ROPerson.h.

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


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