Class RecordedOutputsWithRules

Object
org.anchoranalysis.io.output.recorded.RecordedOutputsWithRules

public class RecordedOutputsWithRules
extends Object
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 Details

  • Method Details

    • selectOutputEnabled

      public MultiLevelOutputEnabled selectOutputEnabled​(Optional<OutputEnabledRules> rulesHigherPrecedence)
      Selects which OutputEnabledRules to employ.

      The order of precedence is:

      1. rulesHigherPrecedence combined with user-supplied additions.
      2. 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

      public Optional<MultiLevelRecordedOutputs> 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.