public class StatisticsVariable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
value
the value of this StatisticsVariable.
|
Modifier and Type | Method and Description |
---|---|
void |
dump()
Dumps this StatisticsVariable.
|
static void |
dumpAll()
Dump all of the StatisticsVariable in the given context
|
java.lang.String |
getName()
Retrieves the name of this StatisticsVariable
|
static StatisticsVariable |
getStatisticsVariable(java.lang.String statName)
Gets the StatisticsVariable with the given name from the given context.
|
static StatisticsVariable |
getStatisticsVariable(java.lang.String instanceName,
java.lang.String statName)
Gets the StatisticsVariable with the given name for the given instance and context.
|
double |
getValue()
Retrieves the value for this StatisticsVariable
|
boolean |
isEnabled()
Determines if this StatisticsVariable is enabled
|
static void |
main(java.lang.String[] args) |
void |
reset()
Resets this StatisticsVariable.
|
static void |
resetAll()
Resets all of the StatisticsVariables in the given context
|
void |
setEnabled(boolean enabled)
Sets the enabled state of this StatisticsVariable
|
void |
setValue(double value)
Sets the value for this StatisticsVariable
|
public double value
public static StatisticsVariable getStatisticsVariable(java.lang.String statName)
statName
- the name of the StatisticsVariablepublic static StatisticsVariable getStatisticsVariable(java.lang.String instanceName, java.lang.String statName)
instanceName
- the instance name of creatorstatName
- the name of the StatisticsVariablepublic static void dumpAll()
public static void resetAll()
public java.lang.String getName()
public double getValue()
public void setValue(double value)
value
- the new valuepublic void reset()
public void dump()
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- the new enabled statepublic static void main(java.lang.String[] args)