private static void Setup() { for (var hour = 7; hour <= 22; hour++) { Planes.Add(new Plane(new Time(hour, 00, 00))); } _queue = new PriorityQueue <Passenger>(10_000); _producer = new PassengerProducer(Planes, _queue); _consumer = new PassengerConsumer(Planes, _queue); _clock = new Clock(_producer, _consumer, new Time(05, 00, 00)); }
public Clock(PassengerProducer producer, PassengerConsumer consumer, Time startTime) { _producer = producer; _consumer = consumer; _millis = startTime.Millis; }