Changeset 798:d2fd22159c9f for src/mlx/acft.py
- Timestamp:
- 07/26/16 17:27:46 (8 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/acft.py
r797 r798 98 98 """Base class for aircraft.""" 99 99 @staticmethod 100 def create(flight ):100 def create(flight, bookedFlight): 101 101 """Create an aircraft instance for the type in the given flight.""" 102 return _classes[flight.aircraftType](flight) 102 acft = _classes[flight.aircraftType](flight) 103 acft.setBookedFlight(bookedFlight) 104 return acft 103 105 104 106 def __init__(self, flight, minLandingFuel = None, … … 279 281 This default implementation returns DERATE_NONE.""" 280 282 return DERATE_NONE 283 284 def setBookedFlight(self, bookedFlight): 285 """Update the aircraft based on the booked flight data (e.g. tail number). 286 287 This default implementation does nothing.""" 281 288 282 289 def getDerateLine(self, value):
Note:
See TracChangeset
for help on using the changeset viewer.