|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Public Member Functions | |
| __init__ (self, str configuration_file_name) | |
| List[Any] | get_relationships_for_conf_object (self, conf_object) |
| get_conf_objects_class (self, str conf_class) | |
| Dict[str, Any] | get_all_conf_classes (self) |
| List[str] | get_related_classes (self, str class_id) |
| List[str] | get_inherited_classes (self, str class_id) |
| conffwk.Configuration | configuration (self) |
| None | configuration (self) |
| conf_obj_list (self) | |
| get_obj (self, str class_id, str uid) | |
| commit (self, str update_message) | |
| int | n_dals (self) |
| add_new_conf_obj (self, str class_id, str uid) | |
| destroy_conf_obj (self, str class_id, str uid) | |
| modify_relationship (self, class_id, uid, str relationship_name, updated_value, bool append=False) | |
Protected Attributes | |
| conffwk.Configuration | _configuration = self.__open_configuration(configuration_file_name) |
| list | _loaded_dals = [] |
Private Member Functions | |
| conffwk.Configuration | __open_configuration (self, str configuration_file_name) |
| None | __cache_all_conf_objects (self) |
Definition at line 7 of file configuration_handler.py.
| cider.data_structures.configuration_handler.ConfigurationHandler.__init__ | ( | self, | |
| str | configuration_file_name ) |
Configuration handler object, essentially a wrapper around a conffwk.Configuration object
Arguments:
configuration_file_name -- name of the configuration .database.xml file to open
Definition at line 9 of file configuration_handler.py.
|
private |
Adds all loaded dals to self._loaded_dals
Definition at line 36 of file configuration_handler.py.
|
private |
Opens configuration object safely
Definition at line 24 of file configuration_handler.py.
| cider.data_structures.configuration_handler.ConfigurationHandler.add_new_conf_obj | ( | self, | |
| str | class_id, | ||
| str | uid ) |
Add new configuration object
Arguments:
class_id -- Class name
uid -- Unique object ID
Definition at line 152 of file configuration_handler.py.
| cider.data_structures.configuration_handler.ConfigurationHandler.commit | ( | self, | |
| str | update_message ) |
Commit changes to the database
Arguments:
update_message -- Add message to the update
Definition at line 137 of file configuration_handler.py.
| cider.data_structures.configuration_handler.ConfigurationHandler.conf_obj_list | ( | self | ) |
List of loaded in dals
Definition at line 120 of file configuration_handler.py.
| conffwk.Configuration cider.data_structures.configuration_handler.ConfigurationHandler.configuration | ( | self | ) |
Access the underlying configuration object
Definition at line 108 of file configuration_handler.py.
| None cider.data_structures.configuration_handler.ConfigurationHandler.configuration | ( | self | ) |
dummy method in case I try to do something silly
Definition at line 114 of file configuration_handler.py.
| cider.data_structures.configuration_handler.ConfigurationHandler.destroy_conf_obj | ( | self, | |
| str | class_id, | ||
| str | uid ) |
Destroy a configuration object
Arguments:
class_id -- class name
uid -- unique object ID
Definition at line 164 of file configuration_handler.py.
| Dict[str, Any] cider.data_structures.configuration_handler.ConfigurationHandler.get_all_conf_classes | ( | self | ) |
Gets all classes + objects of that class in the configuration
Returns:
dictionary of class : dal objects
Definition at line 81 of file configuration_handler.py.
| cider.data_structures.configuration_handler.ConfigurationHandler.get_conf_objects_class | ( | self, | |
| str | conf_class ) |
Get all configuration objects of a given class
Arguments:
conf_class -- Coniguration class to get objects of
Returns:
List of configuration objects of the given class
Definition at line 70 of file configuration_handler.py.
| List[str] cider.data_structures.configuration_handler.ConfigurationHandler.get_inherited_classes | ( | self, | |
| str | class_id ) |
Definition at line 101 of file configuration_handler.py.
| cider.data_structures.configuration_handler.ConfigurationHandler.get_obj | ( | self, | |
| str | class_id, | ||
| str | uid ) |
Get a particular configuration object
Arguments:
class_id -- Class name
uid -- Unique object ID
Returns:
DAL object satisfying the input
Definition at line 125 of file configuration_handler.py.
| List[str] cider.data_structures.configuration_handler.ConfigurationHandler.get_related_classes | ( | self, | |
| str | class_id ) |
Get all related to classes to a given input class
Arguments:
class_id -- Name of class
Returns:
List of all related classses
Definition at line 90 of file configuration_handler.py.
| List[Any] cider.data_structures.configuration_handler.ConfigurationHandler.get_relationships_for_conf_object | ( | self, | |
| conf_object ) |
For a given configuration object, return all related objects
Arguments:
conf_object -- Any DAL object
Returns:
List of related objects
Definition at line 46 of file configuration_handler.py.
| cider.data_structures.configuration_handler.ConfigurationHandler.modify_relationship | ( | self, | |
| class_id, | |||
| uid, | |||
| str | relationship_name, | ||
| updated_value, | |||
| bool | append = False ) |
Modify TODO: EDIT THIS :param class_id: _description_ :type class_id: _type_ :param uid: _description_ :type uid: _type_ :param relationship_name: _description_ :type relationship_name: str :param updated_value: _description_ :type updated_value: _type_ :param append: _description_, defaults to False :type append: bool, optional
Definition at line 175 of file configuration_handler.py.
| int cider.data_structures.configuration_handler.ConfigurationHandler.n_dals | ( | self | ) |
Lists the total number of loaded objects
_description_
Definition at line 146 of file configuration_handler.py.
|
protected |
Definition at line 17 of file configuration_handler.py.
|
protected |
Definition at line 20 of file configuration_handler.py.