|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcppncss.measure.MeasureCollector
public final class MeasureCollector
Collects measures.
The results are sorted according to the value of the first measure.
The different measures for a given item must be recorded one after another.
| Constructor Summary | |
|---|---|
MeasureCollector(Options options,
MeasureObserver observer)
Create a measure 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 MeasureCollector(Options options,
MeasureObserver observer)
options - the optionsobserver - an observer to be notified of the results| Method Detail |
|---|
public void notify(java.lang.String label,
java.lang.String item,
int line,
int count)
notify in interface CounterObserverlabel - 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 FileObserverfilename - 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 | |||||||||