org.openmuc.framework.data
Class Record

java.lang.Object
  extended by org.openmuc.framework.data.Record

public final class Record
extends java.lang.Object

A Record may represent a reading or a database entry. Record is immutable. It contains a value, a timestamp, and a flag. If a record represents a measurement reading then the timestamp is supplied by the communication driver that retrieved the data. If the data record is a processed value (e.g. a mean value that was stored in the database) then the timestamp is supplied by the OpenMUC core.


Constructor Summary
Record(Value value, java.lang.Long timestamp)
           
Record(Value value, java.lang.Long timestamp, Flag flag)
           
 
Method Summary
 Flag getFlag()
           
 java.lang.Long getTimestamp()
           
 Value getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Record

public Record(Value value,
              java.lang.Long timestamp,
              Flag flag)

Record

public Record(Value value,
              java.lang.Long timestamp)
Method Detail

getValue

public Value getValue()

getTimestamp

public java.lang.Long getTimestamp()

getFlag

public Flag getFlag()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object