Exemple #1
0
        static void Main(string[] args)
        {
            var atc    = new ATCMediator();
            var flight = new Flight(atc);
            var runway = new Runway(atc, true);

            atc.Flight = flight;
            atc.Runway = runway;

            flight.AskForPermissionToLand();
            //runway.NotifyEmergency("There has been an emergency");
            flight.Status();
        }
Exemple #2
0
 public bool AskForPermissionToLand()
 {
     return(Runway.CheckIfClear());
 }