jmetal.core
Class SolutionType

java.lang.Object
  extended by jmetal.core.SolutionType
Direct Known Subclasses:
ArrayIntSolutionType, ArrayRealAndBinarySolutionType, ArrayRealSolutionType, BinaryRealSolutionType, BinarySolutionType, IntRealSolutionType, IntSolutionType, PermutationSolutionType, RealSolutionType

public abstract class SolutionType
extends java.lang.Object

Abstract class representing solution types, which define the types of the variables constituting a solution


Field Summary
 Problem problem_
           
 
Constructor Summary
SolutionType(Problem problem)
          Constructor
 
Method Summary
 Variable[] copyVariables(Variable[] vars)
          Copies the decision variables
abstract  Variable[] createVariables()
          Abstract method to create the variables of the solution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

problem_

public final Problem problem_
Constructor Detail

SolutionType

public SolutionType(Problem problem)
Constructor

Parameters:
problem - The problem to solve
Method Detail

createVariables

public abstract Variable[] createVariables()
                                    throws java.lang.ClassNotFoundException
Abstract method to create the variables of the solution

Throws:
java.lang.ClassNotFoundException

copyVariables

public Variable[] copyVariables(Variable[] vars)
Copies the decision variables

Parameters:
vars -
Returns:
An array of variables