public class parseParameters
extends java.lang.Object
Title: Parse Configuration File
Description: It reads the configuration file (data-set files and parameters)
Company: KEEL
Constructor and Description |
---|
parseParameters()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithmName()
Gets the algorithm name
|
java.lang.String |
getInputFile(int pos)
obtains the input file of index pos
|
java.lang.String[] |
getInputFiles()
Obtains all the input files
|
java.lang.String |
getOutputFile(int pos)
obtains the output file of index pos
|
java.lang.String[] |
getOutputFiles()
Obtains all the output files
|
java.lang.String |
getParameter(int pos)
Returns the parameter of index pos
|
java.lang.String[] |
getParameters()
Gets all the parameters lines from the file
|
java.lang.String |
getTestInputFile()
Gets the path of the test input file
|
java.lang.String |
getTestOutputFile()
Gets the path of the test output file
for printing the results (from the test file)
|
java.lang.String |
getTrainingInputFile()
Gets the path of the training input file
|
java.lang.String |
getTrainingOutputFile()
Gets the path of the training output file
for printing the results (from the validation file)
|
java.lang.String |
getValidationInputFile()
Gets the path of the validation input file
|
void |
parseConfigurationFile(java.lang.String fileName)
It obtains all the necesary information from the configuration file.
|
public void parseConfigurationFile(java.lang.String fileName)
fileName
- Name of the configuration filepublic java.lang.String getTrainingInputFile()
Gets the path of the training input file
public java.lang.String getTestInputFile()
Gets the path of the test input file
public java.lang.String getValidationInputFile()
Gets the path of the validation input file
public java.lang.String getTrainingOutputFile()
Gets the path of the training output file for printing the results (from the validation file)
public java.lang.String getTestOutputFile()
Gets the path of the test output file for printing the results (from the test file)
public java.lang.String getAlgorithmName()
Gets the algorithm name
public java.lang.String[] getParameters()
Gets all the parameters lines from the file
public java.lang.String getParameter(int pos)
Returns the parameter of index pos
pos
- the index of the parameter we wantpublic java.lang.String[] getInputFiles()
Obtains all the input files
public java.lang.String getInputFile(int pos)
obtains the input file of index pos
pos
- the index of the input file we wantpublic java.lang.String[] getOutputFiles()
Obtains all the output files
public java.lang.String getOutputFile(int pos)
obtains the output file of index pos
pos
- the index of the output file we want