Closed namdre closed 4 years ago
solution: add new method
getStops(vehID, limit)
rather than adding the limit argument to getNextStops.
new method returns better flags
False alarm: legacy behavior is already handed by traci-server.
getStops can live without a reached flag because the 'arrival' attribute can be checked (INVALID_DOUBLE when not yet reached).
when calling setStop (or replaceStop). the flags are:
However, when calling getNextStops, the result flags are shifted by one bit to accommodate the "reached" bit.
This makes it very inconvenient to re-use results from getNextStops for calling setStop.