A non-decomposed element of temporal object or topology of time.
The two primitives in the temporal dimension are the instant and the period.
- Since:
- 2.3
-
Method Summary
Modifier and TypeMethodDescriptiondefault TemporalOperatorNameDetermines the position of this primitive relative to another temporal primitive.
-
Method Details
-
findRelativePosition
@UML(identifier="TM_Order.relativePosition", obligation=OPTIONAL, specification=ISO_19108) default TemporalOperatorName findRelativePosition(TemporalPrimitive other) Determines the position of this primitive relative to another temporal primitive. The relative position is identified by an operator which evaluates totruewhen the two operands arethisandother.Valid return values
If the two primitives are
Instantinstances, then this method can return one of the following values:before,equalsorafter.If the first primitive is a
Periodand the second primitive is anInstant, then this method can return one of the following values:before,ended by,contains,begun byorafter.If the first primitive is an
Instantand the second primitive is aPeriod, then this method can return one of the following values:before,begins,during,endsorafter.If the two primitives are
Periodinstances, then this method can return any of the 13 values exceptany interacts.Exceptions
This method may throw anIndeterminatePositionExceptionif an input value is indeterminate. ADateTimeExceptioncan also be thrown if the temporal objects used by the primitives do not support the temporal fields that this method can compare.- Parameters:
other- the other primitive for which to determine the relative position.- Returns:
- a temporal operator which is true when evaluated between this primitive and the other primitive.
- Throws:
UnsupportedOperationException- if this operation is not supported.IndeterminatePositionException- if a temporal position is indeterminate.DateTimeException- if the two temporal primitives cannot be compared.- Since:
- 3.1
Departure from OGC/ISO standard for harmonization between different specifications
ISO 19108 defines aTM_RelativePositioncode list which is identical to the ISO 19143TemporalOperatorNamecode list, except that the latter has one more value for "any interacts". GeoAPI uses the latter for avoiding duplication.
-