Exemplo n.º 1
0
    def __init__(self, rat_servers, fitter='fit', history=100):
        self.fitter = fitter
        self.history = history

        # connect to rat server(s)
        self.netrat = NetRAT(check_version=False)
        for server, port in rat_servers:
            self.netrat.add_host(server, port)

        # initialize ring buffer storage
        self.x = deque([], self.history)
        self.y = deque([], self.history)
        self.z = deque([], self.history)
        self.nhits = deque([], self.history)
        self.failed = 0

        Processor.__init__(self)
Exemplo n.º 2
0
 def __init__(self):
     Processor.__init__(self)
     self.count = 0
     self.mean_nhit = 0.0
     self.count_lt_30 = 0
     self.count_gte_30 = 0
Exemplo n.º 3
0
 def __init__(self, interval=1000):
     Processor.__init__(self)
     self.interval = interval
     self.count = 0