示例#1
0
        public static void Main(String [] args)
        {
            IATCMediator atcMediator = new ATCMediator();
            Flight       sparrow101  = new Flight(atcMediator);
            Runway       mainRunway  = new Runway(atcMediator);

            atcMediator.registerFlight(sparrow101);
            atcMediator.registerRunway(mainRunway);
            sparrow101.getReady();
            mainRunway.land();
            sparrow101.land();
            Console.ReadKey();
        }
示例#2
0
 public void registerRunway(Runway runway)
 {
     this.runway = runway;
 }