|
IDebug © 1997-2001 Joseph Kiniry © 2000-2001 KindSoftware © 1997-1999 Caltech All Rights Reserved |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--idebug.Collect
|
+--idebug.SimpleCollect
A default simple core interface to gathering statistics.
Users of IDebug wishing to keep statistics on their system need to
inherit from this abstract class and implement the protected methods.
The simplest means to collect statistics are to use a hashtable keyed on
statistic (since their hashCode is valid) and store
Double objects corresponding to the current value of that
statistic. This class implements this method as an example and for
use.
Note that this class performs no filtering whatsoever. Regardless of the current debug context, etc., this class will keep track of all statistics.
Statistic,
Collect| Constructor Summary | |
SimpleCollect()
Construct a new SimpleCollect class. |
|
| Method Summary | |
java.lang.Object |
clone()
|
double |
currentValue(Statistic statistic)
What is the current value for specific statistic? |
double |
decrement(Statistic statistic)
Decrement a statistic by the default value. |
double |
decrement(Statistic statistic,
double value)
Decrement a statistic by a specified value. |
double |
increment(Statistic statistic)
Increment a statistic by the default value. |
double |
increment(Statistic statistic,
double value)
Increment a statistic by a specified value. |
void |
register(Statistic statistic)
Register a statistic with the collector. |
java.lang.Object |
report(Statistic statistic)
Report on a particular statistic. |
java.lang.Object |
reportAll()
Report on all statistics. |
double |
reset(Statistic statistic)
Reset a statistic to the default start value. |
double |
set(Statistic statistic,
double value)
Set a statistic to a specific value. |
void |
unregister(Statistic statistic)
Unregister a statistic with the collector. |
| Methods inherited from class idebug.Collect |
checkDebugCollectRef, checkStatisticID, isRegistered, isValidCategory, isValidLevel, setDebug |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleCollect()
Construct a new SimpleCollect class.
| Method Detail |
public java.lang.Object clone()
clone in class java.lang.Objectpublic void register(Statistic statistic)
Register a statistic with the collector.
register in class Collectstatistic - the statistic to register.public void unregister(Statistic statistic)
Unregister a statistic with the collector.
unregister in class Collectstatistic - the statistic to unregister.public double currentValue(Statistic statistic)
What is the current value for specific statistic?
currentValue in class Collectstatistic - the statistic being modified.public java.lang.Object report(Statistic statistic)
Report on a particular statistic.
report in class Collectstatistic - the statistic being reported on.String textual report.public java.lang.Object reportAll()
Report on all statistics.
reportAll in class CollectString textual report.report(Statistic)
public double increment(Statistic statistic,
double value)
Increment a statistic by a specified value.
increment in class Collectstatistic - the statistic being modified.value - the amount to increment the statistic.public double increment(Statistic statistic)
Increment a statistic by the default value.
increment in class Collectstatistic - the statistic being modified.
public double decrement(Statistic statistic,
double value)
Decrement a statistic by a specified value.
decrement in class Collectstatistic - the statistic being modified.value - the amount to decrement the statistic.public double decrement(Statistic statistic)
Decrement a statistic by the default value.
decrement in class Collectstatistic - the statistic being modified.public double reset(Statistic statistic)
Reset a statistic to the default start value.
reset in class Collectstatistic - the statistic to reset.
public double set(Statistic statistic,
double value)
Set a statistic to a specific value.
set in class Collectstatistic - the statistic being modified.value - the new value of the statistic.
|
IDebug © 1997-2001 Joseph Kiniry © 2000-2001 KindSoftware © 1997-1999 Caltech All Rights Reserved |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||