public class StdRateStatistic extends RateStatistic implements BatchExportable
StdRateStatistic
extends
RateStatistic
and provides an
implementation for a rate statistic. Thereby "rate" measures that rate in
e.g. units whereas "samplerate" considers the rate of samples (the amount
passed to Update(amount)
is not considered)
For printing results it defines the following keywords:
sampleIndex, simNode, traceWriter
Constructor and Description |
---|
StdRateStatistic(SimNode ownNode) |
Modifier and Type | Method and Description |
---|---|
void |
computeMeasures(int batchNumber) |
void |
computeMeasures(int batchNumber,
double currentTime)
For light version
|
void |
exportBatch(ResultWriter writer)
Exports the batch state to a result writer.
|
double |
getBatchRate() |
double |
getBatchSampleRate() |
double |
getRate() |
double |
getRateConfInterval() |
double |
getSampleRate() |
double |
getSampleRateConfInterval() |
void |
importBatch(ResultReader reader)
Imports the state of a batch from the result reader.
|
void |
resetBatchStatistic()
only between batches
|
void |
resetStatistic()
reset complete statistic
|
void |
resetStatistic(double currentTime)
For light version
|
void |
update(double amount) |
getResultTypeName, printResults
addResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntry
public StdRateStatistic(SimNode ownNode)
public void exportBatch(ResultWriter writer) throws ResultException
BatchExportable
importBatch
despite the keywords.exportBatch
in interface BatchExportable
writer
- the result writer which preserves the stateResultException
- if any exception occurs while writing a result to the writerpublic void importBatch(ResultReader reader) throws ResultException
BatchExportable
exportBatch
despite the keywords.importBatch
in interface BatchExportable
reader
- the result reader which contains the batch stateResultException
- if any exception occurs while reading a result from the readerpublic double getRate()
getRate
in class RateStatistic
public double getRateConfInterval()
getRateConfInterval
in class RateStatistic
public double getSampleRate()
getSampleRate
in class RateStatistic
public double getSampleRateConfInterval()
getSampleRateConfInterval
in class RateStatistic
public void update(double amount)
update
in class RateStatistic
public double getBatchRate()
getBatchRate
in class RateStatistic
public double getBatchSampleRate()
getBatchSampleRate
in class RateStatistic
public void computeMeasures(int batchNumber)
computeMeasures
in class Statistic
public void computeMeasures(int batchNumber, double currentTime)
RateStatistic
computeMeasures
in class RateStatistic
public void resetBatchStatistic()
Statistic
resetBatchStatistic
in class Statistic
public void resetStatistic()
Statistic
resetStatistic
in class Statistic
public void resetStatistic(double currentTime)
RateStatistic
resetStatistic
in class RateStatistic