Class FeatureOutputNames

Object
org.anchoranalysis.feature.io.results.FeatureOutputNames

public class FeatureOutputNames
extends Object
The customizable output names used by LabelledResultsCollector, which all follow a pattern based on a prefix.

The group and aggregated outputs can be toggled on and off.

Author:
Owen Feehan
  • Field Details

  • Constructor Details

    • FeatureOutputNames

      public FeatureOutputNames()
      Creates using default names, equivalent to a prefix of features.

      All outputs are enabled.

    • FeatureOutputNames

      public FeatureOutputNames​(String prefix, boolean enableAggregated, boolean enableGroup)
      Creates output-names based upon a prefix.
      Parameters:
      prefix - prefix used to determine the output-names.
      enableAggregated - whether to enable the aggregated outputs.
      enableGroup - whether to enable the group outputs.
  • Method Details

    • calculationResultsNeeded

      public boolean calculationResultsNeeded​(org.anchoranalysis.io.output.enabled.multi.MultiLevelOutputEnabled outputEnabled)
      If any output is enabled that requires calculation of feature results?
      Parameters:
      outputEnabled - which outputs are enabled or not.
      Returns:
      true if at least one output is enabled that requires calculation of results, false if none do.
    • getCsvFeaturesNonAggregated

      public String getCsvFeaturesNonAggregated()
      The CSV of non-aggregated feature-results.
    • getCsvFeaturesAggregated

      public Optional<String> getCsvFeaturesAggregated()
      The CSV of aggregated feature-results, if enabled.
    • getCsvFeaturesGroup

      public Optional<String> getCsvFeaturesGroup()
      The CSV individually written for each group, if enabled.
    • getXmlAggregatedGroup

      public Optional<String> getXmlAggregatedGroup()
      The name of the XML file outputted with aggregated values for each group, if enabled.