swarm.analysis
Interface Averager

All Known Implementing Classes:
AveragerImpl

public abstract interface Averager
extends MessageProbeS, MessageProbe

Averages together data, gives the data to whomever asks.. Averager objects read a value (via a MessageProbe) from a collection (typically a list) of objects and collect statistics over them.


Method Summary
 double getAverage()
          The getAverage method averages the values the averager collects.
 int getCount()
          The getCount method returns the number of values the averager collects.
 double getMin()
          The getMin method returns the minimum value the averager collects.
 double getTotal()
          The getTotal method sums the values the averager collects.
 Object update()
          The update method runs through the collection calling the selector on each object.
 
Methods inherited from interface swarm.objectbase.MessageProbeS
setHideResult
 
Methods inherited from interface swarm.objectbase.MessageProbe
doubleDynamicCallOn, getArgCount, getArgName, getHideResult, getProbedMessage, isArgumentId, isResultId, longDynamicCallOn, objectDynamicCallOn, setArg$ToString, stringDynamicCallOn
 
Methods inherited from interface swarm.objectbase.Probe
clone, getProbedClass, getProbedType
 
Methods inherited from interface swarm.objectbase.SwarmObject
getCompleteProbeMap, getProbeForMessage, getProbeForVariable, getProbeMap
 
Methods inherited from interface swarm.defobj.Drop
drop
 
Methods inherited from interface swarm.defobj.DefinedObject
compare, describe, describeID, getDisplayName, getTypeName, getZone, perform, perform$with, perform$with$with, perform$with$with$with, respondsTo, setDisplayName, xfprint, xfprintid, xprint, xprintid
 

Method Detail

update

public Object update()
The update method runs through the collection calling the selector on each object.

getAverage

public double getAverage()
The getAverage method averages the values the averager collects. The total and count are read out of the object to compute the average.

getTotal

public double getTotal()
The getTotal method sums the values the averager collects. The value is read out of the object, not computed everytime it is asked for.

getMin

public double getMin()
The getMin method returns the minimum value the averager collects. The value is read out of the object, not computed everytime it is asked for.

getCount

public int getCount()
The getCount method returns the number of values the averager collects.