add TODOs for the later release

This commit is contained in:
Sven Czarnian
2021-10-17 17:31:19 +02:00
parent 01ce0f1bfe
commit 62f2a6c3ed
2 changed files with 3 additions and 0 deletions

View File

@@ -100,6 +100,7 @@ class RecedingHorizonControl:
earliestArrivalTime = None earliestArrivalTime = None
# check the overlapping windows # check the overlapping windows
# TODO use this commented for loop after developing to use the correct windows
#for i in range(self.FreezedIndex + 1, min(len(self.Windows), self.FreezedIndex + 1 + self.Configuration.WindowOverlap)): #for i in range(self.FreezedIndex + 1, min(len(self.Windows), self.FreezedIndex + 1 + self.Configuration.WindowOverlap)):
for i in range(0, len(self.Windows)): for i in range(0, len(self.Windows)):
if None == earliestArrivalTime: if None == earliestArrivalTime:

View File

@@ -29,8 +29,10 @@ class Colony:
# assume that the inbounds are sorted in FCFS order # assume that the inbounds are sorted in FCFS order
print('FCFS-Sequence:') print('FCFS-Sequence:')
# TODO remove this after testing and optimization
tmp = datetime.now().replace(tzinfo = pytz.UTC) + timedelta(seconds = 50 * len(inbounds)) tmp = datetime.now().replace(tzinfo = pytz.UTC) + timedelta(seconds = 50 * len(inbounds))
for inbound in inbounds: for inbound in inbounds:
# TODO remove this after testing and optimization
for runway in inbound.ArrivalCandidates: for runway in inbound.ArrivalCandidates:
inbound.ArrivalCandidates[runway].InitialArrivalTime = tmp inbound.ArrivalCandidates[runway].InitialArrivalTime = tmp
inbound.ArrivalCandidates[runway].EarliestArrivalTime = tmp inbound.ArrivalCandidates[runway].EarliestArrivalTime = tmp