question: private void writeExperiecedAndCausingPersonDelay ( ) { SortedMap < Double , Map < Id < Person > , Double > > timeBin2AffectedPerson2Delay = getExperiencedPersonDelay ( 1 ) ; SortedMap < Double , Map < Id < Person > , Double > > timeBin2CausingPerson2Delay = getCausingPersonDelay ( 1 ) ; if ( timeBin2AffectedPerson2Delay . size ( ) != 1 ) throw new RuntimeException ( "Delay is not summed up for all time bins." ) ; Map < Id < Person > , Double > affectedperson2Delay = timeBin2AffectedPerson2Delay . get ( simulationEndTime ) ; Map < Id < Person > , Double > causedPerson2Delay = timeBin2CausingPerson2Delay . get ( simulationEndTime ) ; BufferedWriter writer = IOUtils . getBufferedWriter ( runDir + "/analysis/affectedAndCausedDelay_" + congestionImpl + ".txt" ) ; try { writer . write ( "personId\tuserGroup\taffectedDelayInHr\tcausedDelayInHr\n" ) ; for ( Id < Person > id : causedPerson2Delay . keySet ( ) ) { writer . write ( id + "\t" + pf . getMunichUserGroupFromPersonId ( id ) + "\t" + affectedperson2Delay . get ( id ) / 3600 + "\t" + causedPerson2Delay . get ( id ) / 3600 + "\n" ) ; } writer . close ( ) ; } catch ( Exception e ) { throw new RuntimeException ( "Data is not written in file. Reason: " + e ) ; } }
target:  Writes <p> personId userGroup delayInHr