MOEA Framework 2.12
API Specification

org.moeaframework.analysis.sensitivity
Class ParameterFile

java.lang.Object
  extended by org.moeaframework.analysis.sensitivity.ParameterFile

public class ParameterFile
extends Object

Loads the parameters in a parameter file. A parameter file contains on each line the name, lower bound, and upper bound of a parameter separated by whitespace.


Constructor Summary
ParameterFile(File file)
          Constructs a parameter file with the parameters contained in the specified parameter description file.
ParameterFile(Reader reader)
          Constructs a parameter file with the parameters read from the underlying reader.
 
Method Summary
 Parameter get(int index)
          Returns the parameter at the specified index.
 int size()
          Returns the number of parameters in this parameter file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterFile

public ParameterFile(File file)
              throws IOException
Constructs a parameter file with the parameters contained in the specified parameter description file.

Parameters:
file - the parameter file
Throws:
IOException - if an I/O error occurred

ParameterFile

public ParameterFile(Reader reader)
              throws IOException
Constructs a parameter file with the parameters read from the underlying reader. The reader is closed when the parameters are finished loading.

Parameters:
reader - the reader of the parameters
Throws:
IOException - if an I/O error occurred
Method Detail

size

public int size()
Returns the number of parameters in this parameter file.

Returns:
the number of parameters in this parameter file

get

public Parameter get(int index)
Returns the parameter at the specified index.

Parameters:
index - the index of the parameter to be returned
Returns:
the parameter at the specified index

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!