View

class hive.lab_app.View(controller, config_path=None)

Bases: QMainWindow

Methods Summary

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.

process_log(logs)

Trigger when a log is sent from the task logic layer.

select_config()

Select and load the config file.

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.

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.