public abstract class AbstractResult extends Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractResult(Object paramElement)
Constructor with a given name.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addData(AbstractMeter meter,
double data)
Adding a data to a meter.
|
double |
getConf05(AbstractMeter meter)
Computes the confidence 05 interval-factor.
|
double |
getConf95(AbstractMeter meter)
Computes the confidence 95 interval-factor.
|
abstract String |
getElementName()
Returns the name of the related element where these results belong to.
|
int |
getNumberOfResult(AbstractMeter meter)
Returning the number of results for one specific meter.
|
Set<AbstractMeter> |
getRegisteredMeters()
Getting all meters registered in this result.
|
Object |
getRelatedElement()
Getter for the related element where this container corresponds to.
|
Collection<Double> |
getResultSet(AbstractMeter meter)
an array of all data items in the structure.
|
double |
getStandardDeviation(AbstractMeter meter)
Computes the standard deviation.
|
double |
max(AbstractMeter meter)
Computes the maximum.
|
double |
mean(AbstractMeter meter)
Returns the arithmetic mean of the result set.
|
double |
min(AbstractMeter meter)
Computes the minimum.
|
double |
squareSum(AbstractMeter meter)
Computes the square sum of the elements.
|
double |
sum(AbstractMeter meter)
Computes the sum over all data items.
|
String |
toString() |
protected AbstractResult(Object paramElement)
paramElement
- element to this result.public abstract String getElementName()
public final Collection<Double> getResultSet(AbstractMeter meter)
meter
- for the results wantedpublic final Set<AbstractMeter> getRegisteredMeters()
public final double mean(AbstractMeter meter)
meter
- the meter of the meanpublic final double squareSum(AbstractMeter meter)
meter
- the meter of the meanpublic final double getStandardDeviation(AbstractMeter meter)
meter
- the meter of the meanpublic final double sum(AbstractMeter meter)
meter
- the meter of the meanpublic final double min(AbstractMeter meter)
meter
- the meter of the meanpublic final double getConf05(AbstractMeter meter)
meter
- the meter for the 05-confidence interval factorpublic final double getConf95(AbstractMeter meter)
meter
- the meter for the 95-confidence interval factorpublic final double max(AbstractMeter meter)
meter
- the meter of the meanpublic final int getNumberOfResult(AbstractMeter meter)
meter
- to get the number of resultspublic final Object getRelatedElement()
protected final void addData(AbstractMeter meter, double data)
meter
- the related meterdata
- the data to be addedCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.