gov.nasa.javaGenes.weightNetwork
Class WeightList
java.lang.Object
gov.nasa.javaGenes.weightNetwork.UpdateAndPropagatable
gov.nasa.javaGenes.weightNetwork.WeightList
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- RouletteWheel, RouletteWheelChooseLowWeight
- public class WeightList
- extends UpdateAndPropagatable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initialWeights
protected java.util.Vector initialWeights
currentWeights
protected Weight currentWeights
weightSum
protected ReinitializableFloat weightSum
WeightList
public WeightList()
weightChanged
public void weightChanged(float oldValue,
float newValue)
initializeWeightSum
public void initializeWeightSum()
removeFromWeightList
public void removeFromWeightList(Weight w)
getMinCurrentWeight
public float getMinCurrentWeight()
getMaxCurrentWeight
public float getMaxCurrentWeight()
getCurrentWeightSumFromCalculation
public float getCurrentWeightSumFromCalculation()
currentlyContains
public boolean currentlyContains(Weight isInNow)
everContains
public boolean everContains(Weight isIn)
more
public boolean more()
reinitialize
public void reinitialize()
- turn intialWeights into a doubly linked list for easy deletion
add
public void add(Weight w)
currentSize
public int currentSize()
getInitialSize
public int getInitialSize()
getWeight
public Weight getWeight(int index)
getFirst
public Weight getFirst()
setFirst
public void setFirst(Weight w)
getWeightSum
public float getWeightSum()
isCurrentlyEmpty
public boolean isCurrentlyEmpty()