Eclipse SUMO - Simulation of Urban MObility
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 More...
 
bool operator== (const Reservation &other) const
 
 Reservation (const std::string &_id, const std::vector< MSTransportable * > &_persons, SUMOTime _reservationTime, SUMOTime _pickupTime, const MSEdge *_from, double _fromPos, const MSEdge *_to, double _toPos, const std::string &_group, const std::string &_line)
 

Data Fields

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

Detailed Description

Definition at line 38 of file MSDispatch.h.

Member Enumeration Documentation

◆ ReservationState

Enumerator
NEW 
RETRIEVED 
ASSIGNED 
ONBOARD 
FULFILLED 

Definition at line 39 of file MSDispatch.h.

Constructor & Destructor Documentation

◆ Reservation()

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

Definition at line 47 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 82 of file MSDispatch.h.

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

Field Documentation

◆ from

◆ fromPos

◆ group

◆ id

◆ line

std::string Reservation::line

◆ persons

◆ pickupTime

◆ recheck

SUMOTime Reservation::recheck

Definition at line 79 of file MSDispatch.h.

Referenced by MSDispatch_Greedy::computeDispatch().

◆ reservationTime

◆ state

ReservationState Reservation::state

◆ to

◆ toPos


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