|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Counter
This interface is the interface implemented for all counter types. A Counter can
represent a real counter or a virtual counter that will be computed using one or
more other counters.
| Method Summary | |
|---|---|
double |
decrement()
Decrement the counter's value by 1.0. |
String |
getName()
Accessor for the counter's name. |
CounterFactory.Type |
getType()
Accessor for the counter type. |
double |
increment()
Increment the counter's value by 1.0. |
double |
incrementBy(double value)
Increment the counter's value by the specified amount. |
double |
nextValue()
Compute and return the value of the counter. |
void |
setRawValue(double value)
Set the counter's value to a new value. |
| Method Detail |
|---|
CounterFactory.Type getType()
String getName()
double increment()
double incrementBy(double value)
value - the amount to increment the counter by
double decrement()
void setRawValue(double value)
value - the new value of the counterdouble nextValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||