Package org.n52.shetland.ogc.om
Class OmObservation
java.lang.Object
org.n52.shetland.ogc.gml.AbstractGML
org.n52.shetland.ogc.gml.AbstractFeature
org.n52.shetland.ogc.om.OmObservation
- All Implemented Interfaces:
HasDefaultEncoding<AbstractFeature>,ObservationParameterHelper<OmObservation>
- Direct Known Subclasses:
AbstractInspireObservation
public class OmObservation
extends AbstractFeature
implements ObservationParameterHelper<OmObservation>
Class represents a SOS/O&M observation
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionconstructor.OmObservation(String identifier) constructor.OmObservation(CodeWithAuthority identifier) constructor.OmObservation(CodeWithAuthority identifier, String gmlId) constructor. -
Method Summary
Modifier and TypeMethodDescriptionaddParameter(NamedValue<?> namedValue) Add parameteraddRelatedObservation(OmObservationContext relatedObservation) Add a related observationaddRelatedObservations(Collection<OmObservationContext> relatedObservations) Add related observationsaddResultQuality(Collection<OmResultQuality> qualityList) addResultQuality(OmResultQuality qualityList) addSpatialFilteringProfileParameter(org.locationtech.jts.geom.Geometry samplingGeometry) Add sampling geometry to observationbooleancheckForMerge(OmObservation observation) booleancheckForMerge(OmObservation observation, ObservationMergeIndicator indicator) cloneTemplate(boolean withIdentifierNameDesription) protected OmObservationcloneTemplate(OmObservation clone) convertSingleValueToMultiValue(SingleObservationValue<?> singleValue) ConvertSingleObservationValuetoTVPValue.copyTo(OmObservation copyOf) Get decimal separator.Get depth parametergetGmlId()Get GML idGet height parameterGet noData value.Get the observation constellation.Get observation ID.Collection<NamedValue<?>> Get parameterGet phenomenon time.Get related observationsGet result quality.Get result time.Get result type.NamedValue<org.locationtech.jts.geom.Geometry> Get spatial filtering profile parameterGet token separator.Get tuple separator.Get valid time.getValue()Get observation values.booleanbooleanCheck whether decimal separator is set.booleanCheck whether depth parameter is set.booleanbooleanCheck whether height parameter is setbooleanCheck whether observation id is set.booleanCheck whether parameter is setbooleanbooleanCheck if related observations are setbooleanbooleanCheck whether result time is set.booleanCheck whether result type is set.booleanCheck whether spatial filtering profile parameter is setbooleanCheck whether token separator is set.booleanCheck whether tuple separator is set.booleanCheck whether valid time is set.booleanbooleanCheck whether result time is template is set.protected booleanmergeValues(ObservationValue<?> observationValue) Merge observation values with passed observation values.mergeWithObservation(ObservationValue<?> observationValue) Merge this observation with passed observation.mergeWithObservation(OmObservation sosObservation) Merge this observation with passed observation.voidRemove spatial filtering profile parametersetAdditionalMergeIndicator(String additionalMergeIndicator) setDecimalSeparator(String decimalSeparator) Set decimal separator.setNoDataValue(String noDataValue) Set noData value.setObservationConstellation(OmObservationConstellation observationConstellation) Set the observation constellation.setObservationID(String observationID) Set observation ID.setParameter(Collection<NamedValue<?>> parameter) Set parametersetRelatedObservations(Collection<OmObservationContext> relatedObservations) Set related observationssetResultQuality(Collection<OmResultQuality> qualityList) Set result quality.setResultTime(TimeInstant resultTime) Set result time.setResultType(String resultType) Set result type.setTokenSeparator(String tokenSeparator) Set token separator.setTupleSeparator(String tupleSeparator) Set tuple separator.setValidTime(TimePeriod validTime) Set valid time.setValue(ObservationValue<?> value) Set observation values.Methods inherited from class org.n52.shetland.ogc.gml.AbstractFeature
accept, copyTo, getDefaultElementEncoding, getXml, isEncoded, isSetDefaultElementEncoding, isSetXml, setDefaultElementEncoding, setXml, wasEncodedMethods inherited from class org.n52.shetland.ogc.gml.AbstractGML
addMetaDataProperty, addMetaDataProperty, addName, addName, addName, copyTo, equals, getDescription, getFirstName, getHumanReadableIdentifier, getHumanReadableIdentifierCodeWithAuthority, getIdentifier, getIdentifierCodeWithAuthority, getMetaDataProperty, getName, getOriginalIdentifier, getOriginalIdentifierCodeWithAuthority, hashCode, isReferenced, isSetDescription, isSetGmlID, isSetHumanReadableIdentifier, isSetIdentifier, isSetMetaDataProperty, isSetName, isSetOriginalIdentifier, setDescription, setGmlId, setHumanReadableIdentifier, setHumanReadableIdentifier, setHumanReadableIdentifierAsIdentifier, setIdentifier, setIdentifier, setMetaDataProperty, setName, setNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.shetland.ogc.om.ObservationParameterHelper
addCategoryParameter, addCategoryParameter, addCategoryParameter, addPlatformParameter, addPlatformParameter, addPlatformParameter, getCategoryParameter, getPlatformParameter, isSetCategoryParameter, isSetPlatformParameter, removeCategoryParameter, removeParameter, removePlatformParameter
-
Constructor Details
-
OmObservation
public OmObservation()constructor. -
OmObservation
constructor.- Parameters:
identifier- Feature identifier
-
OmObservation
constructor.- Parameters:
identifier- Feature identifier
-
OmObservation
constructor.- Parameters:
identifier- Feature identifiergmlId- GML id
-
-
Method Details
-
getObservationConstellation
Get the observation constellation.- Returns:
- the observationConstellation
-
setObservationConstellation
public OmObservation setObservationConstellation(OmObservationConstellation observationConstellation) Set the observation constellation.- Parameters:
observationConstellation- the observationConstellation to set
-
getObservationID
Get observation ID.- Returns:
- the observationID
-
setObservationID
Set observation ID.- Parameters:
observationID- the observationID to set- Returns:
- this
-
getPhenomenonTime
Get phenomenon time.- Returns:
- the phenomenonTime
-
isSetPhenomenonTime
public boolean isSetPhenomenonTime() -
getResultTime
Get result time.- Returns:
- the resultTime
-
setResultTime
Set result time.- Parameters:
resultTime- the resultTime to set- Returns:
- this
-
getValidTime
Get valid time.- Returns:
- the validTime
-
setValidTime
Set valid time.- Parameters:
validTime- the validTime to set- Returns:
- this
-
getResultType
Get result type.- Returns:
- the resultType
-
setResultType
Set result type.- Parameters:
resultType- the resultType to set- Returns:
- this
-
getTokenSeparator
Get token separator.- Returns:
- the tokenSeparator
-
setTokenSeparator
Set token separator.- Parameters:
tokenSeparator- the tokenSeparator to set- Returns:
- this
-
getNoDataValue
Get noData value.- Returns:
- the noDataValue
-
setNoDataValue
Set noData value.- Parameters:
noDataValue- the noDataValue to set- Returns:
- this
-
getTupleSeparator
Get tuple separator.- Returns:
- the tupleSeparator
-
setTupleSeparator
Set tuple separator.- Parameters:
tupleSeparator- the tupleSeparator to set- Returns:
- this
-
getDecimalSeparator
Get decimal separator.- Returns:
- the decimalSeparator
-
setDecimalSeparator
Set decimal separator.- Parameters:
decimalSeparator- the decimalSeparator to set- Returns:
- this
-
getValue
Get observation values.- Returns:
- the values
-
setValue
Set observation values.- Parameters:
value- the values to set- Returns:
- this
-
isSetValue
public boolean isSetValue() -
mergeWithObservation
Merge this observation with passed observation.- Parameters:
sosObservation- Observation to merge- Returns:
- this
-
mergeWithObservation
Merge this observation with passed observation.- Parameters:
observationValue- Observation to merge- Returns:
- this
-
mergeValues
Merge observation values with passed observation values.- Parameters:
observationValue- Observation to merge
-
convertSingleValueToMultiValue
ConvertSingleObservationValuetoTVPValue.- Parameters:
singleValue- Single observation value- Returns:
- Converted TVPValue value
-
isSetObservationID
public boolean isSetObservationID()Check whether observation id is set.- Returns:
true, if observation id is set
-
isSetTupleSeparator
public boolean isSetTupleSeparator()Check whether tuple separator is set.- Returns:
true, if tuple separator is set
-
isSetTokenSeparator
public boolean isSetTokenSeparator()Check whether token separator is set.- Returns:
true, if token separator is set
-
isSetDecimalSeparator
public boolean isSetDecimalSeparator()Check whether decimal separator is set.- Returns:
true, if decimal separator is set
-
isSetResultTime
public boolean isSetResultTime()Check whether result time is set.- Returns:
true, if result time is set
-
isTemplateResultTime
public boolean isTemplateResultTime()Check whether result time is template is set.- Returns:
true, if result time is template is set
-
isSetResultType
public boolean isSetResultType()Check whether result type is set.- Returns:
true, if result type is set
-
isSetValidTime
public boolean isSetValidTime()Check whether valid time is set.- Returns:
true, if valid time is set
-
getParameter
Get parameter- Returns:
- the parameter
-
setParameter
Set parameter- Parameters:
parameter- the parameter to set- Returns:
- this
-
addParameter
Add parameter- Parameters:
namedValue- the namedValue to add to parameter- Returns:
- this
-
getParameterHolder
- Specified by:
getParameterHolderin interfaceObservationParameterHelper<OmObservation>
-
isSetParameter
public boolean isSetParameter()Check whether parameter is set- Returns:
true, if parameter is set
-
isSetSpatialFilteringProfileParameter
public boolean isSetSpatialFilteringProfileParameter()Check whether spatial filtering profile parameter is set- Returns:
true, if spatial filtering profile parameter is set
-
removeSpatialFilteringProfileParameter
public void removeSpatialFilteringProfileParameter()Remove spatial filtering profile parameter -
addSpatialFilteringProfileParameter
public OmObservation addSpatialFilteringProfileParameter(org.locationtech.jts.geom.Geometry samplingGeometry) Add sampling geometry to observation- Parameters:
samplingGeometry- The sampling geometry to set- Returns:
- this
-
getSpatialFilteringProfileParameter
Get spatial filtering profile parameter- Returns:
- Spatial filtering profile parameter
-
isSetHeightParameter
public boolean isSetHeightParameter()Check whether height parameter is set- Returns:
true, if height parameter is set
-
getHeightParameter
Get height parameter- Returns:
- Height parameter
-
isSetDepthParameter
public boolean isSetDepthParameter()Check whether depth parameter is set.- Returns:
true, if depth parameter is set
-
getDepthParameter
Get depth parameter- Returns:
- Depth parameter
-
isSetHeightDepthParameter
public boolean isSetHeightDepthParameter() -
getHeightDepthParameter
-
cloneTemplate
-
cloneTemplate
-
cloneTemplate
-
copyTo
-
getGmlId
Description copied from class:AbstractGMLGet GML id- Overrides:
getGmlIdin classAbstractGML- Returns:
- GML id
-
setResultQuality
Set result quality.- Parameters:
qualityList- Result quality to set- Returns:
this
-
addResultQuality
-
addResultQuality
-
getResultQuality
Get result quality.- Returns:
- Result quality
-
isSetResultQuality
public boolean isSetResultQuality() -
getRelatedObservations
Get related observations- Returns:
- the relatedObservations
-
setRelatedObservations
Set related observations- Parameters:
relatedObservations- the relatedObservations to set- Returns:
- this
-
addRelatedObservations
Add related observations- Parameters:
relatedObservations- the relatedObservations to set- Returns:
- this
-
addRelatedObservation
Add a related observation- Parameters:
relatedObservation- the relatedObservation to add- Returns:
- this
-
isSetRelatedObservations
public boolean isSetRelatedObservations()Check if related observations are set- Returns:
true, if related observations are set
-
setAdditionalMergeIndicator
-
getAdditionalMergeIndicator
-
isSetAdditionalMergeIndicator
public boolean isSetAdditionalMergeIndicator() -
checkForMerge
-
checkForMerge
-