public class DetailedTypeAwareStatValueImpl extends TypeAwareStatValueImpl implements DetailedStatValue
TypeAwareStatValueImpl type with some predefined values:
min, max, avg.| Modifier and Type | Field and Description |
|---|---|
protected ValueHolder |
absoluteValue
This attribute holds the absolute value that does not depend on an Interval.
|
protected java.util.Map<java.lang.String,ValueHolder> |
values
This map holds all values by the interval name it is responsible for.
|
| Constructor and Description |
|---|
DetailedTypeAwareStatValueImpl(java.lang.String aName,
StatValueTypes svType,
IValueHolderFactory aFactory) |
| 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.
|
double |
getAvgValueAsDouble() |
double |
getAvgValueAsDouble(java.lang.String aIntervalName) |
int |
getAvgValueAsInt() |
int |
getAvgValueAsInt(java.lang.String aIntervalName) |
long |
getAvgValueAsLong() |
long |
getAvgValueAsLong(java.lang.String aIntervalName) |
java.lang.String |
getAvgValueAsString() |
java.lang.String |
getAvgValueAsString(java.lang.String intervalName) |
double |
getCountValueAsDouble() |
double |
getCountValueAsDouble(java.lang.String aIntervalName) |
int |
getCountValueAsInt() |
int |
getCountValueAsInt(java.lang.String aIntervalName) |
long |
getCountValueAsLong() |
long |
getCountValueAsLong(java.lang.String aIntervalName) |
java.lang.String |
getCountValueAsString() |
java.lang.String |
getCountValueAsString(java.lang.String intervalName) |
double |
getMaxValueAsDouble() |
double |
getMaxValueAsDouble(java.lang.String aIntervalName) |
int |
getMaxValueAsInt() |
int |
getMaxValueAsInt(java.lang.String aIntervalName) |
long |
getMaxValueAsLong() |
long |
getMaxValueAsLong(java.lang.String aIntervalName) |
java.lang.String |
getMaxValueAsString() |
java.lang.String |
getMaxValueAsString(java.lang.String intervalName) |
double |
getMinValueAsDouble() |
double |
getMinValueAsDouble(java.lang.String aIntervalName) |
int |
getMinValueAsInt() |
int |
getMinValueAsInt(java.lang.String aIntervalName) |
long |
getMinValueAsLong() |
long |
getMinValueAsLong(java.lang.String aIntervalName) |
java.lang.String |
getMinValueAsString() |
java.lang.String |
getMinValueAsString(java.lang.String intervalName) |
java.lang.String |
getName()
This method returns the name of this statistic value.
|
double |
getSumValueAsDouble() |
double |
getSumValueAsDouble(java.lang.String aIntervalName) |
int |
getSumValueAsInt() |
int |
getSumValueAsInt(java.lang.String aIntervalName) |
long |
getSumValueAsLong() |
long |
getSumValueAsLong(java.lang.String aIntervalName) |
java.lang.String |
getSumValueAsString() |
java.lang.String |
getSumValueAsString(java.lang.String intervalName) |
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 intervalName) |
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".
|
java.lang.String |
toString() |
getTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTypegetName, getValueAsDouble, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, setDefaultValueAsDouble, setDefaultValueAsInt, setDefaultValueAsLongprotected ValueHolder absoluteValue
protected java.util.Map<java.lang.String,ValueHolder> values
public DetailedTypeAwareStatValueImpl(java.lang.String aName,
StatValueTypes svType,
IValueHolderFactory aFactory)
public void addInterval(Interval aInterval)
StatValueaddInterval in interface StatValueaInterval - the Interval to addpublic void setValueAsInt(int aValue)
StatValuesetValueAsInt in interface StatValueaValue - the new valuepublic void setValueAsLong(long aValue)
StatValuesetValueAsLong in interface StatValueaValue - the new valuepublic void setValueAsDouble(double aValue)
StatValuesetValueAsDouble in interface StatValueaValue - the new valuepublic void setValueAsString(java.lang.String aValue)
StatValuesetValueAsString in interface StatValuepublic void increase()
StatValuepublic void increaseByInt(int aValue)
StatValueincreaseByInt in interface StatValueaValue - the value to increment bypublic void increaseByLong(long aValue)
StatValueincreaseByLong in interface StatValueaValue - the value to increment bypublic void increaseByDouble(double aValue)
StatValueincreaseByDouble in interface StatValueaValue - the value to increment bypublic void decrease()
StatValuepublic void decreaseByInt(int aValue)
StatValuedecreaseByInt in interface StatValueaValue - the value to decrement bypublic void decreaseByLong(long aValue)
StatValuedecreaseByLong in interface StatValueaValue - the value to decrement bypublic void decreaseByDouble(double aValue)
StatValuedecreaseByDouble in interface StatValueaValue - the value to decrement bypublic void setValueIfGreaterThanCurrentAsLong(long aValue)
StatValuesetValueIfGreaterThanCurrentAsLong in interface StatValueaValue - the new valuepublic void setValueIfGreaterThanCurrentAsInt(int aValue)
StatValuesetValueIfGreaterThanCurrentAsInt in interface StatValueaValue - the new valuepublic void setValueIfGreaterThanCurrentAsDouble(double aValue)
StatValuesetValueIfGreaterThanCurrentAsDouble in interface StatValueaValue - the new valuepublic void setValueIfLesserThanCurrentAsLong(long aValue)
StatValuesetValueIfLesserThanCurrentAsLong in interface StatValueaValue - the new valuepublic void setValueIfLesserThanCurrentAsInt(int aValue)
StatValuesetValueIfLesserThanCurrentAsInt in interface StatValueaValue - the new valuepublic void setValueIfLesserThanCurrentAsDouble(double aValue)
StatValuesetValueIfLesserThanCurrentAsDouble in interface StatValueaValue - the new valuepublic void reset()
StatValuepublic void destroy()
StatValuepublic int getMinValueAsInt()
getMinValueAsInt in interface DetailedStatValuepublic long getMinValueAsLong()
getMinValueAsLong in interface DetailedStatValuepublic double getMinValueAsDouble()
getMinValueAsDouble in interface DetailedStatValuepublic int getMinValueAsInt(java.lang.String aIntervalName)
getMinValueAsInt in interface DetailedStatValuepublic long getMinValueAsLong(java.lang.String aIntervalName)
getMinValueAsLong in interface DetailedStatValuepublic double getMinValueAsDouble(java.lang.String aIntervalName)
getMinValueAsDouble in interface DetailedStatValuepublic java.lang.String getMinValueAsString(java.lang.String intervalName)
getMinValueAsString in interface DetailedStatValuepublic java.lang.String getMinValueAsString()
getMinValueAsString in interface DetailedStatValuepublic int getMaxValueAsInt()
getMaxValueAsInt in interface DetailedStatValuepublic long getMaxValueAsLong()
getMaxValueAsLong in interface DetailedStatValuepublic double getMaxValueAsDouble()
getMaxValueAsDouble in interface DetailedStatValuepublic int getMaxValueAsInt(java.lang.String aIntervalName)
getMaxValueAsInt in interface DetailedStatValuepublic long getMaxValueAsLong(java.lang.String aIntervalName)
getMaxValueAsLong in interface DetailedStatValuepublic double getMaxValueAsDouble(java.lang.String aIntervalName)
getMaxValueAsDouble in interface DetailedStatValuepublic java.lang.String getMaxValueAsString(java.lang.String intervalName)
getMaxValueAsString in interface DetailedStatValuepublic java.lang.String getMaxValueAsString()
getMaxValueAsString in interface DetailedStatValuepublic int getSumValueAsInt()
getSumValueAsInt in interface DetailedStatValuepublic long getSumValueAsLong()
getSumValueAsLong in interface DetailedStatValuepublic double getSumValueAsDouble()
getSumValueAsDouble in interface DetailedStatValuepublic int getSumValueAsInt(java.lang.String aIntervalName)
getSumValueAsInt in interface DetailedStatValuepublic long getSumValueAsLong(java.lang.String aIntervalName)
getSumValueAsLong in interface DetailedStatValuepublic double getSumValueAsDouble(java.lang.String aIntervalName)
getSumValueAsDouble in interface DetailedStatValuepublic java.lang.String getSumValueAsString(java.lang.String intervalName)
getSumValueAsString in interface DetailedStatValuepublic java.lang.String getSumValueAsString()
getSumValueAsString in interface DetailedStatValuepublic int getCountValueAsInt()
getCountValueAsInt in interface DetailedStatValuepublic long getCountValueAsLong()
getCountValueAsLong in interface DetailedStatValuepublic double getCountValueAsDouble()
getCountValueAsDouble in interface DetailedStatValuepublic int getCountValueAsInt(java.lang.String aIntervalName)
getCountValueAsInt in interface DetailedStatValuepublic long getCountValueAsLong(java.lang.String aIntervalName)
getCountValueAsLong in interface DetailedStatValuepublic double getCountValueAsDouble(java.lang.String aIntervalName)
getCountValueAsDouble in interface DetailedStatValuepublic java.lang.String getCountValueAsString(java.lang.String intervalName)
getCountValueAsString in interface DetailedStatValuepublic java.lang.String getCountValueAsString()
getCountValueAsString in interface DetailedStatValuepublic int getAvgValueAsInt()
getAvgValueAsInt in interface DetailedStatValuepublic long getAvgValueAsLong()
getAvgValueAsLong in interface DetailedStatValuepublic double getAvgValueAsDouble()
getAvgValueAsDouble in interface DetailedStatValuepublic int getAvgValueAsInt(java.lang.String aIntervalName)
getAvgValueAsInt in interface DetailedStatValuepublic long getAvgValueAsLong(java.lang.String aIntervalName)
getAvgValueAsLong in interface DetailedStatValuepublic double getAvgValueAsDouble(java.lang.String aIntervalName)
getAvgValueAsDouble in interface DetailedStatValuepublic java.lang.String getAvgValueAsString(java.lang.String intervalName)
getAvgValueAsString in interface DetailedStatValuepublic java.lang.String getAvgValueAsString()
getAvgValueAsString in interface DetailedStatValuepublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String getName()
StatValuepublic int getValueAsInt()
StatValuegetValueAsInt in interface StatValuepublic long getValueAsLong()
StatValuegetValueAsLong in interface StatValuepublic double getValueAsDouble()
StatValuegetValueAsDouble in interface StatValuepublic int getValueAsInt(java.lang.String aIntervalName)
StatValuegetValueAsInt in interface StatValueaIntervalName - the name of the Interval or null to get the absolute valuepublic long getValueAsLong(java.lang.String aIntervalName)
StatValuegetValueAsLong in interface StatValueaIntervalName - the name of the Interval or null to get the absolute valuepublic double getValueAsDouble(java.lang.String aIntervalName)
StatValuegetValueAsDouble in interface StatValueaIntervalName - the name of the Interval or null to get the absolute valuepublic void setDefaultValueAsLong(long aValue)
StatValuesetDefaultValueAsLong in interface StatValueaValue - the new default valuepublic void setDefaultValueAsInt(int aValue)
StatValuesetDefaultValueAsInt in interface StatValueaValue - the new default valuepublic void setDefaultValueAsDouble(double aValue)
StatValuesetDefaultValueAsDouble in interface StatValueaValue - the new default valuepublic java.lang.String getValueAsString(java.lang.String intervalName)
getValueAsString in interface StatValuepublic java.lang.String getValueAsString()
getValueAsString in interface StatValueCopyright © 2010-2020 anotheria.net. All Rights Reserved.