add Euroscope to the worker itself
This commit is contained in:
		| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user