public class Tally extends ValueStatistics
Tally class is providing a statistic analysis about one
 value. The mean value and the standard deviation is calculated on basis of
 the total number of observations. TallyRunningUNDEFINED| Constructor and Description | 
|---|
| Tally(Model ownerModel,
     java.lang.String name,
     boolean showInReport,
     boolean showInTrace)Constructor for a Tally object that has no connection to a
  ValueSupplier. | 
| Tally(Model ownerModel,
     java.lang.String name,
     ValueSupplier valSup,
     boolean showInReport,
     boolean showInTrace)Constructor for a Tally object that is connected to a
  ValueSupplier. | 
| Modifier and Type | Method and Description | 
|---|---|
| Reporter | createDefaultReporter()Returns a Reporter to produce a report about this Tally. | 
| double | getMean()Returns the mean value of all the values observed so far. | 
| double | getStdDev()Returns the standard deviation of all the values observed so far. | 
| void | reset()Resets this Tally object by resetting all variables to 0.0 . | 
| void | update()Updates this  Tallyobject by fetching the actual value of
 theValueSupplierand processing it. | 
| void | update(double val)Updates this  Tallyobject with the double value given as
 parameter. | 
| void | update(java.util.Observable o,
      java.lang.Object arg)Implementation of the virtual  update(Observable, Object)method of theObserverinterface. | 
getLastValue, getMaximum, getMinimum, updategetShowTimeSpansInReport, getUnit, setShowTimeSpansInReportgetUnitText, round, setUnitgetCorrespondingSchedulable, getDescription, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable, setDescription, setReportercurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringpublic Tally(Model ownerModel, java.lang.String name, ValueSupplier valSup, boolean showInReport, boolean showInTrace)
ValueSupplier.ownerModel - Model : The model this Tally is associated toname - java.lang.String : The name of this Tally objectvalSup - ValueSupplier : The ValueSupplier providing the value for this
            Tally. The given ValueSupplier will be observed by this Tally
            object.showInReport - boolean : Flag for showing the report about this Tally.showInTrace - boolean : Flag for showing the trace output of this Tally.public Tally(Model ownerModel, java.lang.String name, boolean showInReport, boolean showInTrace)
ValueSupplier.ownerModel - Model : The model this Tally is associated toname - java.lang.String : The name of this Tally objectshowInReport - boolean : Flag for showing the report about this Tally.showInTrace - boolean : Flag for showing the trace output of this Tally.public Reporter createDefaultReporter()
public double getMean()
getMean in class ValueStatisticspublic double getStdDev()
getStdDev in class ValueStatisticspublic void reset()
reset in class ValueStatisticspublic void update()
Tally object by fetching the actual value of
 the ValueSupplier and processing it. The
 ValueSupplier is passed in the constructor of this
 Tally object. This update() method complies
 with the one described in DESMO, see [Page91].update in class ValueStatisticspublic void update(double val)
Tally object with the double value given as
 parameter. In some cases it might be more convenient to pass the value
 this Tally will be updated with directly within the
 update(double val) method instead of going via the
 ValueSupplier.update in class ValueStatisticsval - double : The value with which this Tally will be
            updated.public void update(java.util.Observable o,
                   java.lang.Object arg)
update(Observable, Object)
 method of the Observer interface. This method will be called
 automatically from an Observable object within its
 notifyObservers() method. null value) is passed as arg, the actual
 value of the ValueSupplier will be fetched with the value()
 method of the ValueSupplier. Otherwise it is expected that the actual
 value is passed in the Object arg.update in interface java.util.Observerupdate in class ValueStatisticso - java.util.Observable : The Observable calling this method
            within its own notifyObservers() method.arg - Object : The Object with which this Tally is
            updated. Normally a double number which is added to the
            statistics or null.