def __init__(self, name="AbstractRxPktArch"):
     """
     CTOR
     @param name
     """
     AbstractPktArch.__init__(self, name)
     OpERABase.__init__(self, name)
    def __init__(self, name="AbstractDevice"):
        """
        CTOR.
        @param name Instance name.
        """
        OpERABase.__init__(self, name=name)

        self._channel = None
Esempio n. 3
0
    def __init__(self, max_queue_len=1000,  name="PktQueue"):
        """
        CTOR.
        @param max_queue_len Maximum queue length.
        @param name Name of this instance.
        """
        OpERABase.__init__(self, name=name)

        self.__max_queue_len = max_queue_len
        self.__pkt_queue = deque()
Esempio n. 4
0
    def __init__(self, name="PktBitRate"):
        """
        CTOR
        @param name Instance name.
        """
        OpERABase.__init__(self, name)

        self._pkts = {'cur': 0, 'total': 0, 'counting': 0, 'accumulated': 0}
        self._bps = {'cur': 0, 'total': 0, 'counting': 0}

        # OpERA base method
        self.register_scheduling(self._tick, delay_sec=1)  # pylint: disable=E1101

        Logger.register(name, ['bps', 'pkts', 'pkt_accumulated'])
 def __init__(self, name="AbstractSSArch"):
     """
     CTOR
     @param name
     """
     OpERABase.__init__(self, name=name)