|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 |
public CounterFactory.Type getType()
public String getName()
public double increment()
public double incrementBy(double value)
value - the amount to increment the counter by
public double decrement()
public void setRawValue(double value)
value - the new value of the counterpublic double nextValue()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||