public static void main(String[] args) throws IOException { Airport a = new Airport(); Motor.setStartDate(); try { CsvManager.csvManagerInit(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); System.out.println("Error to initiate Csv Manager"); } for (int i = 0; i < 3 * 30 * 24 * 60; i++) { // Step up the system Motor.stepUp(); // add new plane if (randomPlaneArriver()) { int planeNumber = a.getTower().registerNewAproache(a); a.getTower().addToLandList(planeNumber); System.out.println("Plane P" + planeNumber + " is waiting to land"); } a.getTrack().handler(a); a.getTaxiways()[Taxiway.TAXIWAY_ARRIVE].handler(a); a.getTaxiways()[Taxiway.TAXIWAY_LEAVE].handler(a); for (int j = 0; j < a.getGates().length; j++) { a.getGates()[j].handler(a); } System.out.println(" "); } for (int i = 0; i < a.getTower().planeList.size(); i++) { a.getTower().getPlaneById(i).writeLog(); } Measure.getRet().printAll(); Measure.getFreq().printFreqLog(); }