|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.javaGenes.core.ChildMaker
This is the superclass for all transmission operators. All mutation and crossover classes must be subclasses of ChildMaker. Class is designed to default to mutation to simplify mutation code. See doc on individual methods for what needs to be over-ridden.
Field Summary | |
protected LogComparisons |
cumulative
|
protected LogComparisons |
forEvolution
|
protected LogComparisons |
last
|
Constructor Summary | |
ChildMaker()
|
Method Summary | |
protected boolean |
checkLastResults(int index,
int upv,
int downv,
int samev)
|
protected boolean |
checkResults(int index,
int upv,
int downv,
int samev)
for testing only |
void |
clearLast()
|
java.lang.String |
getAndClearLastTabSeparatedResults()
|
java.lang.String[] |
getFitnessFunctionNames()
|
java.lang.String |
getLastTabSeparatedResults()
|
java.lang.String |
headerFragment()
|
Evolvable[] |
makeChildren(Evolvable[] parents)
Defaults to mutation, any subclass wanting more than one parent must over-ride. |
Evolvable[] |
makeChildren(Individual[] parents)
only used when the variation operator need the fitness value |
protected Evolvable |
mutate(Evolvable chld)
mutators should over-ride, subclasses with multiple parents can ignore. |
boolean |
neverUsed()
|
int |
numberOfParents()
|
double |
proportionDown()
|
void |
results(Individual child,
Individual[] parents)
|
void |
setFitnessFunction(FitnessFunction ff)
|
void |
setFitnessFunctionNames(java.lang.String[] fitnessNames)
|
java.lang.String |
subClassMeasures()
|
java.lang.String |
tabSeparatedResults()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected LogComparisons cumulative
protected LogComparisons last
protected LogComparisons forEvolution
Constructor Detail |
public ChildMaker()
Method Detail |
public boolean neverUsed()
public double proportionDown()
public int numberOfParents()
public Evolvable[] makeChildren(Evolvable[] parents)
parents
- the evolvables from which children will be created. By convention, the parents are not modified.
public Evolvable[] makeChildren(Individual[] parents)
protected Evolvable mutate(Evolvable chld)
public void setFitnessFunction(FitnessFunction ff)
public void setFitnessFunctionNames(java.lang.String[] fitnessNames)
public java.lang.String[] getFitnessFunctionNames()
protected boolean checkResults(int index, int upv, int downv, int samev)
protected boolean checkLastResults(int index, int upv, int downv, int samev)
public void results(Individual child, Individual[] parents)
public java.lang.String tabSeparatedResults()
public java.lang.String getAndClearLastTabSeparatedResults()
public java.lang.String getLastTabSeparatedResults()
public void clearLast()
public java.lang.String headerFragment()
public java.lang.String subClassMeasures()
public java.lang.String toString()
|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |