use a new function to create the fixed preceedings and use the information in the runway manager
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import copy
|
||||
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
from aman.config.RunwaySequencing import RunwayAssignmentType
|
||||
@@ -11,15 +13,9 @@ class RunwayManager:
|
||||
def __init__(self, configuration : Configuration):
|
||||
self.Spacings = SpacingConstraints()
|
||||
self.Configuration = configuration
|
||||
self.RunwayInbounds = copy.deepcopy(configuration.PreceedingRunwayInbounds)
|
||||
self.IafInbounds = copy.deepcopy(configuration.PreceedingIafInbounds)
|
||||
|
||||
# initialize the tracker which inbound arrives at which runway
|
||||
self.RunwayInbounds = {}
|
||||
if None != configuration.PreceedingInbounds:
|
||||
for runway in configuration.PreceedingInbounds:
|
||||
self.RunwayInbounds[runway] = configuration.PreceedingInbounds[runway]
|
||||
for runway in configuration.RunwayConstraints.ActiveArrivalRunways:
|
||||
if not runway.Runway.Name in self.RunwayInbounds:
|
||||
self.RunwayInbounds[runway.Runway.Name] = None
|
||||
|
||||
def calculateEarliestArrivalTime(self, runway : str, node : Node, earliestArrivalTime : datetime):
|
||||
constrainedETA = None
|
||||
|
||||
Reference in New Issue
Block a user