All Packages Class Hierarchy This Package Previous Next Index
Class improv.util.WeightedList
java.lang.Object
|
+----improv.util.WeightedList
- public class WeightedList
- extends Object
-
choices
-
-
index
-
-
weights
-
-
WeightedList()
-
-
WeightedList(Object[])
-
-
WeightedList(Object[], double)
-
-
WeightedList(Object[], double[])
-
-
WeightedList(WeightedList[])
-
-
clear()
-
-
getWeight(Object)
-
-
pickOne()
-
-
put(Object)
-
-
put(Object, double)
-
-
size()
-
choices
protected Object choices[]
weights
protected double weights[]
index
protected int index
WeightedList
public WeightedList()
WeightedList
public WeightedList(Object s[],
double d[])
WeightedList
public WeightedList(Object s[],
double d)
WeightedList
public WeightedList(Object s[])
WeightedList
public WeightedList(WeightedList w[])
put
public void put(Object s,
double d)
put
public void put(Object s)
getWeight
public double getWeight(Object s)
size
public int size()
pickOne
public Object pickOne()
clear
public void clear()
All Packages Class Hierarchy This Package Previous Next Index