public UrbanSimZoneCSVWriterV2(String matsim4opusTempDirectory,String matsimOutputDirectory){
  this.matsim4opusTempDirectory=matsim4opusTempDirectory;
  this.matsimOutputDirectory=matsimOutputDirectory;
  try {
    log.info("Initializing UrbanSimZoneCSVWriterV2 ...");
    zoneWriter=IOUtils.getBufferedWriter(matsim4opusTempDirectory + FILE_NAME);
    log.info("Writing data into " + matsim4opusTempDirectory + FILE_NAME+ " ...");
    zoneWriter.write(Labels.ZONE_ID + "," + Labels.ACCESSIBILITY_BY_FREESPEED+ ","+ Labels.ACCESSIBILITY_BY_CAR+ ","+ Labels.ACCESSIBILITY_BY_BIKE+ ","+ Labels.ACCESSIBILITY_BY_WALK+ ","+ Labels.ACCESSIBILITY_BY_PT);
    zoneWriter.newLine();
    log.info("... done!");
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

public UrbanSimZoneCSVWriterV2 ( String matsim4opusTempDirectory , String matsimOutputDirectory ) { this . matsim4opusTempDirectory = matsim4opusTempDirectory ; this . matsimOutputDirectory = matsimOutputDirectory ; try { log . info ( "Initializing UrbanSimZoneCSVWriterV2 ..." ) ; zoneWriter = IOUtils . getBufferedWriter ( matsim4opusTempDirectory + FILE_NAME ) ; log . info ( "Writing data into " + matsim4opusTempDirectory + FILE_NAME + " ..." ) ; zoneWriter . write ( Labels . ZONE_ID + "," + Labels . ACCESSIBILITY_BY_FREESPEED + "," + Labels . ACCESSIBILITY_BY_CAR + "," + Labels . ACCESSIBILITY_BY_BIKE + "," + Labels . ACCESSIBILITY_BY_WALK + "," + Labels . ACCESSIBILITY_BY_PT ) ; zoneWriter . newLine ( ) ; log . info ( "... done!" ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
writes the header for zones csv file
