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, printResultsaddResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntrypublic StdRateStatistic(SimNode ownNode)
public void exportBatch(ResultWriter writer) throws ResultException
BatchExportableimportBatch despite the keywords.exportBatch in interface BatchExportablewriter - the result writer which preserves the stateResultException - if any exception occurs while writing a result to the writerpublic void importBatch(ResultReader reader) throws ResultException
BatchExportableexportBatch despite the keywords.importBatch in interface BatchExportablereader - the result reader which contains the batch stateResultException - if any exception occurs while reading a result from the readerpublic double getRate()
getRate in class RateStatisticpublic double getRateConfInterval()
getRateConfInterval in class RateStatisticpublic double getSampleRate()
getSampleRate in class RateStatisticpublic double getSampleRateConfInterval()
getSampleRateConfInterval in class RateStatisticpublic void update(double amount)
update in class RateStatisticpublic double getBatchRate()
getBatchRate in class RateStatisticpublic double getBatchSampleRate()
getBatchSampleRate in class RateStatisticpublic void computeMeasures(int batchNumber)
computeMeasures in class Statisticpublic void computeMeasures(int batchNumber,
double currentTime)
RateStatisticcomputeMeasures in class RateStatisticpublic void resetBatchStatistic()
StatisticresetBatchStatistic in class Statisticpublic void resetStatistic()
StatisticresetStatistic in class Statisticpublic void resetStatistic(double currentTime)
RateStatisticresetStatistic in class RateStatistic