51 const MSEdge* from,
double fromPos,
53 const MSEdge* to,
double toPos,
56 const std::string& line,
58 int maxContainerCapacity)
override;
62 const MSEdge* from,
double fromPos,
63 const MSEdge* to,
double toPos,
64 std::string group)
override;
73 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...
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)
MSDispatch_TraCI & operator=(const MSDispatch_TraCI &)=delete
Invalidated assignment operator.
Reservation * addReservation(MSTransportable *person, SUMOTime reservationTime, SUMOTime pickupTime, SUMOTime earliestPickupTime, const MSEdge *from, double fromPos, const MSStoppingPlace *fromStop, const MSEdge *to, double toPos, const MSStoppingPlace *toStop, std::string group, const std::string &line, int maxCapacity, int maxContainerCapacity) override
add a new reservation
void interpretDispatch(MSDevice_Taxi *taxi, const std::vector< std::string > &reservationsIDs)
trigger taxi dispatch.
MSDispatch_TraCI(const Parameterised::Map ¶ms)
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 its id
An algorithm that performs distpach for a taxi fleet.
A road/street connecting two junctions.
A lane area vehicles can halt at.
std::map< std::string, std::string > Map
parameters map