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 OmObservation setObservationID​(String observationID)
        Set observation ID.
        Parameters:
        observationID - the observationID to set
        Returns:
        this
      • 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 OmObservation setResultTime​(TimeInstant resultTime)
        Set result time.
        Parameters:
        resultTime - the resultTime to set
        Returns:
        this
      • getValidTime

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public boolean isSetValue()
      • mergeWithObservation

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

        public OmObservation mergeWithObservation​(ObservationValue<?> observationValue)
        Merge this observation with passed observation.
        Parameters:
        observationValue - Observation to merge
        Returns:
        this
      • 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
      • addParameter

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

        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()
      • cloneTemplate

        public OmObservation cloneTemplate​(boolean withIdentifierNameDesription)
      • 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 OmObservation setRelatedObservations​(Collection<OmObservationContext> relatedObservations)
        Set related observations
        Parameters:
        relatedObservations - the relatedObservations to set
        Returns:
        this
      • addRelatedObservations

        public OmObservation addRelatedObservations​(Collection<OmObservationContext> relatedObservations)
        Add related observations
        Parameters:
        relatedObservations - the relatedObservations to set
        Returns:
        this
      • addRelatedObservation

        public OmObservation addRelatedObservation​(OmObservationContext relatedObservation)
        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

        public OmObservation setAdditionalMergeIndicator​(String additionalMergeIndicator)
      • getAdditionalMergeIndicator

        public String getAdditionalMergeIndicator()
      • isSetAdditionalMergeIndicator

        public boolean isSetAdditionalMergeIndicator()
      • checkForMerge

        public boolean checkForMerge​(OmObservation observation)