public interface StatValue
Interval| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
destroy()
Called when the owner stats object is removed from the system.
|
java.lang.String |
getName()
This method returns the name of this statistic value.
|
double |
getValueAsDouble()
This method returns the absolute value as double.
|
double |
getValueAsDouble(java.lang.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(java.lang.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(java.lang.String aIntervalName)
This method returns the current value of a specific Interval as long.
|
java.lang.String |
getValueAsString() |
java.lang.String |
getValueAsString(java.lang.String anIntervalName) |
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 |
setValueAsString(java.lang.String aValue)
Sets the value as String.
|
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".
|
void addInterval(Interval aInterval)
aInterval - the Interval to addjava.lang.String getName()
void increase()
void decrease()
int getValueAsInt()
long getValueAsLong()
double getValueAsDouble()
int getValueAsInt(java.lang.String aIntervalName)
aIntervalName - the name of the Interval or null to get the absolute valuelong getValueAsLong(java.lang.String aIntervalName)
aIntervalName - the name of the Interval or null to get the absolute valuedouble getValueAsDouble(java.lang.String aIntervalName)
aIntervalName - the name of the Interval or null to get the absolute valuevoid 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 valuevoid setValueAsString(java.lang.String aValue)
aValue - java.lang.String getValueAsString()
java.lang.String getValueAsString(java.lang.String anIntervalName)
void destroy()
Copyright © 2010-2020 anotheria.net. All Rights Reserved.