public static void write(String personID,double home2WorkTravelTime,double home2WorkDistance,double work2HomeTravelTime,double work2HomeDistance,String mode){
  try {
    assert (UrbanSimPersonCSVWriter.personWriter != null);
    personWriter.write(personID + "," + String.valueOf(home2WorkTravelTime)+ ","+ String.valueOf(home2WorkDistance)+ ","+ String.valueOf(work2HomeTravelTime)+ ","+ String.valueOf(work2HomeDistance)+ ","+ mode);
    personWriter.newLine();
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

public static void write ( String personID , double home2WorkTravelTime , double home2WorkDistance , double work2HomeTravelTime , double work2HomeDistance , String mode ) { try { assert ( UrbanSimPersonCSVWriter . personWriter != null ) ; personWriter . write ( personID + "," + String . valueOf ( home2WorkTravelTime ) + "," + String . valueOf ( home2WorkDistance ) + "," + String . valueOf ( work2HomeTravelTime ) + "," + String . valueOf ( work2HomeDistance ) + "," + mode ) ; personWriter . newLine ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
writing person / agent performances to csv file
