gov.nasa.javaGenes.weightNetwork
Class RouletteWheelChooseLowWeight
java.lang.Object
gov.nasa.javaGenes.weightNetwork.UpdateAndPropagatable
gov.nasa.javaGenes.weightNetwork.WeightList
gov.nasa.javaGenes.weightNetwork.RouletteWheelChooseLowWeight
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AccessWindowsList
- public class RouletteWheelChooseLowWeight
- extends WeightList
- See Also:
- Serialized Form
Methods inherited from class gov.nasa.javaGenes.weightNetwork.WeightList |
currentlyContains, currentSize, everContains, getCurrentWeightSumFromCalculation, getFirst, getInitialSize, getMaxCurrentWeight, getMinCurrentWeight, getWeight, getWeightSum, initializeWeightSum, isCurrentlyEmpty, more, setFirst, weightChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
subtractWeightFrom
protected float subtractWeightFrom
mustCalculateSubtractWeightFrom
protected boolean mustCalculateSubtractWeightFrom
numberOfWeightsRemoved
protected int numberOfWeightsRemoved
RouletteWheelChooseLowWeight
public RouletteWheelChooseLowWeight()
reinitialize
public void reinitialize()
- Description copied from class:
WeightList
- turn intialWeights into a doubly linked list for easy deletion
- Overrides:
reinitialize
in class WeightList
add
public void add(Weight w)
- Overrides:
add
in class WeightList
removeFromWeightList
public void removeFromWeightList(Weight w)
- Overrides:
removeFromWeightList
in class WeightList
spinWheel
public Weight spinWheel()
spinWheel
protected Weight spinWheel(float random)
- only for testing. Do not call in operation!