|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Classes | |
| class | Changed |
Public Member Functions | |
| on_mount (self) | |
| select_new_dal_from_id (self, str new_id, str new_class) | |
| current_dal (self) | |
| current_dal (self, new_dal) | |
| update_configuration (self, attr_name, update_value) | |
| new_handler_from_str (self, str file_name) | |
| StructuredConfiguration|None | handler (self) |
| handler (self, StructuredConfiguration new_handler) | |
| configuration (self) | |
| str | generate_rich_string (cls, dal_obj, bool obj_disabled=False) |
| get_interface (self) | |
| None | add_interface (self, str interface_label) |
| None | commit_configuration (self, str message) |
| None | rename_dal (self, str new_name) |
| add_new_conf_obj (self, str class_id, str uid) | |
| destroy_conf_obj (self, str class_id, str uid) | |
| destroy_current_object (self) | |
| bool | can_be_disabled (self) |
| None | toggle_disable_conf_obj (self, selection_menu) |
| list | get_all_sessions (self) |
| list | is_selected_object_enabled (self) |
| modify_current_dal_relationship (self, str relationship_name, updated_value, bool append=False) | |
| remove_current_dal_relationship (self, relationship_name) | |
| pop_dal_relationship (self, relationship_name, dal_to_remove) | |
| get_dals_of_class (self, str dal_class) | |
| get_list_of_classes (self) | |
| get_relations_to_current_dal (self) | |
| get_relation_category_in_current_dal (self, str relation_name) | |
Public Attributes | |
| current_dal | |
Static Public Attributes | |
| list | BINDINGS = [("ctrl+s", "save_configuration", "Save Configuration")] |
Protected Attributes | |
| _logger = self.app.query_one("RichLogWError") | |
Static Protected Attributes | |
| StructuredConfiguration | _handler = None |
| dict | _selection_interfaces = {} |
| StructuredConfiguration|None | _current_selected_object = None |
Private Member Functions | |
| __no_handler_check (self) | |
Controller widget for the full configuration. In principal this is where all communication with the configuration is actually done!
Definition at line 13 of file configuration_controller.py.
|
private |
Raise error if no handler is setup
Definition at line 226 of file configuration_controller.py.
| None cider.widgets.configuration_controller.ConfigurationController.add_interface | ( | self, | |
| str | interface_label ) |
Definition at line 132 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.add_new_conf_obj | ( | self, | |
| str | class_id, | ||
| str | uid ) |
Add new object to configuration
Definition at line 150 of file configuration_controller.py.
| bool cider.widgets.configuration_controller.ConfigurationController.can_be_disabled | ( | self | ) |
Check if current object is capable of being disabled
Returns:
bool -- True if object can be disabled
Definition at line 167 of file configuration_controller.py.
| None cider.widgets.configuration_controller.ConfigurationController.commit_configuration | ( | self, | |
| str | message ) |
Save configuration with a message to database
Definition at line 138 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.configuration | ( | self | ) |
Return current configuration
Returns:
Access the raw configuration
Definition at line 104 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.current_dal | ( | self | ) |
Get current selected dal
Definition at line 38 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.current_dal | ( | self, | |
| new_dal ) |
Set the current dal via a pre-existing dal
Arguments:
new_dal -- New dal object
Definition at line 44 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.destroy_conf_obj | ( | self, | |
| str | class_id, | ||
| str | uid ) |
Destroy object in configuration
Definition at line 156 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.destroy_current_object | ( | self | ) |
Definition at line 162 of file configuration_controller.py.
| str cider.widgets.configuration_controller.ConfigurationController.generate_rich_string | ( | cls, | |
| dal_obj, | |||
| bool | obj_disabled = False ) |
Generate a rich string for a DAL object, shouldn't live here but :shrug:
Definition at line 115 of file configuration_controller.py.
| list cider.widgets.configuration_controller.ConfigurationController.get_all_sessions | ( | self | ) |
Definition at line 217 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.get_dals_of_class | ( | self, | |
| str | dal_class ) |
Definition at line 276 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.get_interface | ( | self | ) |
get all interface objects. The interface defines an "ordering" for objects
in the configuration
Returns:
dict{interfaces}
Definition at line 123 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.get_list_of_classes | ( | self | ) |
Definition at line 279 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.get_relation_category_in_current_dal | ( | self, | |
| str | relation_name ) |
Definition at line 286 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.get_relations_to_current_dal | ( | self | ) |
Definition at line 282 of file configuration_controller.py.
| StructuredConfiguration | None cider.widgets.configuration_controller.ConfigurationController.handler | ( | self | ) |
Return the configuration handler
Returns:
ConfigurationHandler instance
Definition at line 86 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.handler | ( | self, | |
| StructuredConfiguration | new_handler ) |
Set new handelr
Arguments:
new_handler -- New handler object
Definition at line 95 of file configuration_controller.py.
| list cider.widgets.configuration_controller.ConfigurationController.is_selected_object_enabled | ( | self | ) |
Check if object is disabled in any session
Definition at line 221 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.modify_current_dal_relationship | ( | self, | |
| str | relationship_name, | ||
| updated_value, | |||
| bool | append = False ) |
Definition at line 237 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.new_handler_from_str | ( | self, | |
| str | file_name ) |
Set new handler object by file name
Arguments:
file_name -- New database to load
Definition at line 73 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.on_mount | ( | self | ) |
Definition at line 23 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.pop_dal_relationship | ( | self, | |
| relationship_name, | |||
| dal_to_remove ) |
Definition at line 252 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.remove_current_dal_relationship | ( | self, | |
| relationship_name ) |
Definition at line 244 of file configuration_controller.py.
| None cider.widgets.configuration_controller.ConfigurationController.rename_dal | ( | self, | |
| str | new_name ) |
Rename the currently selected object [NOT TESTED]
Definition at line 144 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.select_new_dal_from_id | ( | self, | |
| str | new_id, | ||
| str | new_class ) |
Swap currently selected DAL object via its unique ID and class
Arguments:
new_id -- UID of new DAL
new_class -- Class of DAL
Definition at line 27 of file configuration_controller.py.
| None cider.widgets.configuration_controller.ConfigurationController.toggle_disable_conf_obj | ( | self, | |
| selection_menu ) |
Disable current object in configuration
Definition at line 184 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.update_configuration | ( | self, | |
| attr_name, | |||
| update_value ) |
Update an attribute of the currently loaded dal object.
NOTE This does not update the database file itself
Arguments:
attr_name -- Attribute to update
update_value -- New value for attribute
Definition at line 54 of file configuration_controller.py.
|
staticprotected |
Definition at line 21 of file configuration_controller.py.
|
staticprotected |
Definition at line 19 of file configuration_controller.py.
|
protected |
Definition at line 24 of file configuration_controller.py.
|
staticprotected |
Definition at line 20 of file configuration_controller.py.
|
static |
Definition at line 17 of file configuration_controller.py.
| cider.widgets.configuration_controller.ConfigurationController.current_dal |
Definition at line 164 of file configuration_controller.py.