- All Implemented Interfaces:
Serializable,Comparable<TemporalOperatorName>,ControlledVocabulary
@UML(identifier="TemporalOperatorName",
specification=ISO_19143)
public final class TemporalOperatorName
extends CodeList<TemporalOperatorName>
Nature of the temporal operation between two geometries.
Values are based on the 13 temporal relationships identified by Allen (1993),
with the addition of
ANY_INTERACTS.- Since:
- 3.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opengis.util.CodeList
CodeList.Filter -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TemporalOperatorNameOperator evaluates totrueif the first expression is after the second.static final TemporalOperatorNameShortcut operator semantically equivalent to NOT (Before OR Meets OR MetBy OR After).static final TemporalOperatorNameOperator evaluates totrueif the first expression is before the second.static final TemporalOperatorNameOperator evaluates totrueif the first expression begins at the second.static final TemporalOperatorNameOperator evaluates totrueif the first expression begun by the second.static final TemporalOperatorNameOperator evaluates totrueif the first expression is contained by the second.static final TemporalOperatorNameOperator evaluates totrueif the first expression is during the second.static final TemporalOperatorNameOperator evaluates totrueif the first expression is ended by the second.static final TemporalOperatorNameOperator evaluates totrueif the first expression ends at the second.static final TemporalOperatorNameOperator evaluates totrueif the first expression is equal to the second.static final TemporalOperatorNameOperator evaluates totrueif the first expression meets the second.static final TemporalOperatorNameOperator evaluates totrueif the first expression is met by the second.static final TemporalOperatorNameOperator evaluates totrueif the first expression is overlapped by the second.static final TemporalOperatorNameOperator evaluates totrueif the first expression overlaps the second. -
Method Summary
Modifier and TypeMethodDescriptionfamily()Returns the list of codes of the same kind as this code list element.reversed()Returns the operator which produces the same results than this operator when the argument order is reversed.static TemporalOperatorNameReturns the temporal operator that matches the given string, or returns a new one if none match it.static TemporalOperatorName[]values()Returns the list ofTemporalOperatorNames.Methods inherited from class org.opengis.util.CodeList
compareTo, identifier, name, ordinal, readResolve, toString, valueOf, valueOf, valueOf, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opengis.util.ControlledVocabulary
names
-
Field Details
-
AFTER
@UML(identifier="After", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName AFTEROperator evaluates totrueif the first expression is after the second. In pseudo-code:- When comparing two instants:
self > other - When comparing a period with an instant:
self.begin > other - When comparing two periods:
self.begin > other.end
- When comparing two instants:
-
BEFORE
@UML(identifier="Before", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName BEFOREOperator evaluates totrueif the first expression is before the second. In pseudo-code:- When comparing two instants:
self < other - When comparing a period with an instant:
self.end < other - When comparing two periods:
self.end < other.begin
- When comparing two instants:
-
BEGINS
@UML(identifier="Begins", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName BEGINSOperator evaluates totrueif the first expression begins at the second. In pseudo-code:- When comparing two periods:
self.begin = other.beginANDself.end < other.end
- When comparing two periods:
-
BEGUN_BY
@UML(identifier="BegunBy", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName BEGUN_BYOperator evaluates totrueif the first expression begun by the second. In pseudo-code:- When comparing a period with an instant:
self.begin = other - When comparing two periods:
self.begin = other.beginANDself.end > other.end
- When comparing a period with an instant:
-
CONTAINS
@UML(identifier="TContains", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName CONTAINSOperator evaluates totrueif the first expression is contained by the second. In pseudo-code:- When comparing a period with an instant:
self.begin < otherANDself.end > other - When comparing two periods:
self.begin < other.beginANDself.end > other.end
- When comparing a period with an instant:
-
DURING
@UML(identifier="During", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName DURINGOperator evaluates totrueif the first expression is during the second. In pseudo-code:- When comparing two periods:
self.begin > other.beginANDself.end < other.end
- When comparing two periods:
-
EQUALS
@UML(identifier="TEquals", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName EQUALSOperator evaluates totrueif the first expression is equal to the second. In pseudo-code:- When comparing two instants:
self = other - When comparing two periods:
self.begin = other.beginANDself.end = other.end
- When comparing two instants:
-
OVERLAPS
@UML(identifier="TOverlaps", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName OVERLAPSOperator evaluates totrueif the first expression overlaps the second. In pseudo-code:- When comparing two periods:
self.begin < other.beginANDself.end > other.beginANDself.end < other.end
- When comparing two periods:
-
MEETS
@UML(identifier="Meets", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName MEETSOperator evaluates totrueif the first expression meets the second. In pseudo-code:- When comparing two periods:
self.end = other.begin
- When comparing two periods:
-
OVERLAPPED_BY
@UML(identifier="OverlappedBy", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName OVERLAPPED_BYOperator evaluates totrueif the first expression is overlapped by the second. In pseudo-code:- When comparing two periods:
self.begin > other.beginANDself.begin < other.endANDself.end > other.end
- When comparing two periods:
-
MET_BY
@UML(identifier="MetBy", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName MET_BYOperator evaluates totrueif the first expression is met by the second. In pseudo-code:- When comparing two periods:
self.begin = other.end
- When comparing two periods:
-
ENDS
@UML(identifier="Ends", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName ENDSOperator evaluates totrueif the first expression ends at the second. In pseudo-code:- When comparing two periods:
self.begin > other.beginANDself.end = other.end
- When comparing two periods:
-
ENDED_BY
@UML(identifier="EndedBy", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName ENDED_BYOperator evaluates totrueif the first expression is ended by the second. In pseudo-code:- When comparing a period with an instant:
self.end = other - When comparing two periods:
self.begin < other.beginANDself.end = other.end
- When comparing a period with an instant:
-
ANY_INTERACTS
@UML(identifier="AnyInteracts", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName ANY_INTERACTSShortcut operator semantically equivalent to NOT (Before OR Meets OR MetBy OR After). This is applicable to periods only.
-
-
Method Details
-
reversed
Returns the operator which produces the same results than this operator when the argument order is reversed. For example, the reverse ofBEFOREisAFTERand the reverse ofCONTAINSisDURING. The reverse of the reverse (if present) is alwaysthis.- Returns:
- the operator when argument order is reversed.
-
values
Returns the list ofTemporalOperatorNames.- Returns:
- the list of codes declared in the current JVM.
-
family
Returns the list of codes of the same kind as this code list element. Invoking this method is equivalent to invokingvalues(), except that this method can be invoked on an instance of the parentCodeListclass.- Specified by:
familyin interfaceControlledVocabulary- Specified by:
familyin classCodeList<TemporalOperatorName>- Returns:
- all code values for this code list.
-
valueOf
Returns the temporal operator that matches the given string, or returns a new one if none match it. This methods returns the first instance (in declaration order) for which the name is equals, ignoring case, to the given name. If no existing instance is found, then a new one is created for the given name.- Parameters:
code- the name of the code to fetch or to create.- Returns:
- a code matching the given name.
-