net.spy.stat
Class Stat

java.lang.Object
  extended by net.spy.SpyObject
      extended by net.spy.stat.Stat
Direct Known Subclasses:
ComputingStat, CounterStat

public abstract class Stat
extends SpyObject

Base class for all stats.


Constructor Summary
Stat()
          Get an instance of Stat.
 
Method Summary
 java.lang.String getName()
          Get the name of this stat.
abstract  java.lang.String getStat()
          Get the current value of this stat as a String.
 void setName(java.lang.String to)
          Set the name of this stat.
 java.lang.String toString()
          getName()=getStat()
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stat

public Stat()
Get an instance of Stat.

Method Detail

getName

public java.lang.String getName()
Get the name of this stat.


setName

public void setName(java.lang.String to)
Set the name of this stat.

Parameters:
to -

toString

public java.lang.String toString()
getName()=getStat()

Overrides:
toString in class java.lang.Object

getStat

public abstract java.lang.String getStat()
Get the current value of this stat as a String.



Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.