Eclipse SUMO - Simulation of Urban MObility
ROPerson::TripItem Class Referenceabstract

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

#include <ROPerson.h>

Inheritance diagram for ROPerson::TripItem:
[legend]

Public Member Functions

virtual TripItemclone () const =0
 
double getCost () const
 
virtual const ROEdgegetDestination () const =0
 
virtual double getDestinationPos () const =0
 
SUMOTime getDuration () const
 
virtual const ROEdgegetOrigin () const =0
 
SUMOTime getStart () const
 
virtual void saveAsXML (OutputDevice &os, const bool extended, OptionsCont &options) const =0
 
 TripItem (const SUMOTime start, const double cost)
 
virtual ~TripItem ()
 Destructor. More...
 

Protected Attributes

const double myCost
 
const SUMOTime myStart
 

Detailed Description

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

Definition at line 167 of file ROPerson.h.

Constructor & Destructor Documentation

◆ TripItem()

ROPerson::TripItem::TripItem ( const SUMOTime  start,
const double  cost 
)
inline

Definition at line 169 of file ROPerson.h.

◆ ~TripItem()

virtual ROPerson::TripItem::~TripItem ( )
inlinevirtual

Destructor.

Definition at line 173 of file ROPerson.h.

Member Function Documentation

◆ clone()

virtual TripItem* ROPerson::TripItem::clone ( ) const
pure virtual

Implemented in ROPerson::Walk, and ROPerson::Ride.

◆ getCost()

double ROPerson::TripItem::getCost ( ) const
inline

Definition at line 190 of file ROPerson.h.

References myCost.

◆ getDestination()

virtual const ROEdge* ROPerson::TripItem::getDestination ( ) const
pure virtual

Implemented in ROPerson::Walk, and ROPerson::Ride.

◆ getDestinationPos()

virtual double ROPerson::TripItem::getDestinationPos ( ) const
pure virtual

Implemented in ROPerson::Walk, and ROPerson::Ride.

◆ getDuration()

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

Definition at line 186 of file ROPerson.h.

References myCost, and TIME2STEPS.

Referenced by ROPerson::Ride::saveAsXML().

Here is the caller graph for this function:

◆ getOrigin()

virtual const ROEdge* ROPerson::TripItem::getOrigin ( ) const
pure virtual

Implemented in ROPerson::Walk, and ROPerson::Ride.

◆ getStart()

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

Definition at line 182 of file ROPerson.h.

References myStart.

Referenced by ROPerson::Ride::saveAsXML().

Here is the caller graph for this function:

◆ saveAsXML()

virtual void ROPerson::TripItem::saveAsXML ( OutputDevice os,
const bool  extended,
OptionsCont options 
) const
pure virtual

Implemented in ROPerson::Walk, and ROPerson::Ride.

Field Documentation

◆ myCost

const double ROPerson::TripItem::myCost
protected

◆ myStart

const SUMOTime ROPerson::TripItem::myStart
protected

Definition at line 194 of file ROPerson.h.

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


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