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 Summary
Fields Modifier and Type Field Description static StringOUTPUT_DEFAULT_NON_AGGREGATEDIf not otherwise specified, the output name for a non-aggregated CSV of the results.static StringOUTPUT_SUFFIX_AGGREGATEDSuffix appended tocsvFeaturesNonAggregatedto form an output-name for aggregated features.static StringOUTPUT_SUFFIX_AGGREGATED_GROUPSuffix appended tocsvFeaturesNonAggregatedto form an output-name for aggregated grouped features.static StringOUTPUT_SUFFIX_GROUPSuffix appended tocsvFeaturesNonAggregatedto form an output-name for grouped features. -
Constructor Summary
Constructors Constructor Description FeatureOutputNames()Creates using default names, equivalent to a prefix of features.FeatureOutputNames(String prefix, boolean enableAggregated, boolean enableGroup)Creates output-names based upon a prefix. -
Method Summary
Modifier and Type Method Description booleancalculationResultsNeeded(org.anchoranalysis.io.output.enabled.multi.MultiLevelOutputEnabled outputEnabled)If any output is enabled that requires calculation of feature results?Optional<String>getCsvFeaturesAggregated()The CSV of aggregated feature-results, if enabled.Optional<String>getCsvFeaturesGroup()The CSV individually written for each group, if enabled.StringgetCsvFeaturesNonAggregated()The CSV of non-aggregated feature-results.Optional<String>getXmlAggregatedGroup()The name of the XML file outputted with aggregated values for each group, if enabled.
-
Field Details
-
OUTPUT_DEFAULT_NON_AGGREGATED
If not otherwise specified, the output name for a non-aggregated CSV of the results.- See Also:
- Constant Field Values
-
OUTPUT_SUFFIX_AGGREGATED
Suffix appended tocsvFeaturesNonAggregatedto form an output-name for aggregated features.- See Also:
- Constant Field Values
-
OUTPUT_SUFFIX_GROUP
Suffix appended tocsvFeaturesNonAggregatedto form an output-name for grouped features.- See Also:
- Constant Field Values
-
OUTPUT_SUFFIX_AGGREGATED_GROUP
Suffix appended tocsvFeaturesNonAggregatedto form an output-name for aggregated grouped features.- See Also:
- Constant Field Values
-
-
Constructor Details
-
FeatureOutputNames
public FeatureOutputNames()Creates using default names, equivalent to a prefix of features.All outputs are enabled.
-
FeatureOutputNames
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
The CSV of non-aggregated feature-results. -
getCsvFeaturesAggregated
The CSV of aggregated feature-results, if enabled. -
getCsvFeaturesGroup
The CSV individually written for each group, if enabled. -
getXmlAggregatedGroup
The name of the XML file outputted with aggregated values for each group, if enabled.
-