* the front veh
* @param writer
* the writer
*/
static void writeData(double time, Vehicle veh, Vehicle frontVeh, PrintWriter writer) {
final PhysicalQuantities physicalQuantities = veh.physicalQuantities();
writer.printf(outputFormat, time, veh.roadSegmentId(), veh.lane(), physicalQuantities.getFrontPosition(),
physicalQuantities.totalTravelDistance(), physicalQuantities.getSpeed(), physicalQuantities.getAcc(),
physicalQuantities.accModel(), physicalQuantities.getNetDistance(frontVeh),
physicalQuantities.getRelSpeed(frontVeh),
physicalQuantities.getxScale() * veh.getDistanceToTrafficlight(),
1000 * veh.getActualFuelFlowLiterPerS(), frontVeh == null ? -1 : frontVeh.getVehNumber(),
veh.getSlope());
writer.flush();
}