Changeset 861:5fa8e92b19b2


Ignore:
Timestamp:
06/18/17 17:44:07 (7 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

DOW values are made class attributes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r799 r861  
    731731class B736(Boeing737):
    732732    """Boeing 737-600 aircraft."""
     733    dow = 38307
     734
    733735    def __init__(self, flight):
    734736        super(B736, self).__init__(flight)
    735         self.dow = 38307
    736737        self.mtow = 58328
    737738        self.mlw = 54657
     
    747748class B737(Boeing737):
    748749    """Boeing 737-700 aircraft."""
     750    dow = 39250
     751
    749752    def __init__(self, flight):
    750753        super(B737, self).__init__(flight)
    751         self.dow = 39250
    752754        self.mtow = 61410
    753755        self.mlw = 58059
     
    763765class B738(Boeing737):
    764766    """Boeing 737-800 aircraft."""
     767    dow = 42690
     768
    765769    def __init__(self, flight):
    766770        super(B738, self).__init__(flight)
    767         self.dow = 42690
    768771        self.mtow = 71791
    769772        self.mlw = 65317
     
    798801class B732(Boeing737CL):
    799802    """Boeing 737-200 aircraft."""
     803    dow = 27646
     804
    800805    def __init__(self, flight):
    801806        super(B732, self).__init__(flight)
    802         self.dow = 27646
    803807        self.mtow = 52390
    804808        self.mlw = 46720
     
    811815class B733(Boeing737CL):
    812816    """Boeing 737-300 aircraft."""
     817    dow = 32900
     818
    813819    def __init__(self, flight):
    814820        super(B733, self).__init__(flight)
    815         self.dow = 32900
    816821        self.mtow = 56472
    817822        self.mlw = 51710
     
    837842class B735(Boeing737CL):
    838843    """Boeing 737-500 aircraft."""
     844    dow = 31900
     845
    839846    def __init__(self, flight):
    840847        super(B735, self).__init__(flight)
    841         self.dow = 31900
    842848        self.mtow = 62823
    843849        self.mlw = 49895
     
    856862    - n1: left, right
    857863    - reverser: left, right."""
     864    dow = 18508
    858865
    859866    def __init__(self, flight):
    860867        super(DH8D, self).__init__(flight, minLandingFuel = 2000)
    861         self.dow = 18508
    862868        self.mtow = 29574
    863869        self.mlw = 28123
     
    905911class B762(Boeing767):
    906912    """Boeing 767-200 aircraft."""
     913    dow = 84507
     914
    907915    def __init__(self, flight):
    908916        super(B762, self).__init__(flight)
    909         self.dow = 84507
    910917        self.mtow = 159210
    911918        self.mlw = 126098
     
    918925class B763(Boeing767):
    919926    """Boeing 767-300 aircraft."""
     927    dow = 91311
     928
    920929    def __init__(self, flight):
    921930        super(B763, self).__init__(flight)
    922         self.dow = 91311
    923931        self.mtow = 181436
    924932        self.mlw = 137892
     
    946954    - n1: left, right
    947955    - reverser: left, right."""
     956    dow = 14549
     957
    948958    def __init__(self, flight):
    949959        super(CRJ2, self).__init__(flight, minLandingFuel = 1000)
    950         self.dow = 14549
    951960        self.mtow = 22995
    952961        self.mlw = 21319
     
    973982    - n1: left, right
    974983    - reverser: left, right."""
     984    dow = 24283
     985
    975986    def __init__(self, flight):
    976987        super(F70, self).__init__(flight, minLandingFuel = 1900)
    977         self.dow = 24283
    978988        self.mtow = 38100 # FIXME: differentiate by registration number,
    979989                          # MTOW of HA-LMF: 41955
     
    10041014    - rpm: left, right
    10051015    - reverser: left, right."""
     1016    dow = 8627
     1017
    10061018    def __init__(self, flight):
    10071019        super(DC3, self).__init__(flight)
    1008         self.dow = 8627
    10091020        self.mtow = 11884
    10101021        self.mlw = 11793
     
    10341045    - n1: left, right
    10351046    - reverser: left, right."""
     1047    dow = 29500
     1048
    10361049    def __init__(self, flight):
    10371050        super(T134, self).__init__(flight, minLandingFuel = 3000)
    1038         self.dow = 29500
    10391051        self.mtow = 49000
    10401052        self.mlw = 43000
     
    10891101    - n1: left, centre, right
    10901102    - reverser: left, right"""
     1103    dow = 29500
     1104
    10911105    def __init__(self, flight):
    10921106        super(T154, self).__init__(flight, minLandingFuel = 5000)
    1093         self.dow = 53259
    10941107        self.mtow = 98000
    10951108        self.mlw = 78000
     
    11541167    - n1: left, right
    11551168    - reverser: left, right"""
     1169    dow = 9400
     1170
    11561171    def __init__(self, flight):
    11571172        super(YK40, self).__init__(flight)
    1158         self.dow = 9400
    11591173        self.mtow = 17200
    11601174        self.mlw = 16800
     
    12031217    - n1: left outer, left inner, right inner, right outer
    12041218    - reverser: empty (the plane has no reversers)"""
     1219    dow = 25706
     1220
    12051221    def __init__(self, flight):
    12061222        super(B462, self).__init__(flight)
    1207         self.dow = 25706
    12081223        self.mtow = 43998
    12091224        self.mlw = 38599
Note: See TracChangeset for help on using the changeset viewer.