question: public void analyzeAllItAndWriteResults ( ) { RunResultsLoader runDir = new RunResultsLoader ( runDirectory , null ) ; PrintStream stream ; try { stream = new PrintStream ( new File ( outputDir + "routesAndTTs.txt" ) ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; return ; } String header = "it\ttotal tt[s]\t#users up\t#users mid\t#users low\tavg tt[s] up\tavg tt[s] mid\tavg tt[s] low" ; stream . println ( header ) ; double totalTTIt ; double [ ] avgRouteTTsIt ; int [ ] routeUsersIt ; for ( int i = 0 ; i <= lastIteration ; i ++ ) { log . info ( "Starting to analyze iteration " + i + " of " + lastIteration + " iterations." ) ; String eventsFilename = runDir . getEventsFilename ( i ) ; EventsManager eventsManager = new EventsManagerImpl ( ) ; TtAnalyzeBraess handler = new TtAnalyzeBraess ( ) ; eventsManager . addHandler ( handler ) ; MatsimEventsReader reader = new MatsimEventsReader ( eventsManager ) ; reader . readFile ( eventsFilename ) ; totalTTIt = handler . getTotalTT ( ) ; avgRouteTTsIt = handler . calculateAvgRouteTTs ( ) ; routeUsersIt = handler . getRouteUsers ( ) ; StringBuffer line = new StringBuffer ( ) ; line . append ( i + "\t" + totalTTIt ) ; for ( int j = 0 ; j < 3 ; j ++ ) { line . append ( "\t" + routeUsersIt [ j ] ) ; } for ( int j = 0 ; j < 3 ; j ++ ) { line . append ( "\t" + avgRouteTTsIt [ j ] ) ; } stream . println ( line . toString ( ) ) ; } stream . close ( ) ; log . info ( lastIteration + " Iterations analyzed." ) ; }
target:  analyzes all iterations in terms of route choice and travel time