31 #define DEBUG_COND2(obj) (true)
41 const MSEdge* from,
double fromPos,
42 const MSEdge* to,
double toPos,
43 const std::string& group,
64 std::vector<const Reservation*> reservations;
65 for (std::string resID : reservationsIDs) {
72 if (reservations.size() == 1) {
73 taxi->
dispatch(*reservations.front());
78 std::set<const Reservation*> unique(reservations.begin(), reservations.end());
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
A device which collects info on the vehicle trip (mainly on departure and arrival)
void dispatch(const Reservation &res)
service the given reservation
void dispatchShared(const std::vector< const Reservation * > &reservations)
service the given reservations
StringBijection< Reservation * > myReservationLookup
std::string getReservationID(Reservation *res)
Reservation * addReservation(MSTransportable *person, SUMOTime reservationTime, SUMOTime pickupTime, const MSEdge *from, double fromPos, const MSEdge *to, double toPos, const std::string &group, int maxCapacity)
add a new reservation
void interpretDispatch(MSDevice_Taxi *taxi, const std::vector< std::string > &reservationsIDs)
trigger taxi dispatch.
virtual Reservation * addReservation(MSTransportable *person, SUMOTime reservationTime, SUMOTime pickupTime, const MSEdge *from, double fromPos, const MSEdge *to, double toPos, const std::string &group, int maxCapacity)
add a new reservation
void servedReservation(const Reservation *res)
A road/street connecting two junctions.
bool has(const T key) const
bool hasString(const std::string &str) const
const std::string & getString(const T key) const
T get(const std::string &str) const
void insert(const std::string str, const T key, bool checkDuplicates=true)