Configuration component of Dimension rule objects. Contains setter methods that allow for Dimension rule parameter configuration, and a build
method that builds the Dimension rule.
More...
Inherits ObjectPtr< IDimensionRuleBuilder >.
Configuration component of Dimension rule objects. Contains setter methods that allow for Dimension rule parameter configuration, and a build
method that builds the Dimension rule.
◆ addParameter()
Adds a string-object pair parameter to the Dictionary of Dimension rule parameters.
- Parameters
-
name | The string-type name of the parameter. |
parameter | The object-type parameter. |
◆ build()
daq::DimensionRulePtr build |
( |
| ) |
const |
|
inline |
Builds and returns a Dimension rule object using the currently set values of the Builder.
- Parameters
-
[out] | dataRule | The built Dimension rule. |
◆ getParameters()
daq::DictPtr<daq::IString, daq::IBaseObject> getParameters |
( |
| ) |
const |
|
inline |
Gets a dictionary of string-object key-value pairs representing the parameters used to evaluate the rule.
- Returns
- The dictionary containing the rule parameter members.
◆ getType()
Gets the type of the dimension rule.
- Returns
- The type of the dimension rule.
◆ setParameters()
Sets a dictionary of string-object key-value pairs representing the parameters used to evaluate the rule.
- Parameters
-
parameters | The dictionary containing the rule parameter members. |
◆ setType()
Sets the type of the dimension rule. Rule parameters must be configured to match the requirements of the rule type.
- Parameters
-
type | The type of the dimension rule. |
The required rule parameters are as follows:
- Linear:
delta
, start
, and size
number parameters. Calculated as: index * delta + start for size
number of elements.
- Logarithmic:
delta
, start
, base
, and size
number parameters. Calculated as: base ^ (index * delta + start) for size
number of elements.
- List:
list
parameter. The list contains all dimension labels.