Exemplo n.º 1
0
    def __init__(self, db_table_path, filters):
        """
        Initialization of the class by it's super class

        :param db_table_path: the path of the table (incl. name) to load
        :type db_table_path: basestring
        """

        DbHandler.__init__(self, db_table_path,
                           self.DB_TABLE_FIELD_NAME_SRC_ID, filters)
Exemplo n.º 2
0
    def __init__(self, db_table_path, filters):
        """
        Initialization of the class by it's super class

        :param db_table_path: the path of the table (incl. name) to load
        :type db_table_path: basestring

        :param filters: filters which may apply to the table
        :type filters: dict
        """

        DbHandler.__init__(self, db_table_path,
                           self.DB_TABLE_FIELD_NAME_PACKET_LOSS_ID, filters)
Exemplo n.º 3
0
    def __init__(self, db_table_path, filters):
        """
        Initialization of the class by it's super class and linking the appropriate hrc sub tables for encoding
        and packet loss settings.

        :param db_table_path: the path of the table (incl. name) to load
        :type db_table_path: basestring

        :param filters: filters which may apply on the table
        :type filters: dict
        """

        assert isinstance(db_table_path, basestring)
        assert isinstance(filters, dict)

        packet_loss_filters = dict()
        encoding_filters = dict()

        if 'encoding' in filters:
            encoding_filters = filters.pop('encoding')

        if 'packet_loss' in filters:
            packet_loss_filters = filters.pop('packet_loss')

        DbHandler.__init__(self, db_table_path, self.DB_TABLE_FIELD_NAME_HRC_ID, filters)

        self.__encoding_table = EncodingTable(
            db_table_path + PATH_SEPARATOR + EncodingTable.DB_TABLE_NAME,
            encoding_filters
        )

        self.__packet_loss_table = PacketLossTable(
            db_table_path + PATH_SEPARATOR + PacketLossTable.DB_TABLE_NAME,
            packet_loss_filters
        )

        self.__cleanup_filters()
Exemplo n.º 4
0
 def __init__(self):
     DbHandler.__init__(self)
Exemplo n.º 5
0
 def __del__(self):
     DbHandler.__del__(self)