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
 
const ROEdgegetOrigin () const
 
 Ride (const ROEdge *const _from, const ROEdge *const _to, const std::string &_lines, const double _cost, const std::string &_destStop="")
 
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 std::string destStop
 
const ROEdge *const from
 
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 160 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 std::string &  _destStop = "" 
)
inline

Definition at line 162 of file ROPerson.h.

Member Function Documentation

◆ getDestination()

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

Implements ROPerson::TripItem.

Definition at line 169 of file ROPerson.h.

References ROPerson::PlanItem::saveAsXML().

◆ getOrigin()

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

Implements ROPerson::TripItem.

Definition at line 166 of file ROPerson.h.

◆ operator=()

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

Invalidated assignment operator.

◆ saveAsXML()

void ROPerson::Ride::saveAsXML ( OutputDevice os,
const bool  extended 
) const
virtual

Field Documentation

◆ cost

double ROPerson::TripItem::cost
protectedinherited

Definition at line 153 of file ROPerson.h.

◆ destStop

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

Definition at line 178 of file ROPerson.h.

◆ from

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

Definition at line 175 of file ROPerson.h.

◆ lines

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

Definition at line 177 of file ROPerson.h.

◆ to

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

Definition at line 176 of file ROPerson.h.


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