Interface TemporalOperator<R>

Type Parameters:
R - the type of resources (e.g. Feature) to filter.
All Superinterfaces:
Filter<R>, Predicate<R>

@UML(identifier="TemporalOperator", specification=ISO_19143) public interface TemporalOperator<R> extends Filter<R>
Operator that determines whether its time arguments satisfy the stated spatial relationship. The operator evaluates to true if the spatial relationship is satisfied. Otherwise, the operator evaluates to false. The nature of the comparison is dependent on the operator type.

Exceptions

If any input value of TemporalPosition is indeterminate, an exception shall be raised.
Since:
3.1
  • Method Details

    • getOperatorType

      TemporalOperatorName getOperatorType()
      Returns the nature of the operator.
      Specified by:
      getOperatorType in interface Filter<R>
      Returns:
      the nature of the operator.
    • getExpressions

      @UML(identifier="operand1, operand2", obligation=MANDATORY, specification=ISO_19143) List<Expression<? super R,?>> getExpressions()
      Returns the two expressions to be evaluated by this operator. The list content is as below:
      1. The first expression should be a ValueReference evaluating to a temporal object.
      2. The second expression should be a ValueReference or a literal evaluating to a temporal object.
      Specified by:
      getExpressions in interface Filter<R>
      Returns:
      a list of size 2 containing the two expressions to be evaluated.
      Departure from OGC/ISO abstract specification:
      Departure due to constraint of the Java language ISO 19143 uses two properties, named operand1 and operand2, of type ValueReference and TemporalOperand respectively. The later is an union of TM_Object and ValueReference, which has no direct equivalence in Java. The union purpose is replaced by documentation in this method. The two values are put in a list for retrofitting in Filter#getExpressions().