Worker.py 510 B

123456789101112131415161718192021
  1. #!/usr/bin/env python
  2. import threading
  3. from aman.config.Airport import Airport
  4. class Worker(threading.Thread):
  5. def __init__(self, icao : str, configuration : Airport):
  6. threading.Thread.__init__(self)
  7. self.stopThread = None
  8. self.icao = icao
  9. self.configuration = configuration
  10. def stop(self):
  11. self.stopThread = True
  12. def run(self):
  13. while None == self.stopThread:
  14. # TODO execute planning, etc.
  15. continue