BankSimulationRunner.java.html

  1  public class BankSimulationRunner
  2  {
  3     public static void main(String[] args)
  4     {
  5        final double START_TIME = 9 * 60; // 9 a.m.
  6        final double END_TIME = 17 * 60; // 5 p.m.
  7  
  8        final int NTELLERS = 5;
  9  
 10        Simulation sim = new BankSimulation(NTELLERS);
 11        sim.addEvent(new Arrival(START_TIME));
 12        sim.run(START_TIME, END_TIME);
 13     }
 14  }