|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.analysis.AverageSequence
public class AverageSequence
Computes the minimum of a sequence of values, based on a list of objects and a method to call on them. This class works much the same as the AverageDataSource class.
MaxSequence,
MinSequence| Constructor Summary | |
|---|---|
AverageSequence(java.util.ArrayList list,
java.lang.String methodName)
Constructs this AverageSequence using the specified list and method name. |
|
| Method Summary | |
|---|---|
double |
getSValue()
Compute and return the average. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AverageSequence(java.util.ArrayList list,
java.lang.String methodName)
list - the list of objects on which to call the methodmethodName - the name of the method to call. This method must return
some subclass of java.Number.Number| Method Detail |
|---|
public double getSValue()
getSValue in interface Sequence
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||