Ejemplo n.º 1
0
    def test_main_one(self):

        print("=========== Flight Plan start  =========== ")

        strRoute = 'ADEP/LFBO-TOU-ALIVA-TOU37-FISTO-LMG-PD01-PD02-AMB-AMB01-AMB02-PD03-PD04-OLW11-OLW83-ADES/LFPO'
        flightPlan = FlightPlan(strRoute)

        self.assertFalse(flightPlan.isOverFlight())
        self.assertTrue(flightPlan.isDomestic())
        self.assertFalse(flightPlan.isInBound())
        self.assertFalse(flightPlan.isOutBound())
        print('all angles < 90.0 degrees= ' +
              str(flightPlan.allAnglesLessThan90degrees()))
        print('flight path length= ' +
              str(flightPlan.computeLengthNauticalMiles()) + ' nautical miles')
Ejemplo n.º 2
0
    def test_main_four(self):

        print("=========== Flight Plan start  =========== ")

        strRoute = 'ADEP/LFBO-TOU-ALIVA-TOU37-FISTO-LMG-PD01-PD02-AMB-AMB01-AMB02-PD03-PD04-OLW11-OLW83'
        flightPlan = FlightPlan(strRoute)

        print('is over flight= ' + str(flightPlan.isOverFlight()))
        print('is domestic= ' + str(flightPlan.isDomestic()))
        print('is in Bound= ' + str(flightPlan.isInBound()))
        print('is out Bound= ' + str(flightPlan.isOutBound()))
        print('all angles < 90.0 degrees= ' +
              str(flightPlan.allAnglesLessThan90degrees()))
        print('flight path length= ' +
              str(flightPlan.computeLengthNauticalMiles()) + ' nautical miles')
Ejemplo n.º 3
0
    def test_main_six(self):

        print("=========== Flight Plan start  =========== ")

        strRoute = 'ADEP/SBGL-ALDEIA-NIKDO-MACAE-GIKPO-MABSI-VITORIA-GIDOD-'
        strRoute += 'ISILA-POSGA-SEGURO-BIDEV-NAXOV-IRUMI-ESLIB-MEDIT-RUBEN-KIBEG-'
        strRoute += 'AMBET-VUKSU-NORONHA-UTRAM-MEDAL-NAMBI-RAKUD-IRAVU-MOGNI-ONOBI-CABRAL-'
        strRoute += 'IPERA-ISOKA-LIMAL-UDATI-ODEGI-LOMAS-CANARIA-VASTO-SULAM-DIMSA-ATLUX-'
        strRoute += 'SUNID-AKUDA-OBOLO-PESAS-EKRIS-LUSEM-LULUT-BORDEAUX-COGNAC-ADABI-BOKNO-'
        strRoute += 'DEVRO-VANAD-KOVAK-ADES/LFPG'

        flightPlan = FlightPlan(strRoute)

        print('is over flight= ' + str(flightPlan.isOverFlight()))
        print('is domestic= ' + str(flightPlan.isDomestic()))
        print('is in Bound= ' + str(flightPlan.isInBound()))
        print('is out Bound= ' + str(flightPlan.isOutBound()))
        print('all angles < 90.0 degrees= ' +
              str(flightPlan.allAnglesLessThan90degrees()))
        print('flight path length= ' +
              str(flightPlan.computeLengthNauticalMiles()) + ' nautical miles')