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:
[legend]
Collaboration diagram for ROPerson::PersonTrip:
[legend]

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...
 
const std::string & getGroup () const
 
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, const std::string &_group)
 
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
 
void updateMOdes (SVCPermissions additionalModes)
 
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 std::string group
 group id for travelling in groups More...
 
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 270 of file ROPerson.h.

Constructor & Destructor Documentation

◆ PersonTrip() [1/2]

ROPerson::PersonTrip::PersonTrip ( )
inline

Definition at line 272 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,
const std::string &  _group 
)
inline

Definition at line 274 of file ROPerson.h.

◆ ~PersonTrip()

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

Destructor.

Definition at line 278 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 290 of file ROPerson.h.

References myTripItems.

Referenced by ROPerson::computeIntermodal().

Here is the caller graph for this function:

◆ addVehicle()

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

Definition at line 293 of file ROPerson.h.

References myVehicles.

Referenced by ROPerson::addTrip().

Here is the caller graph for this function:

◆ clone()

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

Implements ROPerson::PlanItem.

Definition at line 199 of file ROPerson.cpp.

References myTripItems.

◆ getArrivalPos()

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

Definition at line 315 of file ROPerson.h.

References arr.

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

Here is the caller graph for this function:

◆ getDepartPos()

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

Definition at line 312 of file ROPerson.h.

References dep.

Referenced by ROPerson::computeIntermodal().

Here is the caller graph for this function:

◆ getDestination()

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

Implements ROPerson::PlanItem.

Definition at line 302 of file ROPerson.h.

References to.

Referenced by ROPerson::computeIntermodal().

Here is the caller graph for this function:

◆ getDestinationPos()

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

Implements ROPerson::PlanItem.

Definition at line 305 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 292 of file ROPerson.cpp.

◆ getGroup()

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

Definition at line 325 of file ROPerson.h.

References group.

Referenced by ROPerson::computeIntermodal().

Here is the caller graph for this function:

◆ getModes()

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

Definition at line 318 of file ROPerson.h.

References modes.

Referenced by ROPerson::computeIntermodal().

Here is the caller graph for this function:

◆ getOrigin()

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

Implements ROPerson::PlanItem.

Definition at line 299 of file ROPerson.h.

References from, and myTripItems.

Referenced by ROPerson::computeIntermodal().

Here is the caller graph for this function:

◆ getStopDest()

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

Definition at line 329 of file ROPerson.h.

References stopDest.

Referenced by ROPerson::computeIntermodal().

Here is the caller graph for this function:

◆ getVehicles()

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

Definition at line 296 of file ROPerson.h.

References myVehicles.

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

Here is the caller graph for this function:

◆ getWalkFactor()

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

Definition at line 338 of file ROPerson.h.

References walkFactor.

Referenced by ROPerson::computeIntermodal().

Here is the caller graph for this function:

◆ isStop()

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

Reimplemented in ROPerson::Stop.

Definition at line 94 of file ROPerson.h.

◆ needsRouting()

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

Reimplemented from ROPerson::PlanItem.

Definition at line 332 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 208 of file ROPerson.cpp.

References RONet::getInstance().

◆ updateMOdes()

void ROPerson::PersonTrip::updateMOdes ( SVCPermissions  additionalModes)
inline

Definition at line 321 of file ROPerson.h.

References modes.

Referenced by ROPerson::addTrip().

Here is the caller graph for this function:

Field Documentation

◆ arr

const double ROPerson::PersonTrip::arr
private

Definition at line 349 of file ROPerson.h.

Referenced by getArrivalPos().

◆ dep

const double ROPerson::PersonTrip::dep
private

Definition at line 349 of file ROPerson.h.

Referenced by getDepartPos().

◆ from

const ROEdge* ROPerson::PersonTrip::from
private

Definition at line 346 of file ROPerson.h.

Referenced by getOrigin().

◆ group

const std::string ROPerson::PersonTrip::group
private

group id for travelling in groups

Definition at line 358 of file ROPerson.h.

Referenced by getGroup().

◆ modes

SVCPermissions ROPerson::PersonTrip::modes
private

Definition at line 348 of file ROPerson.h.

Referenced by getModes(), and updateMOdes().

◆ myTripItems

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

the fully specified trips

Definition at line 352 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 354 of file ROPerson.h.

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

◆ stopDest

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

Definition at line 350 of file ROPerson.h.

Referenced by getStopDest().

◆ to

const ROEdge* ROPerson::PersonTrip::to
private

Definition at line 347 of file ROPerson.h.

Referenced by getDestination().

◆ walkFactor

double ROPerson::PersonTrip::walkFactor
private

walking speed factor

Definition at line 356 of file ROPerson.h.

Referenced by getWalkFactor().


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