|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.util.StatisticsVariable
Represents a named value. A StatisticsVariable may be used to track data in a fashion that will allow the data to be viewed or dumped at any time. Statistics are kept in a pool and are grouped in contexts. Statistics can be dumped as a whole or by context.
Field Summary | |
double |
value
the value of this StatisticsVariable. |
Method Summary | |
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)
Some simple tests for the StatisticsVariable |
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public double value
Method Detail |
public static StatisticsVariable getStatisticsVariable(java.lang.String statName)
statName
- the name of the StatisticsVariable
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |