juju.reattore.util
Interface Stat

All Known Implementing Classes:
BaseStat

public interface Stat

Base interface for all statistic modules.


Method Summary
 java.lang.String format()
          Summarises this statistic in a user readable way.
 java.lang.String getName()
          Returns the name of this statistic, which is of the format foo.bar.leaf.
 void setFormat(java.lang.String fmt)
          Sets the format string used for later calls to 'format'.
 

Method Detail

getName

public java.lang.String getName()
Returns the name of this statistic, which is of the format foo.bar.leaf.

Returns:
The name of this statistic.

setFormat

public void setFormat(java.lang.String fmt)
Sets the format string used for later calls to 'format'. Must be of the java MessageFormat style. Arg 0 is the name, the rest are implementation defined.

Parameters:
fmt - The format string to use.

format

public java.lang.String format()
Summarises this statistic in a user readable way. Used more for testing.

Returns:
A summary of this statistic.


Copyright © 2002-2003 Michael Hope. All Rights Reserved.