|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmuc.core.measurement.Value
public class Value
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 |
---|
public Value(double value, long timestamp)
value
- Measurement Valuetimestamp
- Measurement Timestamppublic Value(double value, long timestamp, State state)
value
- Measurement Valuetimestamp
- Measurement Timestampstate
- Measurement Flag (Default: 0x00 if not specified)Method Detail |
---|
public void setValue(double value)
public double getValue()
public long getTimestamp()
public State getState()
public void setTimestamp(long timestamp)
timestamp
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |