|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface StatValue
This interface declares a generic statistic value that may record data series for certain
Intervals synchronously. That means, that if there is more than one Interval registered,
the same value will be collected in all of these intervals.
Furthermore this class provides some convenience methods to manipulate the value,
possibly depending on comparison operations.
Interval| Method Summary | |
|---|---|
void |
addInterval(Interval aInterval)
This method adds the given Interval. |
void |
decrease()
This method decreases the stored values for all Intervals by one. |
void |
decreaseByDouble(double aValue)
This method decreases the current values of all registered Intervals by the given double value. |
void |
decreaseByInt(int aValue)
This method decreases the current values of all registered Intervals by the given int value. |
void |
decreaseByLong(long aValue)
This method decreases the current values of all registered Intervals by the given long value. |
String |
getName()
This method returns the name of this statistic value. |
double |
getValueAsDouble()
This method returns the absolute value as double. |
double |
getValueAsDouble(String aIntervalName)
This method returns the current value of a specific Interval as double. |
int |
getValueAsInt()
This method returns the absolute value as int. |
int |
getValueAsInt(String aIntervalName)
This method returns the current value of a specific Interval as int. |
long |
getValueAsLong()
This method returns the absolute value as long. |
long |
getValueAsLong(String aIntervalName)
This method returns the current value of a specific Interval as long. |
void |
increase()
This method increases the stored values for all Intervals by one. |
void |
increaseByDouble(double aValue)
This method increases the current values of all registered Intervals by the given double value. |
void |
increaseByInt(int aValue)
This method increases the current values of all registered Intervals by the given int value. |
void |
increaseByLong(long aValue)
This method increases the current values of all registered Intervals by the given long value. |
void |
reset()
This method resets the ValueHolders of all registered Intervals. |
void |
setDefaultValueAsDouble(double aValue)
This method sets the default value that will be the initial value after an Interval was elapsed. |
void |
setDefaultValueAsInt(int aValue)
This method sets the default value that will be the initial value after an Interval was elapsed. |
void |
setDefaultValueAsLong(long aValue)
This method sets the default value that will be the initial value after an Interval was elapsed. |
void |
setValueAsDouble(double aValue)
This method sets the given double value to be the current value of all registered Intervals. |
void |
setValueAsInt(int aValue)
This method sets the given int value to be the current value of all registered Intervals. |
void |
setValueAsLong(long aValue)
This method sets the given long value to be the current value of all registered Intervals. |
void |
setValueIfGreaterThanCurrentAsDouble(double aValue)
This method sets the given double value to be the current value of all registered Intervals depending on the condition "current value < given value". |
void |
setValueIfGreaterThanCurrentAsInt(int aValue)
This method sets the given int value to be the current value of all registered Intervals depending on the condition "current value < given value". |
void |
setValueIfGreaterThanCurrentAsLong(long aValue)
This method sets the given long value to be the current value of all registered Intervals depending on the condition "current value < given value". |
void |
setValueIfLesserThanCurrentAsDouble(double aValue)
This method sets the given double value to be the current value of all registered Intervals depending on the condition "current value > given value". |
void |
setValueIfLesserThanCurrentAsInt(int aValue)
This method sets the given int value to be the current value of all registered Intervals depending on the condition "current value > given value". |
void |
setValueIfLesserThanCurrentAsLong(long aValue)
This method sets the given long value to be the current value of all registered Intervals depending on the condition "current value > given value". |
| Method Detail |
|---|
void addInterval(Interval aInterval)
aInterval - the Interval to addString getName()
void increase()
void decrease()
int getValueAsInt()
long getValueAsLong()
double getValueAsDouble()
int getValueAsInt(String aIntervalName)
aIntervalName - the name of the Interval or null to get the absolute value
long getValueAsLong(String aIntervalName)
aIntervalName - the name of the Interval or null to get the absolute value
double getValueAsDouble(String aIntervalName)
aIntervalName - the name of the Interval or null to get the absolute value
void setValueAsInt(int aValue)
aValue - the new valuevoid setValueAsLong(long aValue)
aValue - the new valuevoid setValueAsDouble(double aValue)
aValue - the new valuevoid increaseByInt(int aValue)
aValue - the value to increment byvoid increaseByLong(long aValue)
aValue - the value to increment byvoid increaseByDouble(double aValue)
aValue - the value to increment byvoid decreaseByInt(int aValue)
aValue - the value to decrement byvoid decreaseByLong(long aValue)
aValue - the value to decrement byvoid decreaseByDouble(double aValue)
aValue - the value to decrement byvoid setDefaultValueAsLong(long aValue)
aValue - the new default valuevoid setDefaultValueAsInt(int aValue)
aValue - the new default valuevoid setDefaultValueAsDouble(double aValue)
aValue - the new default valuevoid reset()
void setValueIfGreaterThanCurrentAsLong(long aValue)
aValue - the new valuevoid setValueIfGreaterThanCurrentAsInt(int aValue)
aValue - the new valuevoid setValueIfGreaterThanCurrentAsDouble(double aValue)
aValue - the new valuevoid setValueIfLesserThanCurrentAsLong(long aValue)
aValue - the new valuevoid setValueIfLesserThanCurrentAsInt(int aValue)
aValue - the new valuevoid setValueIfLesserThanCurrentAsDouble(double aValue)
aValue - the new value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||