org.jdesktop.wonderland.client.cell
Class CellStatistics.CellStat

java.lang.Object
  extended by org.jdesktop.wonderland.client.cell.CellStatistics.CellStat
Direct Known Subclasses:
CellStatistics.LongCellStat, CellStatistics.StringCellStat
Enclosing class:
CellStatistics

public abstract static class CellStatistics.CellStat
extends java.lang.Object

The base class for cell statistics. Each statistic has a unique ID, as well as a description and value.


Constructor Summary
protected CellStatistics.CellStat(java.lang.String id, java.lang.String desc)
          Create a new statistic with the given id and description
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          Get the description of this statistic
 java.lang.String getId()
          Return the id of this statistic
abstract  java.lang.String getValue()
          Get the value of this statistic.
 int hashCode()
           
 void setDescription(java.lang.String description)
          Set the description of this statistic
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellStatistics.CellStat

protected CellStatistics.CellStat(java.lang.String id,
                                  java.lang.String desc)
Create a new statistic with the given id and description

Parameters:
id - the id of this statistic
desc - the description of this statistic
Method Detail

getId

public java.lang.String getId()
Return the id of this statistic

Returns:
the id of this statistic

getDescription

public java.lang.String getDescription()
Get the description of this statistic

Returns:
the description of this statistic

setDescription

public void setDescription(java.lang.String description)
Set the description of this statistic

Parameters:
description - the description of this statistic

getValue

public abstract java.lang.String getValue()
Get the value of this statistic. Subclasses must override this method to return a reasonable string representation of the statistic.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Open Wonderland - http://openwonderland.org