org.openmuc.core.measurement
Class Value

java.lang.Object
  extended by org.openmuc.core.measurement.Value

public class Value
extends java.lang.Object

Class representing a single metered value.
Value contains value : timestamp : flag


Constructor Summary
Value(double value, long timestamp)
          Creates a new Value Object with:
Value(double value, long timestamp, State state)
          Creates a new Value Object with:
 
Method Summary
 State getState()
           
 long getTimestamp()
           
 double getValue()
           
 void setTimestamp(long timestamp)
          Sets the point of measurement.
 void setValue(double value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Value

public Value(double value,
             long timestamp)
Creates a new Value Object with:

Parameters:
value - Measurement Value
timestamp - Measurement Timestamp

Value

public Value(double value,
             long timestamp,
             State state)
Creates a new Value Object with:

Parameters:
value - Measurement Value
timestamp - Measurement Timestamp
state - Measurement Flag (Default: 0x00 if not specified)
Method Detail

setValue

public void setValue(double value)

getValue

public double getValue()
Returns:
metered value

getTimestamp

public long getTimestamp()
Returns:
timestamp from metered value

getState

public State getState()
Returns:
flag from metered value

setTimestamp

public void setTimestamp(long timestamp)
Sets the point of measurement.

Parameters:
timestamp -