jmetal.encodings.solutionType
Class ArrayIntSolutionType

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

public class ArrayIntSolutionType
extends SolutionType

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


Field Summary
 
Fields inherited from class jmetal.core.SolutionType
problem_
 
Constructor Summary
ArrayIntSolutionType(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

ArrayIntSolutionType

public ArrayIntSolutionType(Problem problem)
Constructor

Parameters:
problem - Problem being solved
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 to copy
Returns:
An array of variables