Ignore:
Timestamp:
06/27/12 17:31:51 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The PIREP constructor gets the flight object instead of the GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/flight.py

    r241 r262  
    8383
    8484    @property
     85    def cargoWeight(self):
     86        """Get the cargo weight for the flight."""
     87        return self._gui.cargoWeight
     88
     89    @property
    8590    def zfw(self):
    8691        """Get the Zero-Fuel Weight of the flight."""
     
    8893
    8994    @property
     95    def filedCruiseAltitude(self):
     96        """Get the filed cruise altitude."""
     97        return self._gui.filedCruiseAltitude
     98
     99    @property
    90100    def cruiseAltitude(self):
    91101        """Get the cruise altitude of the flight."""
     
    93103
    94104    @property
     105    def route(self):
     106        """Get the route of the flight."""
     107        return self._gui.route
     108
     109    @property
     110    def departureMETAR(self):
     111        """Get the departure METAR of the flight."""
     112        return self._gui.departureMETAR
     113
     114    @property
     115    def arrivalMETAR(self):
     116        """Get the arrival METAR of the flight."""
     117        return self._gui.arrivalMETAR
     118
     119    @property
     120    def departureRunway(self):
     121        """Get the departure runway."""
     122        return self._gui.departureRunway
     123
     124    @property
     125    def sid(self):
     126        """Get the SID followed."""
     127        return self._gui.sid
     128
     129    @property
    95130    def v1(self):
    96131        """Get the V1 speed of the flight."""
     
    108143
    109144    @property
     145    def star(self):
     146        """Get the STAR planned."""
     147        return self._gui.star
     148
     149    @property
     150    def transition(self):
     151        """Get the transition planned."""
     152        return self._gui.transition
     153
     154    @property
     155    def approachType(self):
     156        """Get the approach type."""
     157        return self._gui.approachType
     158
     159    @property
     160    def arrivalRunway(self):
     161        """Get the arrival runway."""
     162        return self._gui.arrivalRunway
     163
     164    @property
    110165    def vref(self):
    111166        """Get the VRef speed of the flight."""
     
    116171        """Get the touchdown rate if known, None otherwise."""
    117172        return self._tdRate
     173
     174    @property
     175    def flightType(self):
     176        """Get the type of the flight."""
     177        return self._gui.flightType
     178
     179    @property
     180    def online(self):
     181        """Get whether the flight was an online flight."""
     182        return self._gui.online
     183
     184    @property
     185    def comments(self):
     186        """Get the comments made by the pilot."""
     187        return self._gui.comments
     188
     189    @property
     190    def flightDefects(self):
     191        """Get the flight defects reported by the pilot."""
     192        return self._gui.flightDefects
     193
     194    @property
     195    def delayCodes(self):
     196        """Get the delay codes."""
     197        return self._gui.delayCodes
    118198
    119199    @property
Note: See TracChangeset for help on using the changeset viewer.