JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.evolvableDoubleList
Class ChildMakerProviderRandom

java.lang.Object
  extended bygov.nasa.javaGenes.core.ChildMakerProvider
      extended bygov.nasa.javaGenes.core.ChildMakerProviderWeighted
          extended bygov.nasa.javaGenes.evolvableDoubleList.ChildMakerProviderRandom
All Implemented Interfaces:
ChildMakerRandomCreator, java.io.Serializable
Direct Known Subclasses:
ChildMakerProviderRandomMutations

public class ChildMakerProviderRandom
extends ChildMakerProviderWeighted
implements ChildMakerRandomCreator

See Also:
Serialized Form

Field Summary
protected  DoubleInterval crossoverIntervalRange
           
protected static DoubleInterval defaultCrossoverIntervalRange
           
protected static DoubleInterval defaultMutationStandardDeviationRange
           
protected static DoubleInterval defaultSelectionProbabilityRange
           
protected static DoubleInterval defaultWeightRange
           
protected  int[] deleteSizes
           
protected  boolean fixedLength
           
protected  int[] insertSizes
           
protected  int maxEvolvableSize
           
protected  int minEvolvableSize
           
protected  DoubleInterval mutationStandardDeviationRange
           
protected  int myModulo
           
protected  int myOffset
           
protected  boolean randomlyChooseDefaultModulo
           
protected  DoubleInterval selectionProbabilityRange
           
protected  DoubleInterval weightRange
           
 
Fields inherited from class gov.nasa.javaGenes.core.ChildMakerProviderWeighted
rouletteWheel
 
Fields inherited from class gov.nasa.javaGenes.core.ChildMakerProvider
childMakers
 
Constructor Summary
protected ChildMakerProviderRandom()
           
  ChildMakerProviderRandom(int numberOfChildMakers, int evolvableSize)
          for fixed length representations with no modulo/offset
  ChildMakerProviderRandom(int numberOfChildMakers, int modulo, int offset, boolean fixedLength, boolean randomlyChooseDefaultModulo, int[] deleteSizes, int[] insertSizes, int minEvolvableSize, int maxEvolvableSize)
           
  ChildMakerProviderRandom(int numberOfChildMakers, int modulo, int offset, boolean randomlyChooseDefaultModulo, int evolvableSize)
          for fixed length representations
 
Method Summary
 ChildMaker create()
           
protected  Selector getRandomSelector(int modulo, int offset, int minEvolvableSize, int maxEvolvableSize)
           
static void setDefaultCrossoverIntervalRange(DoubleInterval range)
           
static void setDefaultMutationStandardDeviationRange(DoubleInterval range)
           
static void setDefaultSelectionProbabilityRange(DoubleInterval range)
           
static void setDefaultWeightRange(DoubleInterval range)
           
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.javaGenes.core.ChildMakerProviderWeighted
add, add, add, getChildMaker
 
Methods inherited from class gov.nasa.javaGenes.core.ChildMakerProvider
get, get, removeLastChildMaker, setFitnessFunction, setFitnessFunctionNames, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultCrossoverIntervalRange

protected static DoubleInterval defaultCrossoverIntervalRange

defaultMutationStandardDeviationRange

protected static DoubleInterval defaultMutationStandardDeviationRange

defaultSelectionProbabilityRange

protected static DoubleInterval defaultSelectionProbabilityRange

defaultWeightRange

protected static DoubleInterval defaultWeightRange

crossoverIntervalRange

protected DoubleInterval crossoverIntervalRange

mutationStandardDeviationRange

protected DoubleInterval mutationStandardDeviationRange

selectionProbabilityRange

protected DoubleInterval selectionProbabilityRange

weightRange

protected DoubleInterval weightRange

myModulo

protected int myModulo

myOffset

protected int myOffset

randomlyChooseDefaultModulo

protected boolean randomlyChooseDefaultModulo

minEvolvableSize

protected int minEvolvableSize

maxEvolvableSize

protected int maxEvolvableSize

fixedLength

protected boolean fixedLength

deleteSizes

protected int[] deleteSizes

insertSizes

protected int[] insertSizes
Constructor Detail

ChildMakerProviderRandom

protected ChildMakerProviderRandom()

ChildMakerProviderRandom

public ChildMakerProviderRandom(int numberOfChildMakers,
                                int evolvableSize)
for fixed length representations with no modulo/offset


ChildMakerProviderRandom

public ChildMakerProviderRandom(int numberOfChildMakers,
                                int modulo,
                                int offset,
                                boolean randomlyChooseDefaultModulo,
                                int evolvableSize)
for fixed length representations


ChildMakerProviderRandom

public ChildMakerProviderRandom(int numberOfChildMakers,
                                int modulo,
                                int offset,
                                boolean fixedLength,
                                boolean randomlyChooseDefaultModulo,
                                int[] deleteSizes,
                                int[] insertSizes,
                                int minEvolvableSize,
                                int maxEvolvableSize)
Method Detail

create

public ChildMaker create()
Specified by:
create in interface ChildMakerRandomCreator

getRandomSelector

protected Selector getRandomSelector(int modulo,
                                     int offset,
                                     int minEvolvableSize,
                                     int maxEvolvableSize)

setDefaultCrossoverIntervalRange

public static void setDefaultCrossoverIntervalRange(DoubleInterval range)

setDefaultMutationStandardDeviationRange

public static void setDefaultMutationStandardDeviationRange(DoubleInterval range)

setDefaultSelectionProbabilityRange

public static void setDefaultSelectionProbabilityRange(DoubleInterval range)

setDefaultWeightRange

public static void setDefaultWeightRange(DoubleInterval range)

toString

public java.lang.String toString()
Overrides:
toString in class ChildMakerProviderWeighted

JavaGenes, NASA Ames. Written largely by Al Globus