DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
structured_configuration.py
Go to the documentation of this file.
1"""
2Structed configuration object. Effectively just a ConfigurationHandler with combined with a graph
3"""
4
5from daqconf.cider.data_structures.configuration_handler import ConfigurationHandler
6from daqconf.cider.data_structures.relational_graph import RelationalGraph
7
9 def __init__(self, configuration_file_name: str):
10 """Structured configuration object, essentially a wrapper around a
11 ConfigurationHandler object and a RelationalGraph object.
12
13 Provides access to both the configuration and its relational structure
14
15 Arguments:
16 configuration_file_name -- name of the configuration .database.xml file to open
17 """
18 self._configuration_handler = ConfigurationHandler(configuration_file_name)
19 self._relational_graph = RelationalGraph(self._configuration_handler)
20
21 @property
22 def configuration_handler(self)->ConfigurationHandler:
23 return self._configuration_handler
24
25 @property
26 def relational_graph(self)->RelationalGraph:
27 return self._relational_graph
28