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

A planItem can be a Trip which contains multiple tripItems. More...

#include <ROPerson.h>

Inheritance diagram for ROPerson::PersonTrip:
Collaboration diagram for ROPerson::PersonTrip:

Public Member Functions

virtual void addTripItem (TripItem *tripIt)
 
void addVehicle (ROVehicle *veh)
 
PlanItemclone () const
 
double getArrivalPos (bool replaceDefault=true) const
 
double getDepartPos (bool replaceDefault=true) const
 
const ROEdgegetDestination () const
 
double getDestinationPos () const
 
SUMOTime getDuration () const
 return duration sum of all trip items More...
 
SVCPermissions getModes () const
 
const ROEdgegetOrigin () const
 
const std::string & getStopDest () const
 
std::vector< ROVehicle * > & getVehicles ()
 
double getWalkFactor () const
 
virtual bool isStop () const
 
virtual bool needsRouting () const
 
 PersonTrip ()
 
 PersonTrip (const ROEdge *const from, const ROEdge *const to, const SVCPermissions modeSet, const double departPos, const double arrivalPos, const std::string &_stopDest, double _walkFactor)
 
void saveAsXML (OutputDevice &os, const bool extended, const bool asTrip, const bool writeGeoTrip) const
 
void saveVehicles (OutputDevice &os, OutputDevice *const typeos, bool asAlternatives, OptionsCont &options) const
 
virtual ~PersonTrip ()
 Destructor. More...
 

Private Member Functions

PersonTripoperator= (const PersonTrip &src)
 Invalidated assignment operator. More...
 

Private Attributes

const double arr
 
const double dep
 
const ROEdgefrom
 
const SVCPermissions modes
 
std::vector< TripItem * > myTripItems
 the fully specified trips More...
 
std::vector< ROVehicle * > myVehicles
 the vehicles which may be used for routing More...
 
const std::string stopDest
 
const ROEdgeto
 
double walkFactor
 walking speed factor More...
 

Detailed Description

A planItem can be a Trip which contains multiple tripItems.

Definition at line 265 of file ROPerson.h.

Constructor & Destructor Documentation

◆ PersonTrip() [1/2]

ROPerson::PersonTrip::PersonTrip ( )
inline

Definition at line 267 of file ROPerson.h.

◆ PersonTrip() [2/2]

ROPerson::PersonTrip::PersonTrip ( const ROEdge *const  from,
const ROEdge *const  to,
const SVCPermissions  modeSet,
const double  departPos,
const double  arrivalPos,
const std::string &  _stopDest,
double  _walkFactor 
)
inline

Definition at line 269 of file ROPerson.h.

◆ ~PersonTrip()

virtual ROPerson::PersonTrip::~PersonTrip ( )
inlinevirtual

Destructor.

Definition at line 273 of file ROPerson.h.

References myTripItems, and myVehicles.

Member Function Documentation

◆ addTripItem()

virtual void ROPerson::PersonTrip::addTripItem ( TripItem tripIt)
inlinevirtual

Reimplemented from ROPerson::PlanItem.

Definition at line 285 of file ROPerson.h.

References myTripItems.

Referenced by ROPerson::computeIntermodal().

◆ addVehicle()

void ROPerson::PersonTrip::addVehicle ( ROVehicle veh)
inline

Definition at line 288 of file ROPerson.h.

References myVehicles.

Referenced by ROPerson::addTrip().

◆ clone()

ROPerson::PlanItem * ROPerson::PersonTrip::clone ( ) const
virtual

Implements ROPerson::PlanItem.

Definition at line 186 of file ROPerson.cpp.

References myTripItems.

◆ getArrivalPos()

double ROPerson::PersonTrip::getArrivalPos ( bool  replaceDefault = true) const
inline

Definition at line 310 of file ROPerson.h.

References arr, and POSITION_EPS.

Referenced by ROPerson::computeIntermodal(), and getDestinationPos().

◆ getDepartPos()

double ROPerson::PersonTrip::getDepartPos ( bool  replaceDefault = true) const
inline

Definition at line 307 of file ROPerson.h.

References dep.

Referenced by ROPerson::computeIntermodal().

◆ getDestination()

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

Implements ROPerson::PlanItem.

Definition at line 297 of file ROPerson.h.

References to.

Referenced by ROPerson::computeIntermodal().

◆ getDestinationPos()

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

Implements ROPerson::PlanItem.

Definition at line 300 of file ROPerson.h.

References getArrivalPos(), and myTripItems.

◆ getDuration()

SUMOTime ROPerson::PersonTrip::getDuration ( ) const
virtual

return duration sum of all trip items

Implements ROPerson::PlanItem.

Definition at line 267 of file ROPerson.cpp.

◆ getModes()

SVCPermissions ROPerson::PersonTrip::getModes ( ) const
inline

Definition at line 313 of file ROPerson.h.

References modes.

Referenced by ROPerson::computeIntermodal().

◆ getOrigin()

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

Implements ROPerson::PlanItem.

Definition at line 294 of file ROPerson.h.

References from, and myTripItems.

Referenced by ROPerson::computeIntermodal().

◆ getStopDest()

const std::string& ROPerson::PersonTrip::getStopDest ( ) const
inline

Definition at line 316 of file ROPerson.h.

References stopDest.

Referenced by ROPerson::computeIntermodal().

◆ getVehicles()

std::vector<ROVehicle*>& ROPerson::PersonTrip::getVehicles ( )
inline

Definition at line 291 of file ROPerson.h.

References myVehicles.

Referenced by ROPerson::addTrip(), and ROPerson::computeRoute().

◆ getWalkFactor()

double ROPerson::PersonTrip::getWalkFactor ( ) const
inline

Definition at line 325 of file ROPerson.h.

References walkFactor.

Referenced by ROPerson::computeIntermodal().

◆ isStop()

virtual bool ROPerson::PlanItem::isStop ( ) const
inlinevirtualinherited

Reimplemented in ROPerson::Stop.

Definition at line 95 of file ROPerson.h.

◆ needsRouting()

virtual bool ROPerson::PersonTrip::needsRouting ( ) const
inlinevirtual

Reimplemented from ROPerson::PlanItem.

Definition at line 319 of file ROPerson.h.

References myTripItems.

◆ operator=()

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

Invalidated assignment operator.

◆ saveAsXML()

◆ saveVehicles()

void ROPerson::PersonTrip::saveVehicles ( OutputDevice os,
OutputDevice *const  typeos,
bool  asAlternatives,
OptionsCont options 
) const
virtual

Reimplemented from ROPerson::PlanItem.

Definition at line 195 of file ROPerson.cpp.

Field Documentation

◆ arr

const double ROPerson::PersonTrip::arr
private

Definition at line 336 of file ROPerson.h.

Referenced by getArrivalPos().

◆ dep

const double ROPerson::PersonTrip::dep
private

Definition at line 336 of file ROPerson.h.

Referenced by getDepartPos().

◆ from

const ROEdge* ROPerson::PersonTrip::from
private

Definition at line 333 of file ROPerson.h.

Referenced by getOrigin().

◆ modes

const SVCPermissions ROPerson::PersonTrip::modes
private

Definition at line 335 of file ROPerson.h.

Referenced by getModes().

◆ myTripItems

std::vector<TripItem*> ROPerson::PersonTrip::myTripItems
private

the fully specified trips

Definition at line 339 of file ROPerson.h.

Referenced by addTripItem(), clone(), getDestinationPos(), getOrigin(), needsRouting(), and ~PersonTrip().

◆ myVehicles

std::vector<ROVehicle*> ROPerson::PersonTrip::myVehicles
private

the vehicles which may be used for routing

Definition at line 341 of file ROPerson.h.

Referenced by addVehicle(), getVehicles(), and ~PersonTrip().

◆ stopDest

const std::string ROPerson::PersonTrip::stopDest
private

Definition at line 337 of file ROPerson.h.

Referenced by getStopDest().

◆ to

const ROEdge* ROPerson::PersonTrip::to
private

Definition at line 334 of file ROPerson.h.

Referenced by getDestination().

◆ walkFactor

double ROPerson::PersonTrip::walkFactor
private

walking speed factor

Definition at line 343 of file ROPerson.h.

Referenced by getWalkFactor().


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