Class ParameterFile

java.lang.Object
org.moeaframework.analysis.io.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

    Constructors
    Constructor
    Description
    Constructs a parameter file with the parameters contained in the specified parameter description file.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int index)
    Returns the parameter at the specified index.
    int
    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 Details

    • 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
  • Method Details

    • 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