|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFitnessEvaluation.Sudoku.SudokuFit
public class SudokuFit
| Constructor Summary | |
|---|---|
SudokuFit()
Creates a new instance of SudokuFit |
|
| Method Summary | |
|---|---|
boolean |
canCache()
Return true if it is ok to cache the results of the fitness function |
int |
checkBox(int[] grid,
int x,
int y)
|
int |
checkLine(int[] grid,
int start,
int diff)
|
double |
evaluate(int[] grid)
|
void |
getFitness(Individual i)
Creates a new instance of FitnessEvaluator |
void |
parsePhen(java.lang.String p)
|
void |
resetMatch()
|
void |
setProperties(java.util.Properties p)
Set properties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SudokuFit()
| Method Detail |
|---|
public void setProperties(java.util.Properties p)
ParameterI
setProperties in interface ParameterIp - public boolean canCache()
FitnessFunction
canCache in interface FitnessFunctionpublic void getFitness(Individual i)
FitnessFunction
getFitness in interface FitnessFunctioni - Evaluated individualpublic void parsePhen(java.lang.String p)
public double evaluate(int[] grid)
public int checkLine(int[] grid,
int start,
int diff)
public int checkBox(int[] grid,
int x,
int y)
public void resetMatch()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||