JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.weightNetwork
Class RouletteWheel

java.lang.Object
  extended bygov.nasa.javaGenes.weightNetwork.UpdateAndPropagatable
      extended bygov.nasa.javaGenes.weightNetwork.WeightList
          extended bygov.nasa.javaGenes.weightNetwork.RouletteWheel
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TaskList

public class RouletteWheel
extends WeightList

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nasa.javaGenes.weightNetwork.WeightList
currentWeights, initialWeights, weightSum
 
Fields inherited from class gov.nasa.javaGenes.weightNetwork.UpdateAndPropagatable
needToUpdateAndPropagate
 
Constructor Summary
RouletteWheel()
           
 
Method Summary
 Weight spinWheel()
           
protected  Weight spinWheel(float random)
           
 
Methods inherited from class gov.nasa.javaGenes.weightNetwork.WeightList
add, currentlyContains, currentSize, everContains, getCurrentWeightSumFromCalculation, getFirst, getInitialSize, getMaxCurrentWeight, getMinCurrentWeight, getWeight, getWeightSum, initializeWeightSum, isCurrentlyEmpty, more, reinitialize, removeFromWeightList, setFirst, weightChanged
 
Methods inherited from class gov.nasa.javaGenes.weightNetwork.UpdateAndPropagatable
mustToUpdateAndPropagate, startUpdateAndPropagate, updateAndPropagate, updateAndPropagateDone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouletteWheel

public RouletteWheel()
Method Detail

spinWheel

public Weight spinWheel()

spinWheel

protected Weight spinWheel(float random)

JavaGenes, NASA Ames. Written largely by Al Globus