Class 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 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:
      writeToFile in class SingleFileTypeGenerator<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.OutputWriteFailedException
      Writes the features to the CSV-file.
      Parameters:
      writer - the write to use
      allFeatureResults - all rows to write
      headerNames - header-names for columns, corresponding to the data in rows.
      Throws:
      org.anchoranalysis.io.output.error.OutputWriteFailedException - if the output cannot be written.