View¶
- class hive.lab_app.View(controller, config_path=None)¶
Bases:
QMainWindowMethods Summary
Trigger when automatic mode checkbox is checked/unchecked in the view.
create_task(config)Activate the task with default value (manual mode) or with special mode defined in config file.
Disconnect the app / clear the user.
log_fail()Log when the fail field changed.
Log success field changed.
process_log(logs)Trigger when a log is sent from the task logic layer.
Select and load the config file.
Send a command to the task logic layer.
Send a detection to the task logic layer.
Update the graph field each time the success or the fail field changed.
Update the trial field each time the success or the fail field changed.
Change the username.
Methods Documentation
- activate_task()¶
Trigger when automatic mode checkbox is checked/unchecked in the view.
- create_task(config)¶
Activate the task with default value (manual mode) or with special mode defined in config file.
- disconnect()¶
Disconnect the app / clear the user.
- launch_setting_ui()¶
- log_fail()¶
Log when the fail field changed.
- log_success()¶
Log success field changed.
See also
log_fail
- process_log(logs)¶
Trigger when a log is sent from the task logic layer.
- select_config()¶
Select and load the config file.
- The config parameters are given to the controller and are parse to update the view :
display log message
Hardware config : update the food delivery info grid and the door info grid
Command config : display all commands in the text box
Task config : display all sequences (if existing) in the sequence grid
- send_command()¶
Send a command to the task logic layer.
- send_detection()¶
Send a detection to the task logic layer.
- update_graph()¶
Update the graph field each time the success or the fail field changed.
- update_trial()¶
Update the trial field each time the success or the fail field changed.
- update_user()¶
Change the username.
Trigger the setup of all devices (claimed..etc.) with the new username.