Class FlatDirectoryHierarchy

java.lang.Object
edu.ie3.datamodel.io.naming.FlatDirectoryHierarchy
All Implemented Interfaces:
FileHierarchy

public class FlatDirectoryHierarchy extends Object implements FileHierarchy
Default directory hierarchy for input models
  • Constructor Details

    • FlatDirectoryHierarchy

      public FlatDirectoryHierarchy()
  • Method Details

    • getSubDirectory

      public Optional<String> getSubDirectory(Class<? extends UniqueEntity> cls, String fileSeparator)
      Gives empty sub directory.
      Specified by:
      getSubDirectory in interface FileHierarchy
      Parameters:
      cls - Class to define the sub directory for
      fileSeparator - The file separator to use
      Returns:
      An Option to the regarding sub directory as a string
    • getBaseDirectory

      public Optional<String> getBaseDirectory()
      Gives the baseDirectory, which is Empty.
      Specified by:
      getBaseDirectory in interface FileHierarchy
      Returns:
      An Option to the base directory as a string