Class RecordedOutputsWithRules
Object
RecordedOutputsWithRules
Rules to determine what outputting occurs, together with maybe an entity that records the
output-names that are used when writing / querying.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionCreates with no rules or outputs defined.RecordedOutputsWithRules
(MultiLevelRecordedOutputs recordedOutputs, MultiLevelOutputEnabled defaultRules, OutputEnabledDelta delta) Creates with all elements defined. -
Method Summary
Modifier and TypeMethodDescriptionIf defined, records output-names that are written / not-written during the experiment.selectOutputEnabled
(Optional<OutputEnabledRules> rulesHigherPrecedence) Selects whichOutputEnabledRules
to employ.
-
Constructor Details
-
RecordedOutputsWithRules
public RecordedOutputsWithRules()Creates with no rules or outputs defined. -
RecordedOutputsWithRules
public RecordedOutputsWithRules(MultiLevelRecordedOutputs recordedOutputs, MultiLevelOutputEnabled defaultRules, OutputEnabledDelta delta) Creates with all elements defined.- Parameters:
recordedOutputs
- where output-names are recorded as they are written / querieddefaultRules
- default rules for which outputs are enabled.delta
- additional output-names to enable or disable from an existing set of output-enabled rules.
-
-
Method Details
-
selectOutputEnabled
public MultiLevelOutputEnabled selectOutputEnabled(Optional<OutputEnabledRules> rulesHigherPrecedence) Selects whichOutputEnabledRules
to employ.The order of precedence is:
rulesHigherPrecedence
combined with user-supplied additions.defaultRules
combined with user-supplied additions.
Any user-supplied additional outputs are also added to both if they exist.
- Parameters:
rulesHigherPrecedence
- output-rules that are applied with highest-precedence, if they exist.- Returns:
- a
MultiLevelOutputEnabled
that combines one of the two sources of rules with user-supplied additional outputs.
-
getRecordedOutputs
If defined, records output-names that are written / not-written during the experiment.This only occurs for first-level outputs, not second-level outputs.
-