Simulation/Output/VehRoutes

The vehicle routes output contains information about which route a vehicle took and if his route was replaced at any time by a new one, each of the previous routes together with the edge at the time their replacement took place is reported. Furthermore, the times the vehicle has entered and has left the network are stored herein.

In normal conditions, when all vehicles use predefined routes, the output does not contain any information that could not be retrieved from the routes and the tripinfo output. But as soon as you reroute your vehicles within the simulation, f.e. using rerouters, it will contain new information.

Instantiating within the Simulation

The simulation is forced to generate this output using the option --vehroute-output <FILE> or --vehroutes <FILE> .

Generated Output

The generated file look like this:

<routes>
   <vehicle id="<VEHICLE_ID>" depart="<INSERTION_TIME>" arrival="<ARRIVAL_TIME>">
      <route replacedOnEdge="<EDGE_ID>" replacedAtTime="<TIME>" edges="<PREVIOUS_ROUTE>"/>

      ... further replaced routes ...

      <route edges="<LAST_ROUTE>"/>
   </vehicle>

   ... information about further vehicles ...

</routes>
Name Type Description
id (vehicle) id The id of the vehicle this entry describes
depart s The time the vehicle was emitted into the network
arrival s The time the vehicle was removed from the simulation (due to arriving at the route end)
replacedOnEdge (edge) id The edge the vehicle was on when the described route was replaced
replacedAtTime s The time step of this replacement
<PREVIOUS_ROUTE> [(edge) id]+ The replaced route
<LAST_ROUTE> [(edge) id]+ The final vehicle route

Both the previous and the final routes are complete, that means that they contain all the edges the vehicle was meant to pass as long as the route was not replaced, yet. The information replacedOnEdge and replacedAtTime are available only for routes which were replaced.


This page was last modified on 12 September 2011, at 11:25.