|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cppncss.measure.AverageCollector
public final class AverageCollector
Collects averages of measures.
Constructor Summary | |
---|---|
AverageCollector(AverageObserver observer)
Create an average collector. |
Method Summary | |
---|---|
void |
changed(java.lang.String filename)
Specify the file being processed. |
void |
flush()
Output computed measurements. |
void |
notify(java.lang.String label,
java.lang.String item,
int line,
int count)
Notify about a measure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AverageCollector(AverageObserver observer)
observer
- an observer to be notified of the resultsMethod Detail |
---|
public void notify(java.lang.String label, java.lang.String item, int line, int count)
notify
in interface CounterObserver
label
- the name of the measureitem
- the name of the item measuredline
- the location of the itemcount
- the value of the measurepublic void changed(java.lang.String filename)
changed
in interface FileObserver
filename
- the name of the flepublic void flush()
flush
in interface Collector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |