Eclipse SUMO - Simulation of Urban MObility
|
#include <MSDispatch.h>
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 MSEdge * | from |
double | fromPos |
const MSStoppingPlace * | fromStop |
std::string | group |
std::string | id |
std::string | line |
std::set< const MSTransportable * > | persons |
SUMOTime | pickupTime |
SUMOTime | recheck |
SUMOTime | reservationTime |
ReservationState | state |
const MSEdge * | to |
double | toPos |
const MSStoppingPlace * | toStop |
Definition at line 39 of file MSDispatch.h.
Enumerator | |
---|---|
NEW | |
RETRIEVED | |
ASSIGNED | |
ONBOARD | |
FULFILLED |
Definition at line 40 of file MSDispatch.h.
|
inline |
Definition at line 48 of file MSDispatch.h.
std::string Reservation::getID | ( | ) | const |
debug identification
Definition at line 40 of file MSDispatch.cpp.
References persons, and toString().
|
inline |
Definition at line 92 of file MSDispatch.h.
References from, fromPos, group, line, persons, pickupTime, reservationTime, to, and toPos.
SUMOTime Reservation::earliestPickupTime |
Definition at line 80 of file MSDispatch.h.
Referenced by MSDispatch::time_sorter::operator()(), MSDevice_Taxi::prepareStop(), and MSDispatch_TraCI::splitReservation().
const MSEdge* Reservation::from |
Definition at line 81 of file MSDispatch.h.
Referenced by MSDispatch::computePickupTime(), MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), LIBSUMO_NAMESPACE::Person::filterReservation(), operator==(), MSDispatch::removeReservation(), MSDispatch_TraCI::splitReservation(), and MSDispatch::updateReservationFromPos().
double Reservation::fromPos |
Definition at line 82 of file MSDispatch.h.
Referenced by MSDispatch::computePickupTime(), MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), LIBSUMO_NAMESPACE::Person::filterReservation(), operator==(), MSDispatch::removeReservation(), MSDispatch_TraCI::splitReservation(), and MSDispatch::updateReservationFromPos().
const MSStoppingPlace* Reservation::fromStop |
Definition at line 83 of file MSDispatch.h.
Referenced by MSDispatch_TraCI::splitReservation().
std::string Reservation::group |
Definition at line 87 of file MSDispatch.h.
Referenced by LIBSUMO_NAMESPACE::Person::filterReservation(), operator==(), MSDispatch::servedReservation(), and MSDispatch_TraCI::splitReservation().
std::string Reservation::id |
std::string Reservation::line |
Definition at line 88 of file MSDispatch.h.
Referenced by MSDevice_Taxi::compatibleLine(), operator==(), and MSDispatch_TraCI::splitReservation().
std::set<const MSTransportable*> Reservation::persons |
Definition at line 77 of file MSDispatch.h.
Referenced by MSDispatch_Greedy::computeDispatch(), MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), LIBSUMO_NAMESPACE::Person::filterReservation(), getID(), operator==(), MSDispatch::remainingCapacity(), MSDispatch::removeReservation(), MSDispatch_TraCI::splitReservation(), and MSDispatch::updateReservationFromPos().
SUMOTime Reservation::pickupTime |
Definition at line 79 of file MSDispatch.h.
Referenced by MSDispatch_Greedy::computeDispatch(), MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), LIBSUMO_NAMESPACE::Person::filterReservation(), operator==(), and MSDispatch_TraCI::splitReservation().
SUMOTime Reservation::recheck |
Definition at line 89 of file MSDispatch.h.
Referenced by MSDispatch_Greedy::computeDispatch().
SUMOTime Reservation::reservationTime |
Definition at line 78 of file MSDispatch.h.
Referenced by LIBSUMO_NAMESPACE::Person::filterReservation(), MSDispatch::time_sorter::operator()(), operator==(), and MSDispatch_TraCI::splitReservation().
ReservationState Reservation::state |
Definition at line 90 of file MSDispatch.h.
Referenced by LIBSUMO_NAMESPACE::Person::filterReservation(), and MSDispatch::servedReservation().
const MSEdge* Reservation::to |
Definition at line 84 of file MSDispatch.h.
Referenced by MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), LIBSUMO_NAMESPACE::Person::filterReservation(), operator==(), MSDispatch::removeReservation(), MSDispatch_TraCI::splitReservation(), and MSDispatch::updateReservationFromPos().
double Reservation::toPos |
Definition at line 85 of file MSDispatch.h.
Referenced by MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), LIBSUMO_NAMESPACE::Person::filterReservation(), operator==(), MSDispatch::removeReservation(), MSDispatch_TraCI::splitReservation(), and MSDispatch::updateReservationFromPos().
const MSStoppingPlace* Reservation::toStop |
Definition at line 86 of file MSDispatch.h.
Referenced by MSDispatch_TraCI::splitReservation().