Class ObservationMergeIndicator

java.lang.Object
org.n52.shetland.ogc.om.ObservationMergeIndicator

public class ObservationMergeIndicator extends Object
An indicator for which parameters of two observations have to be equal to be able to merge them.
  • Constructor Details

    • ObservationMergeIndicator

      public ObservationMergeIndicator()
      Creates a new ObservationMergeIndicator that requires no parameters to be equal.
  • Method Details

    • withProcedure

      public ObservationMergeIndicator withProcedure()
      Sets that the procedure should be equal to merge two observations.
      Returns:
      this
    • withObservableProperty

      public ObservationMergeIndicator withObservableProperty()
      Sets that the observable property should be equal to merge two observations.
      Returns:
      this
    • withFeatureOfInterest

      public ObservationMergeIndicator withFeatureOfInterest()
      Sets that the feature of interest should be equal to merge two observations.
      Returns:
      this
    • withOffering

      public ObservationMergeIndicator withOffering()
      Sets that the offering should be equal to merge two observations.
      Returns:
      this
    • withPhenomenonTime

      public ObservationMergeIndicator withPhenomenonTime()
      Sets that the phenomenon time should be equal to merge two observations.
      Returns:
      this
    • withResultTime

      public ObservationMergeIndicator withResultTime()
      Sets that the result time should be equal to merge two observations.
      Returns:
      this
    • withSamplingGeometry

      public ObservationMergeIndicator withSamplingGeometry()
      Sets that the sampling geometry should be equal to merge two observations.
      Returns:
      this
    • withObservationType

      public ObservationMergeIndicator withObservationType()
      Sets that the observation type should be checked to merge two observations.
      Returns:
      this
    • withoutProcedure

      public ObservationMergeIndicator withoutProcedure()
      Sets that the procedure does not need to be equal to merge two observations.
      Returns:
      this
    • withoutObservableProperty

      public ObservationMergeIndicator withoutObservableProperty()
      Sets that the observable property does not need to be equal to merge two observations.
      Returns:
      this
    • withoutFeatureOfInterest

      public ObservationMergeIndicator withoutFeatureOfInterest()
      Sets that the feature of interest does not need to be equal to merge two observations.
      Returns:
      this
    • withoutOffering

      public ObservationMergeIndicator withoutOffering()
      Sets that the offering does not need to be equal to merge two observations.
      Returns:
      this
    • withoutPhenomenonTime

      public ObservationMergeIndicator withoutPhenomenonTime()
      Sets that the phenomenon time does not need to be equal to merge two observations.
      Returns:
      this
    • withoutResultTime

      public ObservationMergeIndicator withoutResultTime()
      Sets that the result time does not need to be equal to merge two observations.
      Returns:
      this
    • withoutSamplingGeometry

      public ObservationMergeIndicator withoutSamplingGeometry()
      Sets that the sampling geometry does not need to be equal to merge two observations.
      Returns:
      this
    • withoutObservationType

      public ObservationMergeIndicator withoutObservationType()
      Sets that the observation type does not need to be checked to merge two observations.
      Returns:
      this
    • isProcedure

      public boolean isProcedure()
      Checks if the procedure should be equal to merge two observations.
      Returns:
      if the procedure should be equal
    • isObservableProperty

      public boolean isObservableProperty()
      Checks if the observable property should be equal to merge two observations.
      Returns:
      if the observable property should be equal
    • isFeatureOfInterest

      public boolean isFeatureOfInterest()
      Checks if the feature of interest should be equal to merge two observations.
      Returns:
      if the feature of interest should be equal
    • isOfferings

      public boolean isOfferings()
      Checks if the offering should be equal to merge two observations.
      Returns:
      if the offering should be equal
    • isPhenomenonTime

      public boolean isPhenomenonTime()
      Checks if the phenomenon time should be equal to merge two observations.
      Returns:
      if the phenomenon time should be equal
    • isSetResultTime

      public boolean isSetResultTime()
      Checks if the result time should be equal to merge two observations.
      Returns:
      if the result time should be equal
    • isSamplingGeometry

      public boolean isSamplingGeometry()
      Checks if the sampling geometry should be equal to merge two observations.
      Returns:
      if the sampling geometry should be equal
    • isObservationType

      public boolean isObservationType()
      Checks if the observation type should be checked to merge two observations.
      Returns:
      if the observation type should be checked
    • isSameObservationConstellation

      public boolean isSameObservationConstellation()
      Checks if the observation constellation (procedure, observable property, feature of interest and offering) should be equal to merge two observations.
      Returns:
      if the observation constellation should be equal
    • setProcedure

      public ObservationMergeIndicator setProcedure(boolean procedure)
      Sets whether the procedure should be to merge two observations.
      Parameters:
      procedure - if the procedure should be equal
      Returns:
      this
    • setObservableProperty

      public ObservationMergeIndicator setObservableProperty(boolean observableProperty)
      Sets whether the observable property should be to merge two observations.
      Parameters:
      observableProperty - if the observable property should be equal
      Returns:
      this
    • setFeatureOfInterest

      public ObservationMergeIndicator setFeatureOfInterest(boolean featureOfInterest)
      Sets whether the feature of interest should be to merge two observations.
      Parameters:
      featureOfInterest - if the feature of interest should be equal
      Returns:
      this
    • setOfferings

      public ObservationMergeIndicator setOfferings(boolean offerings)
      Sets whether the offering should be to merge two observations.
      Parameters:
      offerings - if the offerings should be equal
      Returns:
      this
    • setPhenomenonTime

      public ObservationMergeIndicator setPhenomenonTime(boolean phenomenonTime)
      Sets whether the phenomenon time should be to merge two observations.
      Parameters:
      phenomenonTime - if the phenomenon time should be equal
      Returns:
      this
    • setResultTime

      public ObservationMergeIndicator setResultTime(boolean resultTime)
      Sets whether the result time should be to merge two observations.
      Parameters:
      resultTime - if the result time should be equal
      Returns:
      this
    • setSamplingGeometry

      public ObservationMergeIndicator setSamplingGeometry(boolean samplingGeometry)
      Sets whether the sampling geometry should be to merge two observations.
      Parameters:
      samplingGeometry - if the sampling geometry should be equal
      Returns:
      this
    • setObservationType

      public ObservationMergeIndicator setObservationType(boolean observationType)
      Sets whether the observation type should be checked to merge two observations.
      Parameters:
      observationType - if the observation type should be checked
      Returns:
      this
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • sameObservationConstellation

      public static ObservationMergeIndicator sameObservationConstellation()
      Gets an indicator that requires the observation constellations (procedure, observable property, feature of interest and offering) to be the same.
      Returns:
      the indicator