public abstract class AbstractOutput extends Object
BenchmarkResult
. The
implementing class should know how to handle
these results. Additionally to the visitor pattern, all inheriting class have
to implement the listener pattern as well since every output class has to
provide functionality to handle listener events as well.Modifier and Type | Field and Description |
---|---|
protected static String |
FLOATFORMAT
Constant to offer one fix format to display double-variables.
|
Constructor and Description |
---|
AbstractOutput() |
Modifier and Type | Method and Description |
---|---|
protected static String |
format(double toFormat)
Formats a double.
|
abstract boolean |
listenToException(AbstractPerfidixMethodException exec)
Listening to an arised exception.
|
abstract boolean |
listenToResultSet(Method meth,
AbstractMeter meter,
double data)
Listening to a resultset and handling the data.
|
abstract void |
visitBenchmark(BenchmarkResult res)
Visiting the
BenchmarkResult and do something with the result. |
protected static final String FLOATFORMAT
public abstract void visitBenchmark(BenchmarkResult res)
BenchmarkResult
and do something with the result.res
- the BenchmarkResult
public abstract boolean listenToResultSet(Method meth, AbstractMeter meter, double data)
meth
- the related Method
meter
- the corresponding AbstractMeter
instance where the
result is related todata
- the related datapublic abstract boolean listenToException(AbstractPerfidixMethodException exec)
exec
- an AbstractPerfidixMethodException
instanceprotected static final String format(double toFormat)
toFormat
- the number to formatfor the documentation.
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.