public static void initUrbanSimPersonWriter(UrbanSimParameterConfigModuleV3 module){
  try {
    log.info("Initializing UrbanSimZoneCSVWriter ...");
    personWriter=IOUtils.getBufferedWriter(module.getMATSim4OpusTemp() + FILE_NAME);
    log.info("Writing data into " + module.getMATSim4OpusTemp() + FILE_NAME+ " ...");
    personWriter.write(InternalConstants.PERSON_ID + "," + "home2work_travel_time_min,"+ "home2work_distance_meter,"+ "work2home_travel_time_min,"+ "work2home_distance_meter,"+ "mode");
    personWriter.newLine();
    log.info("... done!");
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

public static void initUrbanSimPersonWriter ( UrbanSimParameterConfigModuleV3 module ) { try { log . info ( "Initializing UrbanSimZoneCSVWriter ..." ) ; personWriter = IOUtils . getBufferedWriter ( module . getMATSim4OpusTemp ( ) + FILE_NAME ) ; log . info ( "Writing data into " + module . getMATSim4OpusTemp ( ) + FILE_NAME + " ..." ) ; personWriter . write ( InternalConstants . PERSON_ID + "," + "home2work_travel_time_min," + "home2work_distance_meter," + "work2home_travel_time_min," + "work2home_distance_meter," + "mode" ) ; personWriter . newLine ( ) ; log . info ( "... done!" ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
writes the header for persons csv file
