|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anji.tournament.TournamentFitnessFunction
Fitness function in which chromosomes are evaluated by their phenotypes playing a set of matches. Specific tournaments decide which opponents and how many matches and games are played.
Constructor Summary | |
TournamentFitnessFunction()
ctor - must call init(Properties) after this |
|
TournamentFitnessFunction(Tournament aTournament,
PlayerTranscriber aTranscriber)
ctor |
Method Summary | |
void |
evaluate(java.util.List chroms)
Calculates and sets the fitness values on each of the given Chromosomes via their setFitnessValue() method. |
int |
getMaxFitnessValue()
|
void |
init(Properties props)
See Parameter Details for specific property settings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TournamentFitnessFunction()
init(Properties)
after this
public TournamentFitnessFunction(Tournament aTournament, PlayerTranscriber aTranscriber)
aTournament
- aTranscriber
- Method Detail |
public void init(Properties props)
init
in interface Configurable
props
- public void evaluate(java.util.List chroms)
BulkFitnessFunction
evaluate
in interface BulkFitnessFunction
chroms
- List
contains Chromosome
objects for which
the fitness values must be computed and set.BulkFitnessFunction.evaluate(java.util.List)
public int getMaxFitnessValue()
getMaxFitnessValue
in interface BulkFitnessFunction
BulkFitnessFunction.getMaxFitnessValue()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |