def __init__(self, tobii_controller, adaptation_loop, callback_time): DetectionComponent.__init__(self, tobii_controller, adaptation_loop, is_periodic=True, callback_time=callback_time) self.setup_new_emdat_component()
def __init__(self, tobii_controller, adaptation_loop): """ See __init__ in DetectionComponent """ DetectionComponent.__init__(self, tobii_controller, adaptation_loop) self.runOnlineFix = True self.cur_fix_id = 0 self.AOIS = self.application_state_controller.getFixAoiMapping()
def __init__(self, tobii_controller, app_state_control, callback_time, emdat_component): DetectionComponent.__init__(self, tobii_controller, app_state_control, is_periodic=True, callback_time=callback_time) self.predicted_features = {} self.id = 1 self.emdat_component = emdat_component self.feature_select = self.application_state_controller.getMLFeatures() self.threshold = 0.5 """
def __init__(self, tobii_controller, application_state_controller, emdat_component, use_mouse, use_keyboard): DetectionComponent.__init__(self, tobii_controller, application_state_controller, is_periodic = False) self.predicted_features = {} self.emdat_component = emdat_component self.listeners = [] if use_mouse: self.mouse_queue = Queue.Queue() self.double_click_queue = Queue.Queue() self.keyboard_queue = Queue.Queue() self.listeners.append(mouse.Listener( on_click=self.on_click )) if use_keyboard: self.listeners.append(keyboard.Listener( on_press=self.on_press )) print("Constructed the mouse listener")
def __init__(self, tobii_controller, adaptation_loop, callback_time): DetectionComponent.__init__(self, tobii_controller, adaptation_loop, is_periodic=True, callback_time=callback_time) self.pups_idx = 0 self.pupv_idx = 0 self.dist_idx = 0 self.fix_idx = 0 self.x_y_idx = 0 self.id = 1 self.AOIS = self.application_state_controller.getEmdatAoiMapping() print(self.AOIS) print("NUMBER OF AOIS %d" % len(self.AOIS)) self.emdat_task_features = {} self.init_emdat_features(self.emdat_task_features) self.tobii_controller.update_aoi_storage(self.AOIS) self.feature_select = self.application_state_controller.getEdmatFeatures( ) self.execfile = open('newfile.txt', 'w')
def __init__(self, tobii_controller, adaptation_loop): """ See __init__ in DetectionComponent """ DetectionComponent.__init__(self, tobii_controller, adaptation_loop) self.restart_fixation_algorithm()
def __init__(self, tobii_controller, adaptation_loop, callback_time): DetectionComponent.__init__(self, tobii_controller, adaptation_loop, is_periodic = True, callback_time = callback_time) self.setup_new_emdat_component()