JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.core
Class ChildMakerProvider

java.lang.Object
  extended bygov.nasa.javaGenes.core.ChildMakerProvider
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ChildMakerEvolvingProvider, ChildMakerEvolvingProvider2, ChildMakerProviderWeighted

public class ChildMakerProvider
extends java.lang.Object
implements java.io.Serializable

This class keeps a list of ChildMaker. When asked, a ChildMakerProvider will supply a random ChildMaker from this list.

See Also:
ChildMaker, Serialized Form

Field Summary
protected  ExtendedVector childMakers
           
 
Constructor Summary
ChildMakerProvider()
           
 
Method Summary
 void add(ChildMaker c)
          add a ChildMaker to the list
 ChildMaker get()
           
 ChildMaker get(int index)
           
 ChildMaker getChildMaker(int totalNumberOfKidsProduced)
           
 void removeLastChildMaker()
           
 void setFitnessFunction(FitnessFunction ff)
           
 void setFitnessFunctionNames(java.lang.String[] names)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

childMakers

protected ExtendedVector childMakers
Constructor Detail

ChildMakerProvider

public ChildMakerProvider()
Method Detail

add

public void add(ChildMaker c)
add a ChildMaker to the list


get

public ChildMaker get()

removeLastChildMaker

public void removeLastChildMaker()

getChildMaker

public ChildMaker getChildMaker(int totalNumberOfKidsProduced)
Returns:
a random ChildMaker

size

public int size()

get

public ChildMaker get(int index)

setFitnessFunction

public void setFitnessFunction(FitnessFunction ff)

setFitnessFunctionNames

public void setFitnessFunctionNames(java.lang.String[] names)

toString

public java.lang.String toString()

JavaGenes, NASA Ames. Written largely by Al Globus