public Simulator(int counterAmount, int terminalAmount, int conveyorBeltLength)
        {
            Time            = new SimulationTime();
            Time.TimeUpdate = OnTimeUpdate;

            CheckinArea    = new CheckinArea(counterAmount);
            TerminalsArea  = new TerminalsArea(terminalAmount);
            SortingMachine = new SortingMachine(Time, conveyorBeltLength, CheckinArea, TerminalsArea);
            FlightSchedule = new FlightSchedule(Time);
        }
Пример #2
0
 public SortingMachine(SimulationTime time, int conveyorBeltLength, CheckinArea checkinArea, TerminalsArea terminalsArea)
 {
     this.time    = time;
     counters     = checkinArea.Counters;
     terminals    = terminalsArea.Terminals;
     ConveyorBelt = new ConveyorBelt <Luggage>(conveyorBeltLength);
 }