public interface StatisticsSet extends ImmutableStatisticsSet
StatisticsIndexMap
.Grinder.ScriptContext.getStatistics()
Modifier and Type | Method and Description |
---|---|
void |
add(ImmutableStatisticsSet operand)
Add the values of another
StatisticsSet to ours. |
void |
addSample(StatisticsIndexMap.DoubleSampleIndex index,
double value)
Add sample
value to the sample statistic specified by
index . |
void |
addSample(StatisticsIndexMap.LongSampleIndex index,
long value)
Add sample
value to the sample statistic specified by
index . |
void |
addValue(StatisticsIndexMap.DoubleIndex index,
double value)
Add
value to the value specified by
index . |
void |
addValue(StatisticsIndexMap.LongIndex index,
long value)
Add
value to the value specified by
index . |
void |
reset()
Reset this StatisticsSet to default values.
|
void |
reset(StatisticsIndexMap.DoubleSampleIndex index)
Reset the sample statistic specified by
index . |
void |
reset(StatisticsIndexMap.LongSampleIndex index)
Reset the sample statistic specified by
index . |
void |
setIsComposite()
Marked this statistics set as containing composite statistics.
|
void |
setValue(StatisticsIndexMap.DoubleIndex index,
double value)
Set the value specified by
index . |
void |
setValue(StatisticsIndexMap.LongIndex index,
long value)
Set the value specified by
index . |
getCount, getSum, getSum, getValue, getValue, getVariance, isComposite, isZero, snapshot
void reset()
void setValue(StatisticsIndexMap.LongIndex index, long value)
index
.index
- The index.value
- The value.void setValue(StatisticsIndexMap.DoubleIndex index, double value)
index
.index
- The index.value
- The value.void addValue(StatisticsIndexMap.LongIndex index, long value)
value
to the value specified by
index
.index
- The index.value
- The value.void addValue(StatisticsIndexMap.DoubleIndex index, double value)
value
to the value specified by
index
.index
- The index.value
- The value.void addSample(StatisticsIndexMap.LongSampleIndex index, long value)
value
to the sample statistic specified by
index
.index
- The index.value
- The value.void addSample(StatisticsIndexMap.DoubleSampleIndex index, double value)
value
to the sample statistic specified by
index
.index
- The index.value
- The value.void reset(StatisticsIndexMap.LongSampleIndex index)
index
.index
- Index of sample statistic.void reset(StatisticsIndexMap.DoubleSampleIndex index)
index
.index
- Index of sample statistic.void add(ImmutableStatisticsSet operand)
StatisticsSet
to ours.
Assumes we don't need to synchronise access to operand.operand
- The StatisticsSet
value to add.void setIsComposite()
Copyright © 2000-2014. All Rights Reserved.