Class OpenEAConfiguration
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_ml.python.openea.OpenEAConfiguration
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.fasterxml.jackson.databind.ObjectMapper
ObjectMapper from jackson to parse JSON configuration.private static final org.slf4j.Logger
Default Logger.Keys which are atomatically set. -
Constructor Summary
ConstructorDescriptionOpenEAConfiguration
(File jsonConfigFile) Parses the json config file given in the OpenEA git repository /run/args/.OpenEAConfiguration
(InputStream stream) Parses the json config file given in the OpenEA git repository /run/args/. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgument
(String key, Object value) Adds an argument.void
addFileLocations
(String trainingData, String output, String datasetDivision) boolean
containsKey
(String key) void
parseJsonConfig
(File jsonConfigFile) Parses the json config file given in the OpenEA git repository /run/args/.void
parseJsonConfig
(InputStream stream) Parses the json config stream given in the OpenEA git repository /run/args/.private void
parseJsonConfigIntern
(File jsonConfigFile) private void
parseJsonConfigIntern
(InputStream stream) void
writeArgumentsToFile
(File fileToWrite)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGERDefault Logger. -
JSON_MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper JSON_MAPPERObjectMapper from jackson to parse JSON configuration. -
UNUSED_KEYS
Keys which are atomatically set. -
arguments
-
-
Constructor Details
-
OpenEAConfiguration
public OpenEAConfiguration() -
OpenEAConfiguration
Parses the json config file given in the OpenEA git repository /run/args/.- Parameters:
jsonConfigFile
- the file pointing to a json config file.
-
OpenEAConfiguration
Parses the json config file given in the OpenEA git repository /run/args/.- Parameters:
stream
- the stream containing json configuration.
-
-
Method Details
-
parseJsonConfig
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
-
parseJsonConfig
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
-
getArgumentMap
-
getArgumentLine
-
getArgumentLineString
-
writeArgumentsToFile
- Throws:
IOException
-
addArgument
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
-
containsKey
-