JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.core
Class BreederWithTeachers

java.lang.Object
  extended bygov.nasa.javaGenes.core.Breeder
      extended bygov.nasa.javaGenes.core.BreederSteadyState
          extended bygov.nasa.javaGenes.core.BreederWithTeachers
All Implemented Interfaces:
java.io.Serializable

public class BreederWithTeachers
extends BreederSteadyState

See Also:
Serialized Form

Field Summary
protected  int _newTeachersPerGeneration
           
protected  int _numberOfTeachers
           
protected  ChildMakerProvider _teacherChildMakers
           
protected  TeacherFitnessFunction _teacherFitnessFunction
           
protected  int _teacherIndex
           
protected  TeacherPopulation _teacherPopulation
           
 
Fields inherited from class gov.nasa.javaGenes.core.Breeder
childMakerProvider, debug, tournamentProbability
 
Constructor Summary
BreederWithTeachers(Parameters p, int numberOfTeachers, int newTeachersPerGeneration, ChildMakerProvider teacherChildMakers)
           
 
Method Summary
 Population breed(Population students, int kidsPerGeneration)
           
static AlleleTemplate createAlleleTemplate(FitnessFunction studentFitness)
          return each interval is from best to worst possible fitness for each objective
static AlleleTemplate createAlleleTemplate(Population students)
          return based on the population given.
 TeacherPopulation getTeachers()
           
 
Methods inherited from class gov.nasa.javaGenes.core.BreederSteadyState
toString
 
Methods inherited from class gov.nasa.javaGenes.core.Breeder
antiTournamentGetIndex, breed, chooseBest, chooseWorst, generationIsComplete, generationJustStarting, generationNotComplete, getFitnessFunction, getGenerationIndex, getTotalNumberOfKidsProduced, isProtected, newChild, newChildrenCreated, pickOne, reportOnGeneration, setFitnessFunction, setGenerationIndex, setTotalNumberOfKidsProduced, stateRestore, stateSave, tournament, useTournament
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_teacherIndex

protected int _teacherIndex

_numberOfTeachers

protected int _numberOfTeachers

_newTeachersPerGeneration

protected int _newTeachersPerGeneration

_teacherPopulation

protected TeacherPopulation _teacherPopulation

_teacherFitnessFunction

protected TeacherFitnessFunction _teacherFitnessFunction

_teacherChildMakers

protected ChildMakerProvider _teacherChildMakers
Constructor Detail

BreederWithTeachers

public BreederWithTeachers(Parameters p,
                           int numberOfTeachers,
                           int newTeachersPerGeneration,
                           ChildMakerProvider teacherChildMakers)
Method Detail

getTeachers

public TeacherPopulation getTeachers()

createAlleleTemplate

public static AlleleTemplate createAlleleTemplate(FitnessFunction studentFitness)
return each interval is from best to worst possible fitness for each objective


createAlleleTemplate

public static AlleleTemplate createAlleleTemplate(Population students)
return based on the population given. Intervals will be from lowest to highest fitness for each objective


breed

public Population breed(Population students,
                        int kidsPerGeneration)
Overrides:
breed in class BreederSteadyState

JavaGenes, NASA Ames. Written largely by Al Globus