public class DataListTally extends Tally
DataListTally 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. All observed values are stored in a list
to be able to calculate quartiles or histograms.Tally| Modifier and Type | Class and Description |
|---|---|
class |
DataListTally.DataList
A simple List for storing values passed to a Tally.
|
UNDEFINED| Constructor and Description |
|---|
DataListTally(Model ownerModel,
java.lang.String name,
boolean showInReport,
boolean showInTrace)
Constructor for a DataListTally object.
|
| Modifier and Type | Method and Description |
|---|---|
Reporter |
createDefaultReporter()
Creates a Reporter for this DataListTally.
|
DataListTally.DataList |
getDataListSorted()
Returns the sorted DataList.
|
boolean |
getReportDataListHistogram()
Will a histogram-reporter be used to create a report for the DataList?
|
void |
reset()
Resets the DataListTally and its DataList.
|
void |
setReportDataListHistogram(boolean value)
Should a histogram-reporter be used for the DataList?
|
void |
update()
Updates this
DataListTally object by fetching the actual
value of the ValueSupplier and processing it. |
void |
update(double val)
Updates this
DataListTally object 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 the Observer interface. |
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 DataListTally(Model ownerModel, java.lang.String name, boolean showInReport, boolean showInTrace)
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 void setReportDataListHistogram(boolean value)
value - boolean : true, if the DataList should be reported using a
histogram-reporter, false if not.public boolean getReportDataListHistogram()
public Reporter createDefaultReporter()
createDefaultReporter in class Tallypublic void update()
DataListTally object by fetching the actual
value of the ValueSupplier and processing it. The
ValueSupplier is passed in the constructor of this
DataListTally object. This update() method
complies with the one described in DESMO, see [Page91].public void update(double val)
DataListTally object with the double value
given as parameter. In some cases it might be more convenient to pass the
value this DataListTally will be updated with directly
within the update(double val) method instead of going via
the ValueSupplier.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 Tallyo - 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.public void reset()
public DataListTally.DataList getDataListSorted()