PerformanceData.py 739 B

123456789101112131415161718
  1. #!/usr/bin/env python
  2. class PerformanceData:
  3. def __init__(self, icao : str):
  4. self.icao = icao
  5. self.speedAboveFL240 = 0.0
  6. self.speedAboveFL100 = 0.0
  7. self.speedBelowFL100 = 0.0
  8. self.speedApproach = 0.0
  9. self.rodAboveFL240 = 0.0
  10. self.rodAboveFL100 = 0.0
  11. self.rodBelowFL100 = 2000.0
  12. def __str__(self):
  13. return 'ICAO: ' + self.icao + ', FL240: ' + str(self.rodAboveFL240) + '@' + str(self.speedAboveFL240) + \
  14. ', +FL100: ' + str(self.rodAboveFL100) + '@' + str(self.speedAboveFL100) + \
  15. ', -FL100: ' + str(self.rodBelowFL100) + '@' + str(self.speedBelowFL100) + \
  16. ', Vapp: ' + str(self.speedApproach)