nups
Class CleanSample

java.lang.Object
  |
  +--nups.CleanSample

public class CleanSample
extends java.lang.Object

Sample with minut precision time


Field Summary
(package private)  java.util.GregorianCalendar datum
           
(package private)  int factor
           
(package private)  int value
           
 
Constructor Summary
CleanSample(java.sql.Timestamp time, int value)
           
 
Method Summary
 boolean compareTo(java.sql.Timestamp time)
          Check if sample time is equal to the minute to given timestamp
 java.util.GregorianCalendar getDate()
          return date as GregorianCalendar
 int getFactor()
           
 int getValue()
           
 void increaseFactor()
          If cleansample is update with sample within same minute Update factor to be capable of calculating average
 void setValue(int value)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datum

java.util.GregorianCalendar datum

value

int value

factor

int factor
Constructor Detail

CleanSample

public CleanSample(java.sql.Timestamp time,
                   int value)
Method Detail

getValue

public int getValue()

setValue

public void setValue(int value)

getFactor

public int getFactor()

increaseFactor

public void increaseFactor()
If cleansample is update with sample within same minute Update factor to be capable of calculating average

getDate

public java.util.GregorianCalendar getDate()
return date as GregorianCalendar

compareTo

public boolean compareTo(java.sql.Timestamp time)
Check if sample time is equal to the minute to given timestamp
Parameters:
time - Timestamp to compare to sample time