Exemplo n.º 1
0
 private static void Setup()
 {
     for (int hour = 7; hour <= 22; hour++)
     {
         planes.Add(new Plane(new Time(hour, 00, 00)));
     }
     queue    = new NotPrioritisingPassengerArrayQueue <Passenger>(10000);
     producer = new PassengerProducer(planes, queue);
     consumer = new PassengerConsumer(planes, queue);
     clock    = new Clock(producer, consumer, new Time(05, 00, 00));
 }
Exemplo n.º 2
0
 public Clock(PassengerProducer producer, PassengerConsumer consumer, Time startTime)
 {
     this.producer = producer;
     this.consumer = consumer;
     this.millis   = startTime.GetMillis();
 }