|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstartup.ParameterFileParser
public final class ParameterFileParser
This class is used for loading an parsing the parameterfile for the FunSiP project. The parsing of the parameterfile should not take too long, and care is taken that as many faulty inputs as possible are catched by the system before poisining the workflow.
Field Summary | |
---|---|
static int |
MIN_TABS
|
Constructor Summary | |
---|---|
ParameterFileParser(org.apache.log4j.Logger logger)
Constructor for the Parameter file parser. |
Method Summary | |
---|---|
static java.io.File |
createConfigurationFile(ClassificationAction action,
java.lang.String fileName)
This method creates the configuration file for a single classification-action, so the classification can be started remotely. |
FunSiPWorkflow |
fatalErrorExit(java.lang.String message)
Method which displays the given string and then exists the program, due to the fact that one of the parameters could not be parsed. |
static java.lang.String |
getConfigString(java.lang.String command,
java.lang.String result)
This method creates a string that contains both a parameter and its value. |
static java.lang.String |
getConfigString(java.lang.String command,
java.lang.String[] result)
This method creates a string that contains both a parameter and its values. |
static java.lang.String |
getConfigurationFileString(ClassificationAction ca)
This method creates the string that is associated with the given classification action. |
static java.lang.String |
getConfigurationFileString(FunSiPWorkflow workflow)
This method creates a single string that contains the entire configuration file. |
FunSiPWorkflow |
parseFile(java.lang.String fileName)
This method parses a configuration file and sets all the appropiate values to the parameters defined in the configuration file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MIN_TABS
Constructor Detail |
---|
public ParameterFileParser(org.apache.log4j.Logger logger)
logger
- The logging facility used by the parser.Method Detail |
---|
public static java.lang.String getConfigString(java.lang.String command, java.lang.String result)
command
- The parameter commandresult
- The parameter value
public static java.lang.String getConfigString(java.lang.String command, java.lang.String[] result)
command
- The parameter command.result
- The parameter values
public static java.lang.String getConfigurationFileString(FunSiPWorkflow workflow)
workflow
- The workflow for which a configuration file needs to be defined.
public static java.lang.String getConfigurationFileString(ClassificationAction ca)
ca
- The classification action for which the configuration file string
should be produced.
public static java.io.File createConfigurationFile(ClassificationAction action, java.lang.String fileName) throws java.io.IOException
action
- The classification action for which a configuration file should be produced.fileName
- The name for the file to which the configuration data should be written.
java.io.IOException
- In case the production of the configurationfile goes wrong.public FunSiPWorkflow parseFile(java.lang.String fileName)
fileName
- The name of the configuration file.
public FunSiPWorkflow fatalErrorExit(java.lang.String message)
message
- The message to be displayed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |