Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
Reservation Struct Reference

#include <MSDispatch.h>

Collaboration diagram for Reservation:
[legend]

Public Types

enum  ReservationState {
  NEW = 1 , RETRIEVED = 2 , ASSIGNED = 4 , ONBOARD = 8 ,
  FULFILLED = 16
}

Public Member Functions

std::string getID () const
 debug identification
bool operator== (const Reservation &other) const
 Reservation (const std::string &_id, const std::vector< const MSTransportable * > &_persons, SUMOTime _reservationTime, SUMOTime _pickupTime, SUMOTime _earliestPickupTime, const MSEdge *_from, double _fromPos, const MSStoppingPlace *_fromStop, const MSEdge *_to, double _toPos, const MSStoppingPlace *_toStop, const std::string &_group, const std::string &_line)

Data Fields

SUMOTime earliestPickupTime
const MSEdgefrom
double fromPos
const MSStoppingPlacefromStop
std::string group
std::string id
std::string line
std::set< const MSTransportable * > persons
SUMOTime pickupTime
SUMOTime recheck
SUMOTime reservationTime
ReservationState state
const MSEdgeto
double toPos
const MSStoppingPlacetoStop

Detailed Description

Definition at line 39 of file MSDispatch.h.

Member Enumeration Documentation

◆ ReservationState

Enumerator
NEW 
RETRIEVED 
ASSIGNED 
ONBOARD 
FULFILLED 

Definition at line 40 of file MSDispatch.h.

Constructor & Destructor Documentation

◆ Reservation()

Reservation::Reservation ( const std::string & _id,
const std::vector< const MSTransportable * > & _persons,
SUMOTime _reservationTime,
SUMOTime _pickupTime,
SUMOTime _earliestPickupTime,
const MSEdge * _from,
double _fromPos,
const MSStoppingPlace * _fromStop,
const MSEdge * _to,
double _toPos,
const MSStoppingPlace * _toStop,
const std::string & _group,
const std::string & _line )
inline

Definition at line 48 of file MSDispatch.h.

References earliestPickupTime, from, fromPos, fromStop, group, id, line, NEW, persons, pickupTime, recheck, reservationTime, state, to, toPos, and toStop.

Referenced by operator==().

Here is the caller graph for this function:

Member Function Documentation

◆ getID()

std::string Reservation::getID ( ) const

debug identification

Definition at line 40 of file MSDispatch.cpp.

References persons, and toString().

◆ operator==()

bool Reservation::operator== ( const Reservation & other) const
inline

Definition at line 92 of file MSDispatch.h.

References from, fromPos, group, line, persons, pickupTime, Reservation(), reservationTime, to, and toPos.

Field Documentation

◆ earliestPickupTime

SUMOTime Reservation::earliestPickupTime

Definition at line 80 of file MSDispatch.h.

Referenced by MSDispatch::time_sorter::operator()(), and Reservation().

◆ from

const MSEdge* Reservation::from

◆ fromPos

double Reservation::fromPos

◆ fromStop

const MSStoppingPlace* Reservation::fromStop

Definition at line 83 of file MSDispatch.h.

Referenced by Reservation().

◆ group

std::string Reservation::group

Definition at line 87 of file MSDispatch.h.

Referenced by operator==(), and Reservation().

◆ id

std::string Reservation::id

Definition at line 76 of file MSDispatch.h.

Referenced by Reservation(), and MSDispatch_TraCI::splitReservation().

◆ line

std::string Reservation::line

Definition at line 88 of file MSDispatch.h.

Referenced by operator==(), and Reservation().

◆ persons

std::set<const MSTransportable*> Reservation::persons

◆ pickupTime

SUMOTime Reservation::pickupTime

◆ recheck

SUMOTime Reservation::recheck

Definition at line 89 of file MSDispatch.h.

Referenced by Reservation().

◆ reservationTime

SUMOTime Reservation::reservationTime

Definition at line 78 of file MSDispatch.h.

Referenced by MSDispatch::time_sorter::operator()(), operator==(), and Reservation().

◆ state

ReservationState Reservation::state

Definition at line 90 of file MSDispatch.h.

Referenced by Reservation(), and MSDispatch::servedReservation().

◆ to

const MSEdge* Reservation::to

◆ toPos

double Reservation::toPos

◆ toStop

const MSStoppingPlace* Reservation::toStop

Definition at line 86 of file MSDispatch.h.

Referenced by Reservation().


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