public static void write(Id parcelID,Map<Modes4Accessibility,Double> accessibilities){
  try {
    assert (UrbanSimParcelCSVWriter.parcelWriter != null);
    parcelWriter.write(parcelID.toString());
    for (    Modes4Accessibility mode : Modes4Accessibility.values()) {
      parcelWriter.write("," + accessibilities.get(mode));
    }
    parcelWriter.newLine();
  }
 catch (  Exception e) {
    e.printStackTrace();
    throw new RuntimeException("could not write");
  }
}

public static void write ( Id parcelID , Map < Modes4Accessibility , Double > accessibilities ) { try { assert ( UrbanSimParcelCSVWriter . parcelWriter != null ) ; parcelWriter . write ( parcelID . toString ( ) ) ; for ( Modes4Accessibility mode : Modes4Accessibility . values ( ) ) { parcelWriter . write ( "," + accessibilities . get ( mode ) ) ; } parcelWriter . newLine ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; throw new RuntimeException ( "could not write" ) ; } }
writing the parcel data ( accessibilities ) to csv file
