def __init__(self, parameters): CModule.__init__(self, parameters) self._my_mean_period = float(parameters['period']) self._my_variance = float(parameters['variance']) self._my_event_thread = threading.Thread(None, self._my_event_loop, None, (self,))
def __init__(self, parameters = None): CModule.__init__(self); try: self._d_timeout = float(parameters['timeout']); except: self._d_timeout = 0.1; self._d_logger = logging.getLogger("PPLT.core"); self._d_logger.debug("Setup ReflectionModule with timeout %s"%self._d_timeout);