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

Public Member Functions

const ROEdgegetDestination () const
 
double getDestinationPos () 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 159 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 161 of file ROPerson.h.

Member Function Documentation

◆ getDestination()

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

Implements ROPerson::TripItem.

Definition at line 176 of file ROPerson.h.

◆ getDestinationPos()

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

Implements ROPerson::TripItem.

Definition at line 179 of file ROPerson.h.

References ROPerson::PlanItem::saveAsXML().

◆ getOrigin()

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

Implements ROPerson::TripItem.

Definition at line 173 of file ROPerson.h.

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

◆ cost

double ROPerson::TripItem::cost
protectedinherited

Definition at line 152 of file ROPerson.h.

◆ depart

const SUMOTime ROPerson::Ride::depart
private

Definition at line 190 of file ROPerson.h.

◆ destStop

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

Definition at line 188 of file ROPerson.h.

◆ from

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

Definition at line 185 of file ROPerson.h.

◆ intended

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

Definition at line 189 of file ROPerson.h.

◆ lines

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

Definition at line 187 of file ROPerson.h.

◆ to

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

Definition at line 186 of file ROPerson.h.


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