jmetal.encodings.solutionType
Class ArrayRealSolutionType

java.lang.Object
  extended by jmetal.core.SolutionType
      extended by jmetal.encodings.solutionType.ArrayRealSolutionType

public class ArrayRealSolutionType
extends SolutionType

Class representing the solution type of solutions composed of an ArrayReal encodings.variable


Field Summary
 
Fields inherited from class jmetal.core.SolutionType
problem_
 
Constructor Summary
ArrayRealSolutionType(Problem problem)
          Constructor
 
Method Summary
 Variable[] copyVariables(Variable[] vars)
          Copy the variables
 Variable[] createVariables()
          Creates the variables of the solution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayRealSolutionType

public ArrayRealSolutionType(Problem problem)
Constructor

Parameters:
problem - Problem to solve
Method Detail

createVariables

public Variable[] createVariables()
Creates the variables of the solution

Specified by:
createVariables in class SolutionType

copyVariables

public Variable[] copyVariables(Variable[] vars)
Copy the variables

Overrides:
copyVariables in class SolutionType
Parameters:
vars - Variables
Returns:
An array of variables