Package org.n52.shetland.ogc.om.values
Class TVPValue
java.lang.Object
org.n52.shetland.ogc.om.values.TVPValue
- All Implemented Interfaces:
MultiValue<List<TimeValuePair>>,Value<List<TimeValuePair>>
Multi value representing a time value pairs for observations
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<X,E extends Exception>
Xaccept(ValueVisitor<X, E> visitor) addValue(TimeValuePair value) Add time value pair valueaddValues(Collection<TimeValuePair> values) Add time value pair valuesGet the phenomenon time for the multiple valuesgetUnit()Get the unit of measureGet the unit of measure objectgetValue()Get the measurement valuebooleanCheck whether the value is setvoidSet the unit of measureSet the unit of measure objectsetValue(List<TimeValuePair> value) Set the measurment value
-
Constructor Details
-
TVPValue
public TVPValue()
-
-
Method Details
-
setValue
Description copied from interface:ValueSet the measurment value- Specified by:
setValuein interfaceMultiValue<List<TimeValuePair>>- Specified by:
setValuein interfaceValue<List<TimeValuePair>>- Parameters:
value- Value to set
-
getValue
Description copied from interface:ValueGet the measurement value- Specified by:
getValuein interfaceValue<List<TimeValuePair>>- Returns:
- Measurement value
-
addValue
Add time value pair value- Parameters:
value- Time value pair value to add- Returns:
- this
-
addValues
Add time value pair values- Parameters:
values- Time value pair values to add- Returns:
- this
-
setUnit
Description copied from interface:ValueSet the unit of measure- Specified by:
setUnitin interfaceValue<List<TimeValuePair>>- Parameters:
unit- Unit of measure
-
setUnit
Description copied from interface:ValueSet the unit of measure object- Specified by:
setUnitin interfaceValue<List<TimeValuePair>>- Parameters:
unit- Unit of measure
-
getUnit
Description copied from interface:ValueGet the unit of measure- Specified by:
getUnitin interfaceValue<List<TimeValuePair>>- Returns:
- Unit of measure
-
getUnitObject
Description copied from interface:ValueGet the unit of measure object- Specified by:
getUnitObjectin interfaceValue<List<TimeValuePair>>- Returns:
- Unit of measure
-
getPhenomenonTime
Description copied from interface:MultiValueGet the phenomenon time for the multiple values- Specified by:
getPhenomenonTimein interfaceMultiValue<List<TimeValuePair>>- Returns:
- Phenomenon time
-
isSetValue
public boolean isSetValue()Description copied from interface:ValueCheck whether the value is set- Specified by:
isSetValuein interfaceValue<List<TimeValuePair>>- Returns:
true, if value is set
-
accept
- Specified by:
acceptin interfaceValue<List<TimeValuePair>>- Throws:
E
-