public abstract class CounterStatistic extends Statistic implements Printable
CounterStatistic
or
StdCounterStatistic
add up measured
values (e.g., number of messages that have passed a certain port) of the type
long
during a batch with the help of the method update()
. getMean()
) including a confidence interval
(getConfidenceInterval()
)
getMinimum()
and getMaximum()
) of the batch
sums
getNumberOfEvents()
)
getNumberOfBatchEvents()
)
getNumberOfBatches()
)
sampleIndex, simNode, traceWriter
Constructor and Description |
---|
CounterStatistic(SimNode ownNode) |
Modifier and Type | Method and Description |
---|---|
abstract double |
getConfidenceInterval() |
abstract double |
getMaximum() |
abstract double |
getMean() |
abstract double |
getMinimum() |
abstract long |
getNumberOfBatches() |
abstract long |
getNumberOfBatchEvents() |
abstract long |
getNumberOfEvents() |
java.lang.String |
getResultTypeName() |
abstract double |
getStandardDeviation() |
void |
printResults(ResultType type,
PrintResultWriter writer) |
void |
update()
Basic update method, that triggers the output of trace entries
|
abstract void |
update(long sample) |
addResultTag, addResultTag, computeMeasures, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, resetBatchStatistic, resetStatistic, writeTraceEntry
public CounterStatistic(SimNode ownNode)
public void printResults(ResultType type, PrintResultWriter writer)
printResults
in interface Printable
public java.lang.String getResultTypeName()
getResultTypeName
in interface Printable
public abstract void update(long sample)
public final void update()
Statistic
public abstract double getMaximum()
public abstract double getMinimum()
public abstract double getMean()
public abstract long getNumberOfEvents()
public abstract long getNumberOfBatchEvents()
public abstract long getNumberOfBatches()
public abstract double getConfidenceInterval()
public abstract double getStandardDeviation()