add Euroscope to the worker itself

This commit is contained in:
Sven Czarnian
2021-11-12 20:13:36 +01:00
parent feb4f85dac
commit d0be115fce

View File

@@ -5,6 +5,7 @@ import sys
import time
from aman.com import Weather
from aman.com.Euroscope import Euroscope
from aman.com.WebUI import WebUI
from aman.config.Airport import Airport
from aman.sys.aco.Colony import Colony
@@ -30,7 +31,8 @@ class Worker(Thread):
def __del__(self):
self.release()
def acquire(self, icao : str, configuration : Airport, weather : Weather, performance : PerformanceData, webui : WebUI):
def acquire(self, icao : str, configuration : Airport, weather : Weather,
performance : PerformanceData, webui : WebUI, euroscope : Euroscope):
self.StopThread = None
self.Icao = icao
self.Configuration = configuration
@@ -41,6 +43,7 @@ class Worker(Thread):
self.WeatherModel = WeatherModel(configuration.GaforId, weather)
self.RecedingHorizonControl = RecedingHorizonControl(configuration.RecedingHorizonControl)
self.WebUi = webui
self.Euroscope = euroscope
# merge the constraint information with the GNG information
for runway in self.Configuration.GngData.ArrivalRoutes: