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:
Inheritance graph
Collaboration diagram for ROPerson::PersonTrip:
Collaboration graph

Public Member Functions

virtual void addTripItem (TripItem *tripIt)
 
void addVehicle (ROVehicle *veh)
 
double getArrivalPos () const
 
double getDepartPos () const
 
const ROEdge * getDestination () const
 
SVCPermissions getModes () const
 
const ROEdge * getOrigin () const
 
std::vector< ROVehicle * > & getVehicles ()
 
double getWalkFactor () const
 
bool hasBusStopDest () 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 &busStop, double _walkFactor)
 
void saveAsXML (OutputDevice &os) const
 
void saveVehicles (OutputDevice &os, OutputDevice *const typeos, bool asAlternatives, OptionsCont &options) const
 
virtual ~PersonTrip ()
 Destructor. More...
 

Private Member Functions

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

Private Attributes

const double arr
 
const std::string busStop
 
const double dep
 
const ROEdge * from
 
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 ROEdge * to
 
double walkFactor
 walking speed factor More...
 

Detailed Description

A planItem can be a Trip which contains multiple tripItems.

Definition at line 216 of file ROPerson.h.

Constructor & Destructor Documentation

ROPerson::PersonTrip::PersonTrip ( )
inline

Definition at line 218 of file ROPerson.h.

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

Definition at line 220 of file ROPerson.h.

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

Destructor.

Definition at line 224 of file ROPerson.h.

Member Function Documentation

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

Reimplemented from ROPerson::PlanItem.

Definition at line 234 of file ROPerson.h.

Referenced by ROPerson::computeIntermodal().

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

Definition at line 237 of file ROPerson.h.

Referenced by ROPerson::addTrip().

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

Definition at line 252 of file ROPerson.h.

Referenced by ROPerson::computeIntermodal().

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

Definition at line 249 of file ROPerson.h.

Referenced by ROPerson::computeIntermodal().

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

Implements ROPerson::PlanItem.

Definition at line 246 of file ROPerson.h.

Referenced by ROPerson::computeIntermodal().

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

Definition at line 255 of file ROPerson.h.

Referenced by ROPerson::computeIntermodal().

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

Implements ROPerson::PlanItem.

Definition at line 243 of file ROPerson.h.

Referenced by ROPerson::computeIntermodal().

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

Definition at line 240 of file ROPerson.h.

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

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

Definition at line 270 of file ROPerson.h.

Referenced by ROPerson::computeIntermodal().

bool ROPerson::PersonTrip::hasBusStopDest ( ) const
inline

Definition at line 258 of file ROPerson.h.

Referenced by ROPerson::computeIntermodal().

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

Reimplemented in ROPerson::Stop.

Definition at line 99 of file ROPerson.h.

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

Reimplemented from ROPerson::PlanItem.

Definition at line 261 of file ROPerson.h.

References ROPerson::PlanItem::saveVehicles().

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

Invalidated assignment operator.

void ROPerson::PersonTrip::saveAsXML ( OutputDevice &  os) const
inlinevirtual

Implements ROPerson::PlanItem.

Definition at line 265 of file ROPerson.h.

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

Reimplemented from ROPerson::PlanItem.

Definition at line 158 of file ROPerson.cpp.

Field Documentation

const double ROPerson::PersonTrip::arr
private

Definition at line 278 of file ROPerson.h.

const std::string ROPerson::PersonTrip::busStop
private

Definition at line 279 of file ROPerson.h.

const double ROPerson::PersonTrip::dep
private

Definition at line 278 of file ROPerson.h.

const ROEdge* ROPerson::PersonTrip::from
private

Definition at line 275 of file ROPerson.h.

const SVCPermissions ROPerson::PersonTrip::modes
private

Definition at line 277 of file ROPerson.h.

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

the fully specified trips

Definition at line 281 of file ROPerson.h.

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

the vehicles which may be used for routing

Definition at line 283 of file ROPerson.h.

const ROEdge* ROPerson::PersonTrip::to
private

Definition at line 276 of file ROPerson.h.

double ROPerson::PersonTrip::walkFactor
private

walking speed factor

Definition at line 285 of file ROPerson.h.


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