protected void runSimulation(SimulationValues sim) { // method for running simulation System.out.println( "**********************************************************"); // separates elevators for (int i = 1; i <= getNumDays(); i++) { // number of days to be looped getTotalTime().clear(); // clears the total time on the elevator to start the day getResults().clear(); // clears the time on the elevator to start the day Building.fillActiveCallsWithEmpties( getBuilding()); // fills building with empty active calls that might be from the day // before CreateCalls.createCases( getNumCallsInDay(), getBuilding(), getDayCount()); // Creates the call from the text file in main intializeArrayElevators(); // intitalizes elevators Traffic.simulation( getMaxTime(), getTimeConstant(), getBuilding(), getArrayElevators(), sim); // runs simulation System.out.println("Advanced Elevator Day " + i + ":"); Outputs.printStandardOutput( sim.getResults(), sim, sim.getTotalTime()); // Outputs Advanced results setTimeConstant(0); // sets time constant at zero for next day setDayCount(getDayCount() + 1); // increases day count } }