'''
Created on Mar 27, 2017

@author: DGXU
'''
from Archive import flightData
import json
# Purpose:
#    object that deals with the creation and management of 
#    the database. Also, maybe change class name...
class comunicator(object):
    '''
    classdocs
    '''
    flight_ID = ""
    data = None

    def __init__(self, flight_ID):
        '''
        Constructor
        '''
        self.flight_ID = flight_ID
        
        #if the flight ID exists it loads data from that id.
        if self._check_Id():
            curData = self.getAllData()
        else:
            curData = None
        
        self.data = flightData.flightData(flight_ID, curData)
        
        
        
    #checks if id exists in db
    def _check_Id(self):
        #TODO
        return True
        
    def getAllData(self):
        #TODO retrieves all data from DB
        return
06f1ef7bf5fd755001b77371f5f269124dd7b892
<mask token>


class comunicator(object):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def _check_Id(self):
        return True

    def getAllData(self):
        return

<mask token>


class comunicator(object):
    <mask token>
    flight_ID = ''
    data = None

    def __init__(self, flight_ID):
        """
        Constructor
        """
        self.flight_ID = flight_ID
        if self._check_Id():
            curData = self.getAllData()
        else:
            curData = None
        self.data = flightData.flightData(flight_ID, curData)

    def _check_Id(self):
        return True

    def getAllData(self):
        return

<mask token>


class comunicator(object):
    """
    classdocs
    """
    flight_ID = ''
    data = None

    def __init__(self, flight_ID):
        """
        Constructor
        """
        self.flight_ID = flight_ID
        if self._check_Id():
            curData = self.getAllData()
        else:
            curData = None
        self.data = flightData.flightData(flight_ID, curData)

    def _check_Id(self):
        return True

    def getAllData(self):
        return

<mask token>
from Archive import flightData
import json


class comunicator(object):
    """
    classdocs
    """
    flight_ID = ''
    data = None

    def __init__(self, flight_ID):
        """
        Constructor
        """
        self.flight_ID = flight_ID
        if self._check_Id():
            curData = self.getAllData()
        else:
            curData = None
        self.data = flightData.flightData(flight_ID, curData)

    def _check_Id(self):
        return True

    def getAllData(self):
        return

'''
Created on Mar 27, 2017

@author: DGXU
'''
from Archive import flightData
import json
# Purpose:
#    object that deals with the creation and management of 
#    the database. Also, maybe change class name...
class comunicator(object):
    '''
    classdocs
    '''
    flight_ID = ""
    data = None

    def __init__(self, flight_ID):
        '''
        Constructor
        '''
        self.flight_ID = flight_ID
        
        #if the flight ID exists it loads data from that id.
        if self._check_Id():
            curData = self.getAllData()
        else:
            curData = None
        
        self.data = flightData.flightData(flight_ID, curData)
        
        
        
    #checks if id exists in db
    def _check_Id(self):
        #TODO
        return True
        
    def getAllData(self):
        #TODO retrieves all data from DB
        return