matsim-libs
matsim-libs copied to clipboard
TravelTimeCalculator: how is the travel time calculated for the link without traffic
I am using the TravelTimeCalculator (org.matsim.core.trafficmonitoring.TravelTimeCalculator).
I found out that the travel time for the links where there is no traffic is different to the round-up value (i.e. Math.floor(link.getLength()/link.getFreeSpeed()) + 1). I think we should use the round-up value as that will be the case in our simulation.
I try to track where does the free speed come from, but I lose my track after several layers... Perhaps @mrieser or @dgrether know more about that?
Is it from the line 115 of the TravelTimeDataArray (org.matsim.core.trafficmonitoring.TravelTimeDataArray)? In that case, it seems that no rounding is perfomed...
Thank a lot!