Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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)
 
void clearItems ()
 
PlanItemclone () const
 
void copyItems (PersonTrip *trip, ROVehicle *veh)
 
double getArrivalPos (bool replaceDefault=true) const
 
double getCost () const
 
double getDepartPos (bool replaceDefault=true) const
 
const ROEdgegetDestination () const
 
double getDestinationPos () const
 
SUMOTime getDuration () const
 return duration sum of all trip items
 
const std::string & getGroup () const
 
SVCPermissions getModes () const
 
const ROEdgegetOrigin () const
 
const std::string & getStopDest () const
 
const std::string & getStopOrigin () const
 
virtual SUMOVehicleParameter::StopgetStopParameters ()
 
std::vector< ROVehicle * > & getVehicles ()
 
double getWalkFactor () const
 
virtual bool isStop () const
 
virtual bool needsRouting () const
 
 PersonTrip (const ROEdge *_to, const std::string _stopDest)
 
 PersonTrip (const ROEdge *const _from, const ROEdge *const _to, const SVCPermissions modeSet, const double departPos, const std::string &_stopOrigin, const double arrivalPos, const std::string &_stopDest, double _walkFactor, const std::string &_group)
 
void saveAsXML (OutputDevice &os, const bool extended, const bool asTrip, OptionsCont &options) const
 
void saveVehicles (OutputDevice &os, OutputDevice *const typeos, bool asAlternatives, OptionsCont &options) const
 
void updateModes (SVCPermissions additionalModes)
 
virtual ~PersonTrip ()
 Destructor.
 

Static Public Attributes

static const std::string UNDEFINED_STOPPING_PLACE
 

Private Member Functions

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

Private Attributes

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

Detailed Description

A planItem can be a Trip which contains multiple tripItems.

Definition at line 298 of file ROPerson.h.

Constructor & Destructor Documentation

◆ PersonTrip() [1/2]

ROPerson::PersonTrip::PersonTrip ( const ROEdge _to,
const std::string  _stopDest 
)
inline

Definition at line 300 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 std::string &  _stopOrigin,
const double  arrivalPos,
const std::string &  _stopDest,
double  _walkFactor,
const std::string &  _group 
)
inline

Definition at line 302 of file ROPerson.h.

◆ ~PersonTrip()

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

Destructor.

Definition at line 306 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 318 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 321 of file ROPerson.h.

References myVehicles.

Referenced by ROPerson::addTrip().

Here is the caller graph for this function:

◆ clearItems()

void ROPerson::PersonTrip::clearItems ( )
inline

Definition at line 376 of file ROPerson.h.

References myTripItems.

Referenced by ROPerson::computeRoute().

Here is the caller graph for this function:

◆ clone()

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

Implements ROPerson::PlanItem.

Definition at line 224 of file ROPerson.cpp.

References myTripItems.

Referenced by ROPerson::computeRoute().

Here is the caller graph for this function:

◆ copyItems()

void ROPerson::PersonTrip::copyItems ( PersonTrip trip,
ROVehicle veh 
)
inline

Definition at line 383 of file ROPerson.h.

References myTripItems, and myVehicles.

Referenced by ROPerson::computeRoute().

Here is the caller graph for this function:

◆ getArrivalPos()

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

Definition at line 343 of file ROPerson.h.

References arr.

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

Here is the caller graph for this function:

◆ getCost()

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

Definition at line 368 of file ROPerson.h.

References myTripItems.

Referenced by ROPerson::computeRoute().

Here is the caller graph for this function:

◆ getDepartPos()

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

Definition at line 340 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 330 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 333 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 318 of file ROPerson.cpp.

◆ getGroup()

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

Definition at line 353 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 346 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 327 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
inlinevirtual

Reimplemented from ROPerson::PlanItem.

Definition at line 361 of file ROPerson.h.

References stopDest.

Referenced by ROPerson::computeIntermodal().

Here is the caller graph for this function:

◆ getStopOrigin()

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

Definition at line 357 of file ROPerson.h.

References stopOrigin.

Referenced by ROPerson::computeIntermodal().

Here is the caller graph for this function:

◆ getStopParameters()

virtual SUMOVehicleParameter::Stop * ROPerson::PlanItem::getStopParameters ( )
inlinevirtualinherited

Reimplemented in ROPerson::Stop.

Definition at line 103 of file ROPerson.h.

◆ getVehicles()

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

Definition at line 324 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 402 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 97 of file ROPerson.h.

◆ needsRouting()

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

Reimplemented from ROPerson::PlanItem.

Definition at line 364 of file ROPerson.h.

References myTripItems.

Referenced by ROPerson::computeIntermodal().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ saveAsXML()

void ROPerson::PersonTrip::saveAsXML ( OutputDevice os,
const bool  extended,
const bool  asTrip,
OptionsCont options 
) const
virtual

◆ saveVehicles()

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

Reimplemented from ROPerson::PlanItem.

Definition at line 233 of file ROPerson.cpp.

References RONet::getInstance(), RONet::knowsVehicle(), and saveAsXML().

◆ updateModes()

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

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

Referenced by getArrivalPos().

◆ dep

const double ROPerson::PersonTrip::dep
private

Definition at line 413 of file ROPerson.h.

Referenced by getDepartPos().

◆ from

const ROEdge* ROPerson::PersonTrip::from
private

Definition at line 410 of file ROPerson.h.

Referenced by getOrigin().

◆ group

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

group id for travelling in groups

Definition at line 423 of file ROPerson.h.

Referenced by getGroup().

◆ modes

SVCPermissions ROPerson::PersonTrip::modes
private

Definition at line 412 of file ROPerson.h.

Referenced by getModes(), and updateModes().

◆ myTripItems

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

the fully specified trips

Definition at line 417 of file ROPerson.h.

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

◆ myVehicles

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

the vehicles which may be used for routing

Definition at line 419 of file ROPerson.h.

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

◆ stopDest

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

Definition at line 415 of file ROPerson.h.

Referenced by getStopDest().

◆ stopOrigin

const std::string ROPerson::PersonTrip::stopOrigin
private

Definition at line 414 of file ROPerson.h.

Referenced by getStopOrigin().

◆ to

const ROEdge* ROPerson::PersonTrip::to
private

Definition at line 411 of file ROPerson.h.

Referenced by getDestination().

◆ UNDEFINED_STOPPING_PLACE

const std::string ROPerson::PlanItem::UNDEFINED_STOPPING_PLACE
staticinherited

Definition at line 112 of file ROPerson.h.

Referenced by ROPerson::PlanItem::getStopDest().

◆ walkFactor

double ROPerson::PersonTrip::walkFactor
private

walking speed factor

Definition at line 421 of file ROPerson.h.

Referenced by getWalkFactor().


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