public class TVPValue extends Object implements MultiValue<List<TimeValuePair>>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
serial number
|
private String |
unit
Unit of measure
|
private List<TimeValuePair> |
value
Mesurement values
|
Constructor and Description |
---|
TVPValue() |
Modifier and Type | Method and Description |
---|---|
void |
addValue(TimeValuePair value)
Add time value pair value
|
void |
addValues(List<TimeValuePair> values)
Add time value pair values
|
Time |
getPhenomenonTime()
Get the phenomenon time for the multiple values
|
String |
getUnit()
Get the unit of measure
|
List<TimeValuePair> |
getValue()
Get the measurement value
|
boolean |
isSetUnit()
Check whether the unit of measure is set
|
boolean |
isSetValue()
Check whether the value is set
|
void |
setUnit(String unit)
Set the unit of measure
|
void |
setValue(List<TimeValuePair> value)
Set the measurment value
|
private static final long serialVersionUID
private List<TimeValuePair> value
private String unit
public void setValue(List<TimeValuePair> value)
Value
setValue
in interface MultiValue<List<TimeValuePair>>
setValue
in interface Value<List<TimeValuePair>>
value
- Value to setpublic List<TimeValuePair> getValue()
Value
getValue
in interface Value<List<TimeValuePair>>
public void addValue(TimeValuePair value)
value
- Time value pair value to addpublic void addValues(List<TimeValuePair> values)
values
- Time value pair values to addpublic void setUnit(String unit)
Value
setUnit
in interface Value<List<TimeValuePair>>
unit
- Unit of measurepublic String getUnit()
Value
getUnit
in interface Value<List<TimeValuePair>>
public Time getPhenomenonTime()
MultiValue
getPhenomenonTime
in interface MultiValue<List<TimeValuePair>>
public boolean isSetValue()
Value
isSetValue
in interface Value<List<TimeValuePair>>
true
, if value is setpublic boolean isSetUnit()
Value
isSetUnit
in interface Value<List<TimeValuePair>>
true
, if unit of measure is setCopyright © 2012-2015 52north.org. All Rights Reserved.