Prechádzať zdrojové kódy

extend the configuration to define the maximum delay to execute may-assignments

Sven Czarnian 3 rokov pred
rodič
commit
7fe1af1def
1 zmenil súbory, kde vykonal 2 pridanie a 3 odobranie
  1. 2 3
      aman/sys/aco/Configuration.py

+ 2 - 3
aman/sys/aco/Configuration.py

@@ -1,8 +1,6 @@
 #!/usr/bin/env python
 
-from datetime import datetime
-
-from aman.config.AirportSequencing import AirportSequencing
+from datetime import timedelta
 
 class Configuration:
     def __init__(self, **kwargs):
@@ -12,6 +10,7 @@ class Configuration:
         self.EarliestArrivalTime = kwargs.get('earliest', None)
         self.WeatherModel = kwargs.get('weather', None)
         self.NavData = kwargs.get('nav', None)
+        self.MaxDelayMay = kwargs.get('maxDelayMay', timedelta(minutes=10))
 
         # the ACO specific information
         self.AntCount = kwargs.get('ants', 20)