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.

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, reservationTime, to, and toPos.

Field Documentation

◆ earliestPickupTime

SUMOTime Reservation::earliestPickupTime

◆ from

◆ fromPos

◆ fromStop

const MSStoppingPlace* Reservation::fromStop

Definition at line 83 of file MSDispatch.h.

Referenced by MSDispatch_TraCI::splitReservation().

◆ group

◆ id

◆ line

std::string Reservation::line

◆ persons

◆ pickupTime

◆ recheck

SUMOTime Reservation::recheck

Definition at line 89 of file MSDispatch.h.

Referenced by MSDispatch_Greedy::computeDispatch().

◆ reservationTime

◆ state

ReservationState Reservation::state

◆ to

◆ toPos

◆ toStop

const MSStoppingPlace* Reservation::toStop

Definition at line 86 of file MSDispatch.h.

Referenced by MSDispatch_TraCI::splitReservation().


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