|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcppncss.measure.Sum
public final class Sum
Sums a series of values.
| Constructor Summary | |
|---|---|
Sum(java.lang.String label,
int value)
Create a sum. |
|
| Method Summary | |
|---|---|
void |
accept(SumObserver observer)
Accept a visitor. |
boolean |
update(java.lang.String label,
int value)
Add a value to the sum. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sum(java.lang.String label,
int value)
label - the measurement labelvalue - the initial value of the sum| Method Detail |
|---|
public boolean update(java.lang.String label,
int value)
If the label does not match the label given at creation the measurement is ignored.
label - the label of the measurementvalue - the value of the measurement
public void accept(SumObserver observer)
observer - an average observer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||