net.siefkes.nlstego.predict
Class Metrics

java.lang.Object
  extended by net.siefkes.nlstego.predict.Metrics

public abstract class Metrics
extends Object

Implementations of this abstract class handle performance measuring and logging. All instances of subclasses are registered and their status is printed in regular intervals. To support this, each subclass must provide appropriate printMetrics and printCommon methods. Other methods of subclasses should call checkPublication to ensure that publication takes place as scheduled.

Created (02.01.2002 16:00:47).

Version:
$Revision: 1.7 $, $Date: 2005/07/12 17:02:17 $, $Author: siefkes $
Author:
Christian Siefkes

Field Summary
protected static int MORE_DIGITS
          The number of digits used for formatting potentially small data, where more digits than usually should be shown.
 
Method Summary
static StringBuilder collectResults()
          Collects the results of all metrics for publication.
protected static Configuration getConfig()
          A standard get*().
static void reset()
          Removes all registered instances and resets all static fields (so their results will not be collected and published any more).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MORE_DIGITS

protected static final int MORE_DIGITS
The number of digits used for formatting potentially small data, where more digits than usually should be shown.

Created (21.01.2002 14:57:57) by Christian Siefkes.

See Also:
Constant Field Values
Method Detail

collectResults

public static StringBuilder collectResults()
Collects the results of all metrics for publication.

Created (15.01.2002 12:36:23) by Christian Siefkes.

Returns:
the results of all metrics

getConfig

protected static Configuration getConfig()
A standard get*().

Created (17.01.2002 14:38:36) by Christian Siefkes.

Returns:
the value of the attribute

reset

public static void reset()
Removes all registered instances and resets all static fields (so their results will not be collected and published any more).

Created (05.02.2002 12:28:56) by Christian Siefkes.



Copyright © 2003-2005 Christian Siefkes. All Rights Reserved.