Class DatasetReaderFactory

java.lang.Object
es.upm.fi.cig.multictbnc.data.reader.DatasetReaderFactory

public abstract class DatasetReaderFactory extends Object
Creates dataset readers.
  • Constructor Details

    • DatasetReaderFactory

      public DatasetReaderFactory()
  • Method Details

    • getAvailableDatasetReaders

      public static List<String> getAvailableDatasetReaders()
      Returns the name of available dataset readers.
      Returns:
      name of available dataset readers
    • getAvailableStrategies

      public static List<String> getAvailableStrategies()
      Returns the name of available strategies for the extraction of sequences.
      Returns:
      available strategies
    • getDatasetReader

      public static DatasetReader getDatasetReader(String datasetReader, String pathDataset, int sizeSequence) throws FileNotFoundException
      Generates the correct dataset reader for the given dataset path.
      Parameters:
      datasetReader - name of the dataset reader to build
      pathDataset - path of the dataset folder
      sizeSequence - maximum length of the sequences when they are extracted from a unique file
      Returns:
      a dataset reader a DatasetReader
      Throws:
      FileNotFoundException - if the provided files were not found