All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class improv.util.WeightedList

java.lang.Object
   |
   +----improv.util.WeightedList

public class WeightedList
extends Object

Variable Index

 o choices
 o index
 o weights

Constructor Index

 o WeightedList()
 o WeightedList(Object[])
 o WeightedList(Object[], double)
 o WeightedList(Object[], double[])
 o WeightedList(WeightedList[])

Method Index

 o clear()
 o getWeight(Object)
 o pickOne()
 o put(Object)
 o put(Object, double)
 o size()

Variables

 o choices
 protected Object choices[]
 o weights
 protected double weights[]
 o index
 protected int index

Constructors

 o WeightedList
 public WeightedList()
 o WeightedList
 public WeightedList(Object s[],
                     double d[])
 o WeightedList
 public WeightedList(Object s[],
                     double d)
 o WeightedList
 public WeightedList(Object s[])
 o WeightedList
 public WeightedList(WeightedList w[])

Methods

 o put
 public void put(Object s,
                 double d)
 o put
 public void put(Object s)
 o getWeight
 public double getWeight(Object s)
 o size
 public int size()
 o pickOne
 public Object pickOne()
 o clear
 public void clear()

All Packages  Class Hierarchy  This Package  Previous  Next  Index