|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cppncss.ResultOutputAdapter
public final class ResultOutputAdapter
Provides an adapter between measurement observers and result outputs.
Constructor Summary | |
---|---|
ResultOutputAdapter(java.lang.String type,
ResultOutput output)
Create a result handler. |
Method Summary | |
---|---|
void |
notify(java.util.List<java.lang.String> labels)
Notify of the labels of the measures. |
void |
notify(java.lang.String label,
float average)
Notify of the average of measures. |
void |
notify(java.lang.String item,
int count)
Notify of a measure. |
void |
notify(java.lang.String label,
long sum)
Notify of the sum of measures. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultOutputAdapter(java.lang.String type, ResultOutput output)
type
- the type of measurementoutput
- the outputMethod Detail |
---|
public void notify(java.util.List<java.lang.String> labels)
notify
in interface MeasureObserver
labels
- the list of the measures.public void notify(java.lang.String item, int count)
notify
in interface MeasureObserver
item
- the name of the measured itemcount
- the result of the measurepublic void notify(java.lang.String label, float average)
notify
in interface AverageObserver
label
- the name of the measurementaverage
- the resulting valuepublic void notify(java.lang.String label, long sum)
notify
in interface SumObserver
label
- the name of the measurementsum
- the resulting value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |