|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aima.search.nqueens.NQueensFitnessFunction
public class NQueensFitnessFunction
Constructor Summary | |
---|---|
NQueensFitnessFunction()
|
Method Summary | |
---|---|
java.lang.String |
generateRandomIndividual(int boardSize)
|
NQueensBoard |
getBoardForIndividual(java.lang.String individual)
|
java.util.Set<java.lang.Character> |
getFiniteAlphabetForBoardOfSize(int size)
|
java.lang.Double |
getValue(java.lang.String individual)
|
boolean |
isGoalState(java.lang.Object state)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NQueensFitnessFunction()
Method Detail |
---|
public java.lang.Double getValue(java.lang.String individual)
getValue
in interface FitnessFunction
public boolean isGoalState(java.lang.Object state)
isGoalState
in interface GoalTest
public NQueensBoard getBoardForIndividual(java.lang.String individual)
public java.lang.String generateRandomIndividual(int boardSize)
public java.util.Set<java.lang.Character> getFiniteAlphabetForBoardOfSize(int size)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |