org.ow2.clif.analyze.statistics.profiling
Class Datum

java.lang.Object
  extended by org.ow2.clif.analyze.statistics.profiling.Datum
All Implemented Interfaces:
java.lang.Comparable<Datum>
Direct Known Subclasses:
ActionDatum, ProbeDatum

public abstract class Datum
extends java.lang.Object
implements java.lang.Comparable<Datum>

This generic object is comparable to AbstractEvent. This object represents a result of the profiling which is a measurement of the long type.

Author:
Guy Vachet
See Also:
AbstractEvent, ActionDatum, ProbeDatum

Constructor Summary
Datum()
           
 
Method Summary
 int compareTo(Datum obj)
          The order is based on dates.
 long getDate()
           
abstract  long getResult()
           
 void setDate(long date)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Datum

public Datum()
Method Detail

setDate

public void setDate(long date)

getDate

public long getDate()

getResult

public abstract long getResult()

compareTo

public int compareTo(Datum obj)
              throws java.lang.ClassCastException
The order is based on dates. In case of same dates, an arbitrary order is applied based on hashcodes.

Specified by:
compareTo in interface java.lang.Comparable<Datum>
Throws:
java.lang.ClassCastException