public VehicleMovements simulateTrafficUntil(int time, boolean readOnly) throws Exception {
// TraCI uses milliseconds as time unit
// 1 time step = 1000 steps in sumo
if(!readOnly) {
this.time = time;
SimulationStepCommandGenerator2 simulationStep = new SimulationStepCommandGenerator2(time * 1000);
Message message = new Message(simulationStep);
message.writeToStream(this.outputStream);
}
Map<String, double[]> added = new HashMap<String, double[]>();