50 const MSEdge* from,
double fromPos,
51 const MSEdge* to,
double toPos,
53 const std::string& line,
55 int maxContainerCapacity)
override;
59 const MSEdge* from,
double fromPos,
60 const MSEdge* to,
double toPos,
61 std::string group)
override;
70 std::string
splitReservation(std::string resID, std::vector<std::string> personIDs);
A device which collects info on the vehicle trip (mainly on departure and arrival)
A dispatch algorithm that services customers in reservation order and always sends the closest availa...
MSDispatch_TraCI & operator=(const MSDispatch_TraCI &)=delete
Invalidated assignment operator.
void fulfilledReservation(const Reservation *res) override
erase reservation from storage
std::string splitReservation(std::string resID, std::vector< std::string > personIDs)
split existing reservations and return the new reservation id
StringBijection< const Reservation * > myReservationLookup
void computeDispatch(SUMOTime, const std::vector< MSDevice_Taxi * > &) override
do nothing (dispatch happens via TraCI calls)
void interpretDispatch(MSDevice_Taxi *taxi, const std::vector< std::string > &reservationsIDs)
trigger taxi dispatch.
MSDispatch_TraCI(const std::map< std::string, std::string > ¶ms)
Reservation * addReservation(MSTransportable *person, SUMOTime reservationTime, SUMOTime pickupTime, const MSEdge *from, double fromPos, const MSEdge *to, double toPos, std::string group, const std::string &line, int maxCapacity, int maxContainerCapacity) override
add a new reservation
std::string removeReservation(MSTransportable *person, const MSEdge *from, double fromPos, const MSEdge *to, double toPos, std::string group) override
remove person from reservation. If the whole reservation is removed, return it's id
An algorithm that performs distpach for a taxi fleet.
A road/street connecting two junctions.