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
 String getName()
          Get the name of this stat.
abstract  String getStat()
          Get the current value of this stat as a String.
 void setName(String to)
          Set the name of this stat.
 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 String getName()
Get the name of this stat.


setName

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

Parameters:
to -

toString

public String toString()
getName()=getStat()

Overrides:
toString in class Object

getStat

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



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