From 7fe1af1defa60abeb869bf04c1a3a1b9f00ebbf9 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Wed, 17 Nov 2021 10:01:35 +0100 Subject: [PATCH] extend the configuration to define the maximum delay to execute may-assignments --- aman/sys/aco/Configuration.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aman/sys/aco/Configuration.py b/aman/sys/aco/Configuration.py index fd3ced6..34ad824 100644 --- a/aman/sys/aco/Configuration.py +++ b/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)