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>>
public class TVPValue extends Object implements MultiValue<List<TimeValuePair>>
Multi value representing a time value pairs for observations- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description TVPValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X,E extends Exception>
Xaccept(ValueVisitor<X,E> visitor)TVPValueaddValue(TimeValuePair value)Add time value pair valueTVPValueaddValues(Collection<TimeValuePair> values)Add time value pair valuesTimegetPhenomenonTime()Get the phenomenon time for the multiple valuesStringgetUnit()Get the unit of measureUoMgetUnitObject()Get the unit of measure objectList<TimeValuePair>getValue()Get the measurement valuebooleanisSetValue()Check whether the value is setvoidsetUnit(String unit)Set the unit of measureTVPValuesetUnit(UoM unit)Set the unit of measure objectTVPValuesetValue(List<TimeValuePair> value)Set the measurment value
-
-
-
Method Detail
-
setValue
public TVPValue setValue(List<TimeValuePair> value)
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
public List<TimeValuePair> getValue()
Description copied from interface:ValueGet the measurement value- Specified by:
getValuein interfaceValue<List<TimeValuePair>>- Returns:
- Measurement value
-
addValue
public TVPValue addValue(TimeValuePair value)
Add time value pair value- Parameters:
value- Time value pair value to add- Returns:
- this
-
addValues
public TVPValue addValues(Collection<TimeValuePair> values)
Add time value pair values- Parameters:
values- Time value pair values to add- Returns:
- this
-
setUnit
public void setUnit(String unit)
Description copied from interface:ValueSet the unit of measure- Specified by:
setUnitin interfaceValue<List<TimeValuePair>>- Parameters:
unit- Unit of measure
-
setUnit
public TVPValue setUnit(UoM unit)
Description copied from interface:ValueSet the unit of measure object- Specified by:
setUnitin interfaceValue<List<TimeValuePair>>- Parameters:
unit- Unit of measure
-
getUnit
public String getUnit()
Description copied from interface:ValueGet the unit of measure- Specified by:
getUnitin interfaceValue<List<TimeValuePair>>- Returns:
- Unit of measure
-
getUnitObject
public UoM getUnitObject()
Description copied from interface:ValueGet the unit of measure object- Specified by:
getUnitObjectin interfaceValue<List<TimeValuePair>>- Returns:
- Unit of measure
-
getPhenomenonTime
public Time 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
public <X,E extends Exception> X accept(ValueVisitor<X,E> visitor) throws E extends Exception
- Specified by:
acceptin interfaceValue<List<TimeValuePair>>- Throws:
E extends Exception
-
-