def __init__(self): super(Area, self).__init__() # Parameters of area self.active = False self.delarea = '' self.exparea = '' self.swtaxi = True # Default ON: Doesn't do anything. See comments of set_taxi function below. self.swtaxialt = 1500.0 # Default alt for TAXI OFF self.prevconfpairs = set() self.confinside_all = 0 # The FLST logger self.flst = datalog.crelog('FLSTLOG', None, flstheader) self.conflog = datalog.crelog('CONFLOG', None, confheader) with RegisterElementParameters(self): self.insdel = np.array([], dtype=np.bool) # In deletion area or not self.insexp = np.array([], dtype=np.bool) # In experiment area or not self.oldalt = np.array([]) self.distance2D = np.array([]) self.distance3D = np.array([]) self.dstart2D = np.array([]) self.dstart3D = np.array([]) self.workstart = np.array([]) self.entrytime = np.array([]) self.create_time = np.array([])
def __init__(self): with RegisterElementParameters(self): # engine self.etype = np.array([]) # jet, turboprop or piston # masses and dimensions self.mass = np.array([]) # effective mass [kg] self.Sref = np.array([]) # wing reference surface area [m^2] # flight envelope self.vmto = np.array([]) # min TO spd [m/s] self.vmic = np.array([]) # min. IC speed self.vmcr = np.array([]) # min cruise spd self.vmap = np.array([]) # min approach speed self.vmld = np.array([]) # min landing spd self.vmin = np.array([]) # min speed over all phases self.vmo = np.array([]) # max operating speed [m/s] self.mmo = np.array([]) # max operating mach number [-] self.hmaxact = np.array([]) # max. altitude self.maxthr = np.array([]) # maximum thrust [N] # Energy Share Factor self.ESF = np.array([]) # [-] # flight phase self.phase = np.array([]) self.post_flight = np.array([]) # taxi prior of post flight? self.pf_flag = np.array([]) # performance self.Thr = np.array([]) # thrust self.D = np.array([]) # drag self.ff = np.array([]) # fuel flow
def __init__(self): super(OpenSkyListener, self).__init__() if settings.opensky_user: self._auth = (settings.opensky_user, settings.opensky_password) else: self._auth = () self._api_url = "https://opensky-network.org/api" self.connected = False with RegisterElementParameters(self): self.upd_time = np.array([]) self.my_ac = np.array([], dtype=np.bool)
def __init__(self): super(DataLogger, self).__init__() # global resultstosave # global counter traf.resultstosave = pd.DataFrame(columns=[ 'AC ID', 'Actual Departure Time', 'Arrival Time', 'Fuel Consumed' ]) # traf.counter = np.array([]) with RegisterElementParameters(self): self.counter = np.array([]) self.initmass = np.array([]) self.fuelused = np.array([]) self.inittime = ([]) self.deltime = ([]) #data = np.array(data, dtype=np.float32) pass
def __init__(self): super(Area, self).__init__() # Parameters of area self.active = False self.dt = 5.0 # [s] frequency of area check (simtime) self.name = None self.swtaxi = False # Default OFF: Doesn't do anything. See comments of set_taxi fucntion below. # The FLST logger self.logger = datalog.defineLogger('FLSTLOG', header) with RegisterElementParameters(self): self.inside = np.array([], dtype=np.bool) # In test area or not self.distance2D = np.array([]) self.distance3D = np.array([]) self.work = np.array([]) self.create_time = np.array([])
def __init__(self): super(DataLogger, self).__init__() self.dataframe_holder = \ ['Ensemble', 'Delay', 'AC ID', 'Date', 'Departure', 'Arrival', 'Fuel Consumed'] traf.resultstosave = pd.DataFrame(columns=self.dataframe_holder) with RegisterElementParameters(self): self.counter = np.array([]) self.initmass = np.array([]) self.fuelused = np.array([]) self.inittime = ([]) self.deltime = ([]) self.wpcounter = -2 self.delay = np.array([]) with open(os.getcwd() + '\\scenario\\number_of_ac.txt', "r") as fin: self.aclimit = int(fin.read()) self.aclimit2 = 0
def __init__(self): super(Area, self).__init__() # Parameters of area self.active = False self.dt = traf.asas.dtasas # [s] frequency of area check (simtime) self.name = None self.swtaxi = False # Default OFF: Doesn't do anything. See comments of set_taxi fucntion below. self.inconf = traf.asas.inconf # The FLST logger self.logger = datalog.defineLogger('FLSTLOG', header) self.data_collection_count = 0 self.count_relevancy = 0 #Clean ASAS variables traf.asas.clearconfdb() with RegisterElementParameters(self): #self.inside = np.array([],dtype = np.bool) # In test area or not self.distance2D = np.array([]) #self.distance3D = np.array([]) self.work = np.array([])