|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Species
Defines a species.
| Method Summary | |
|---|---|
void |
add(Genome genome)
Add a genome to this species. |
double |
calculateShare(boolean shouldMinimize,
double maxScore)
Calculate this genome's share of the next population. |
int |
getAge()
|
double |
getBestScore()
|
int |
getGensNoImprovement()
|
Genome |
getLeader()
|
List<Genome> |
getMembers()
|
int |
getOffspringCount()
|
double |
getOffspringShare()
|
Population |
getPopulation()
|
void |
setAge(int theAge)
Set the age of this species. |
void |
setBestScore(double theBestScore)
Set the best score for this species. |
void |
setGensNoImprovement(int theGensNoImprovement)
Set the number of generations with no improvement. |
void |
setLeader(Genome theLeader)
Set the leader of this species. |
void |
setOffspringCount(int offspringCount)
Set the offspring count. |
void |
setPopulation(Population thePopulation)
Set the population. |
| Method Detail |
|---|
void add(Genome genome)
genome - The genome to add.
double calculateShare(boolean shouldMinimize,
double maxScore)
shouldMinimize - True if we see to minimize the score.maxScore - The best score.
int getAge()
double getBestScore()
int getGensNoImprovement()
Genome getLeader()
List<Genome> getMembers()
int getOffspringCount()
double getOffspringShare()
Population getPopulation()
void setAge(int theAge)
theAge - The age.void setBestScore(double theBestScore)
theBestScore - The best score.void setGensNoImprovement(int theGensNoImprovement)
theGensNoImprovement - The generation count with no improvement.void setLeader(Genome theLeader)
theLeader - The leader.void setOffspringCount(int offspringCount)
offspringCount - The offspring count.void setPopulation(Population thePopulation)
thePopulation - The population.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||