public abstract class FitnessFunction
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAXIMIZE
The Constant MAXIMIZE.
|
static int |
MINIMIZE
The Constant MINIMIZE.
|
| Constructor and Description |
|---|
FitnessFunction() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
computeFitness(SQResultsGroup resultsGroup)
Compute fitness.
|
double |
getFitness(SQResultsGroup resultsGroup)
Gets the fitness.
|
java.lang.String |
getName()
Gets the name.
|
int |
getType()
Gets the type.
|
java.lang.String |
printFitness(SQResultsGroup resultsGroup)
Prints the fitness.
|
void |
setFitness(SQResultsGroup resultsGroup,
double fitness)
Sets the fitness.
|
java.lang.String |
toString() |
public static final int MINIMIZE
public static final int MAXIMIZE
public java.lang.String getName()
public int getType()
public java.lang.String toString()
toString in class java.lang.Objectpublic abstract void computeFitness(SQResultsGroup resultsGroup) throws java.lang.Exception
resultsGroup - the results groupjava.lang.Exception - the exceptionpublic double getFitness(SQResultsGroup resultsGroup) throws java.lang.Exception
resultsGroup - the results groupjava.lang.Exception - the exceptionpublic void setFitness(SQResultsGroup resultsGroup, double fitness)
resultsGroup - the results groupfitness - the fitnesspublic java.lang.String printFitness(SQResultsGroup resultsGroup) throws java.lang.Exception
resultsGroup - the results groupjava.lang.Exception - the exception