Eclipse SUMO - Simulation of Urban MObility
Reservation Struct Reference

#include <MSDispatch.h>

Collaboration diagram for Reservation:
[legend]

Public Member Functions

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

Data Fields

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

Detailed Description

Definition at line 38 of file MSDispatch.h.

Constructor & Destructor Documentation

◆ Reservation()

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

Definition at line 39 of file MSDispatch.h.

Member Function Documentation

◆ getID()

std::string Reservation::getID ( ) const

debug identification

Definition at line 43 of file MSDispatch.cpp.

References persons, and toString().

◆ operator==()

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

Definition at line 66 of file MSDispatch.h.

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

Field Documentation

◆ from

◆ fromPos

◆ group

std::string Reservation::group

Definition at line 63 of file MSDispatch.h.

Referenced by operator==(), and MSDispatch::servedReservation().

◆ persons

◆ pickupTime

◆ recheck

SUMOTime Reservation::recheck

Definition at line 64 of file MSDispatch.h.

Referenced by MSDispatch_Greedy::computeDispatch().

◆ reservationTime

SUMOTime Reservation::reservationTime

Definition at line 57 of file MSDispatch.h.

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

◆ to

◆ toPos


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