edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils
Class StatisticValue

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils.StatisticValue

public class StatisticValue
extends java.lang.Object

A StatisticValue is a pair of strings. The first string is the statistic value and the second string is the time at which the value was stored in StatisticStorage.

The time is in the format of h:mm:ss:SSS (i.e. 17:24:55:937) where:

Author:
Maylene Waltz

Field Summary
(package private)  java.text.SimpleDateFormat TIME
          The format for the timestamp.
 
Constructor Summary
StatisticValue(java.lang.String value, java.sql.Timestamp ts)
          Constructor that makes a new statistic value pair with the given value and time in the format of h:mm:ss:SSS (i.e.
 
Method Summary
 java.lang.String getTime()
          Returns the time when this statistic value was stored in StatisticStorage.
 java.lang.String getValue()
          Returns the value of this statistic value pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIME

final java.text.SimpleDateFormat TIME
The format for the timestamp.

Constructor Detail

StatisticValue

public StatisticValue(java.lang.String value,
                      java.sql.Timestamp ts)
Constructor that makes a new statistic value pair with the given value and time in the format of h:mm:ss:SSS (i.e. 17:24:55:937) where:

Parameters:
value - the statistic value
ts - the timestamp of when the value was stored in StatisticStorage
Method Detail

getTime

public java.lang.String getTime()
Returns the time when this statistic value was stored in StatisticStorage.


getValue

public java.lang.String getValue()
Returns the value of this statistic value pair.