Class OmObservation

    • Constructor Detail

      • OmObservation

        public OmObservation()
        constructor.
      • OmObservation

        public OmObservation​(String identifier)
        constructor.
        Parameters:
        identifier - Feature identifier
      • OmObservation

        public OmObservation​(CodeWithAuthority identifier)
        constructor.
        Parameters:
        identifier - Feature identifier
      • OmObservation

        public OmObservation​(CodeWithAuthority identifier,
                             String gmlId)
        constructor.
        Parameters:
        identifier - Feature identifier
        gmlId - GML id
    • Method Detail

      • getObservationConstellation

        public OmObservationConstellation 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

        public String getObservationID()
        Get observation ID.
        Returns:
        the observationID
      • setObservationID

        public void setObservationID​(String observationID)
        Set observation ID.
        Parameters:
        observationID - the observationID to set
      • getPhenomenonTime

        public Time getPhenomenonTime()
        Get phenomenon time.
        Returns:
        the phenomenonTime
      • isSetPhenomenonTime

        public boolean isSetPhenomenonTime()
      • getResultTime

        public TimeInstant getResultTime()
        Get result time.
        Returns:
        the resultTime
      • setResultTime

        public void setResultTime​(TimeInstant resultTime)
        Set result time.
        Parameters:
        resultTime - the resultTime to set
      • getValidTime

        public TimePeriod getValidTime()
        Get valid time.
        Returns:
        the validTime
      • setValidTime

        public void setValidTime​(TimePeriod validTime)
        Set valid time.
        Parameters:
        validTime - the validTime to set
      • getResultType

        public String getResultType()
        Get result type.
        Returns:
        the resultType
      • setResultType

        public void setResultType​(String resultType)
        Set result type.
        Parameters:
        resultType - the resultType to set
      • getTokenSeparator

        public String getTokenSeparator()
        Get token separator.
        Returns:
        the tokenSeparator
      • setTokenSeparator

        public void setTokenSeparator​(String tokenSeparator)
        Set token separator.
        Parameters:
        tokenSeparator - the tokenSeparator to set
      • getNoDataValue

        public String getNoDataValue()
        Get noData value.
        Returns:
        the noDataValue
      • setNoDataValue

        public void setNoDataValue​(String noDataValue)
        Set noData value.
        Parameters:
        noDataValue - the noDataValue to set
      • getTupleSeparator

        public String getTupleSeparator()
        Get tuple separator.
        Returns:
        the tupleSeparator
      • setTupleSeparator

        public void setTupleSeparator​(String tupleSeparator)
        Set tuple separator.
        Parameters:
        tupleSeparator - the tupleSeparator to set
      • getDecimalSeparator

        public String getDecimalSeparator()
        Get decimal separator.
        Returns:
        the decimalSeparator
      • setDecimalSeparator

        public void setDecimalSeparator​(String decimalSeparator)
        Set decimal separator.
        Parameters:
        decimalSeparator - the decimalSeparator to set
      • getValue

        public ObservationValue<?> getValue()
        Get observation values.
        Returns:
        the values
      • setValue

        public void setValue​(ObservationValue<?> value)
        Set observation values.
        Parameters:
        value - the values to set
      • isSetValue

        public boolean isSetValue()
      • mergeWithObservation

        public void mergeWithObservation​(OmObservation sosObservation)
        Merge this observation with passed observation.
        Parameters:
        sosObservation - Observation to merge
      • mergeWithObservation

        public void mergeWithObservation​(ObservationValue<?> observationValue)
        Merge this observation with passed observation.
        Parameters:
        observationValue - Observation to merge
      • mergeValues

        protected boolean mergeValues​(ObservationValue<?> observationValue)
        Merge observation values with passed observation values.
        Parameters:
        observationValue - Observation to merge
      • 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

        public Collection<NamedValue<?>> getParameter()
        Get parameter
        Returns:
        the parameter
      • setParameter

        public void setParameter​(Collection<NamedValue<?>> parameter)
        Set parameter
        Parameters:
        parameter - the parameter to set
      • addParameter

        public void addParameter​(NamedValue<?> namedValue)
        Add parameter
        Parameters:
        namedValue - the namedValue to add to parameter
      • 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
      • removeParameter

        public void removeParameter​(NamedValue<?> parameter)
        Remove parameter from list
        Parameters:
        parameter - Parameter to remove
      • 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

        public NamedValue<org.locationtech.jts.geom.Geometry> 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

        public NamedValue<BigDecimal> 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

        public NamedValue<BigDecimal> getDepthParameter()
        Get depth parameter
        Returns:
        Depth parameter
      • isSetHeightDepthParameter

        public boolean isSetHeightDepthParameter()
      • isSetCategoryParameter

        public boolean isSetCategoryParameter()
        Check whether category parameter is set
        Returns:
        true, if category parameter is set
      • removeCategoryParameter

        public void removeCategoryParameter()
        Remove category parameter
      • addCategoryParameter

        public OmObservation addCategoryParameter​(String category)
        Add category to observation
        Parameters:
        category - The category to set
        Returns:
        this
      • getCategoryParameter

        public NamedValue<String> getCategoryParameter()
        Get category parameter
        Returns:
        category parameter
      • cloneTemplate

        public OmObservation cloneTemplate​(boolean withIdentifierNameDesription)
      • setResultQuality

        public OmObservation setResultQuality​(Set<OmResultQuality> qualityList)
        Set result quality.
        Parameters:
        qualityList - Result quality to set
        Returns:
        this
      • getResultQuality

        public Set<OmResultQuality> getResultQuality()
        Get result quality.
        Returns:
        Result quality
      • isSetResultQuality

        public boolean isSetResultQuality()
      • getRelatedObservations

        public Set<OmObservationContext> getRelatedObservations()
        Get related observations
        Returns:
        the relatedObservations
      • setRelatedObservations

        public void setRelatedObservations​(Set<OmObservationContext> relatedObservations)
        Set related observations
        Parameters:
        relatedObservations - the relatedObservations to set
      • addRelatedObservations

        public void addRelatedObservations​(Set<OmObservationContext> relatedObservations)
        Add related observations
        Parameters:
        relatedObservations - the relatedObservations to set
      • addRelatedObservation

        public void addRelatedObservation​(OmObservationContext relatedObservation)
        Add a related observation
        Parameters:
        relatedObservation - the relatedObservation to add
      • isSetRelatedObservations

        public boolean isSetRelatedObservations()
        Check if related observations are set
        Returns:
        true, if related observations are set
      • setAdditionalMergeIndicator

        public OmObservation setAdditionalMergeIndicator​(String additionalMergeIndicator)
      • getAdditionalMergeIndicator

        public String getAdditionalMergeIndicator()
      • isSetAdditionalMergeIndicator

        public boolean isSetAdditionalMergeIndicator()
      • checkForMerge

        public boolean checkForMerge​(OmObservation observation)