java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_ml.python.openea.OpenEAConfiguration

public class OpenEAConfiguration extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
      Default Logger.
    • JSON_MAPPER

      private static final com.fasterxml.jackson.databind.ObjectMapper JSON_MAPPER
      ObjectMapper from jackson to parse JSON configuration.
    • UNUSED_KEYS

      private static final Set<String> UNUSED_KEYS
      Keys which are atomatically set.
    • arguments

      private Map<String,Object> arguments
  • Constructor Details

    • OpenEAConfiguration

      public OpenEAConfiguration()
    • OpenEAConfiguration

      public OpenEAConfiguration(File jsonConfigFile)
      Parses the json config file given in the OpenEA git repository /run/args/.
      Parameters:
      jsonConfigFile - the file pointing to a json config file.
    • OpenEAConfiguration

      public OpenEAConfiguration(InputStream stream)
      Parses the json config file given in the OpenEA git repository /run/args/.
      Parameters:
      stream - the stream containing json configuration.
  • Method Details

    • parseJsonConfig

      public void parseJsonConfig(File jsonConfigFile)
      Parses the json config file given in the OpenEA git repository /run/args/. It will override properties already set.
      Parameters:
      jsonConfigFile - the file pointing to a json config file.
    • parseJsonConfigIntern

      private void parseJsonConfigIntern(File jsonConfigFile)
    • parseJsonConfig

      public void parseJsonConfig(InputStream stream)
      Parses the json config stream given in the OpenEA git repository /run/args/. It will override properties already set.
      Parameters:
      stream - the stream containing json configuration.
    • parseJsonConfigIntern

      private void parseJsonConfigIntern(InputStream stream)
    • getArgumentMap

      public Map<String,Object> getArgumentMap()
    • getArgumentLine

      public List<String> getArgumentLine()
    • getArgumentLineString

      public String getArgumentLineString()
    • writeArgumentsToFile

      public void writeArgumentsToFile(File fileToWrite) throws IOException
      Throws:
      IOException
    • addArgument

      public void addArgument(String key, Object value)
      Adds an argument.
      Parameters:
      key - the key without -- in front as is also appears in the json file.
      value - the value as a object. Make sure to use the right type like String, Integer, List etc
    • addFileLocations

      public void addFileLocations(String trainingData, String output, String datasetDivision)
    • containsKey

      public boolean containsKey(String key)