|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--juju.reattore.util.BaseStat
Base implementation of a statistic module.
Constructor Summary | |
BaseStat(java.lang.Class clazz,
java.lang.String leaf)
Create a new statistic for the given class and leaf name. |
Method Summary | |
java.lang.String |
format()
Summarise this statistic as a string. |
protected abstract java.lang.String |
getDefaultFormat()
Returns the default format string to use. |
protected abstract java.lang.Object[] |
getFormatArgs()
Returns the argument list used in formatting the summary. |
java.lang.String |
getName()
Returns the fully qualified name of this stat. |
void |
setFormat(java.lang.String fmt)
Sets the format used in summarising this stat. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BaseStat(java.lang.Class clazz, java.lang.String leaf)
clazz
- The class name, used as the stat base name.leaf
- The name of the stat within this class.Method Detail |
protected abstract java.lang.String getDefaultFormat()
protected abstract java.lang.Object[] getFormatArgs()
public java.lang.String getName()
getName
in interface Stat
public void setFormat(java.lang.String fmt)
setFormat
in interface Stat
fmt
- The format in MessageFormat style.public java.lang.String format()
format
in interface Stat
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |