public void land() { if (airTrafficController.isLandingOk()) { Console.WriteLine("Successfully Landed."); airTrafficController.setLandingStatus(true); } else { Console.WriteLine("Waiting for landing."); } }
public void land() { Console.WriteLine("Landing permission granted."); airTrafficController.setLandingStatus(true); }
public Runway(IAirTrafficControl atControl) { this.airTrafficController = atControl; atControl.setLandingStatus(true); }