Groups
Parameter groups in general describe associations of multiple parameters and the way they interact with each other. For example:
Internally parameter groups are converted to a dict
with the group member names as keys and their loaded specifications as values.
Using different containers
By default Group
uses a dict
as container for its members (after loading). We can customize this:
Any object obj
that supports obj(**member_dict)
argument expansion as well as tuple
and list
can be used as the containing data structure. For tuple
and list
the member names are dropped but the order in which they were declared is maintained.
Transformations
Transformations can be applied to Groups in a similar way that they are applied to parameters (see Transformations). For example:
Sections
Groups can be assigned to separate sections similar to Class Sections but with the difference that the specified section won't be used to modify the members' names but instead to concatenate section and name when loading the parameter. For example:
Adding members
Parameters can be add to an existing group in the following ways:
Extending groups
Existing groups can be extended by others in the following way:
When extending a group it retains its original name / section and modifies the names of the other group's parameters by prepending the other group's name / section to the other group's members. Let's have a closer look:
In order to load the the group we can provide the following HOCON file:
Last updated