Class FeatureTableCSVGenerator<T>
Object
org.anchoranalysis.io.generator.SingleFileTypeGenerator<T,T>
org.anchoranalysis.io.generator.OneStageGenerator<T>
org.anchoranalysis.io.generator.tabular.CSVGenerator<T>
org.anchoranalysis.feature.io.csv.table.FeatureTableCSVGenerator<T>
- Type Parameters:
T- type of object that describes all rows of feature calculations.
- All Implemented Interfaces:
Generator<T>,TransformingGenerator<T,T>,org.anchoranalysis.io.output.writer.ElementWriter<T>
public abstract class FeatureTableCSVGenerator<T> extends CSVGenerator<T>
Base class for a
Generator that outputs a feature-table in CSV format.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description FeatureTableCSVGenerator(List<String> headerNames) -
Method Summary
Modifier and Type Method Description protected abstract voidwriteFeaturesToCSV(CSVWriter writer, T allFeatureResults, List<String> headerNames)Writes the features to the CSV-file.voidwriteToFile(T element, org.anchoranalysis.io.output.bean.OutputWriteSettings settings, Path filePath)Methods inherited from class org.anchoranalysis.io.generator.tabular.CSVGenerator
selectFileExtensionMethods inherited from class org.anchoranalysis.io.generator.SingleFileTypeGenerator
write, writeWithIndex
-
Constructor Details
-
Method Details
-
writeToFile
public void writeToFile(T element, org.anchoranalysis.io.output.bean.OutputWriteSettings settings, Path filePath) throws org.anchoranalysis.io.output.error.OutputWriteFailedException- Specified by:
writeToFilein classSingleFileTypeGenerator<T,T>- Throws:
org.anchoranalysis.io.output.error.OutputWriteFailedException
-
writeFeaturesToCSV
protected abstract void writeFeaturesToCSV(CSVWriter writer, T allFeatureResults, List<String> headerNames) throws org.anchoranalysis.io.output.error.OutputWriteFailedExceptionWrites the features to the CSV-file.- Parameters:
writer- the write to useallFeatureResults- all rows to writeheaderNames- header-names for columns, corresponding to the data inrows.- Throws:
org.anchoranalysis.io.output.error.OutputWriteFailedException- if the output cannot be written.
-