public void write(final PrintStream stream){
  stream.print("time\ttime\tdepartures_all\tarrivals_all\tstuck_all\ten-route_all");
  stream.print("\n");
  int allEnRoute=0;
  for (int i=0; i < this.allModesData.countsDep.length; i++) {
    allEnRoute=allEnRoute + this.allModesData.countsDep[i] - this.allModesData.countsArr[i] - this.allModesData.countsStuck[i];
    stream.print(Time.writeTime(i * this.binSizeSeconds) + "\t" + i * this.binSizeSeconds);
    stream.print("\t" + this.allModesData.countsDep[i] + "\t"+ this.allModesData.countsArr[i]+ "\t"+ this.allModesData.countsStuck[i]+ "\t"+ allEnRoute);
    stream.print("\n");
  }
}

public void write ( final PrintStream stream ) { stream . print ( "time\ttime\tdepartures_all\tarrivals_all\tstuck_all\ten-route_all" ) ; stream . print ( "\n" ) ; int allEnRoute = 0 ; for ( int i = 0 ; i < this . allModesData . countsDep . length ; i ++ ) { allEnRoute = allEnRoute + this . allModesData . countsDep [ i ] - this . allModesData . countsArr [ i ] - this . allModesData . countsStuck [ i ] ; stream . print ( Time . writeTime ( i * this . binSizeSeconds ) + "\t" + i * this . binSizeSeconds ) ; stream . print ( "\t" + this . allModesData . countsDep [ i ] + "\t" + this . allModesData . countsArr [ i ] + "\t" + this . allModesData . countsStuck [ i ] + "\t" + allEnRoute ) ; stream . print ( "\n" ) ; } }
writes the gathered data tab - separated into a text stream .
