- 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
Modifier and TypeFieldDescriptionstatic final TemporalOperatorName
Operator evaluates totrue
if the first expression is after the second.static final TemporalOperatorName
Shortcut operator semantically equivalent to NOT (Before OR Meets OR MetBy OR After).static final TemporalOperatorName
Operator evaluates totrue
if the first expression is before the second.static final TemporalOperatorName
Operator evaluates totrue
if the first expression begins at the second.static final TemporalOperatorName
Operator evaluates totrue
if the first expression begun by the second.static final TemporalOperatorName
Operator evaluates totrue
if the first expression is contained by the second.static final TemporalOperatorName
Operator evaluates totrue
if the first expression is during the second.static final TemporalOperatorName
Operator evaluates totrue
if the first expression is ended by the second.static final TemporalOperatorName
Operator evaluates totrue
if the first expression ends at the second.static final TemporalOperatorName
Operator evaluates totrue
if the first expression is equal to the second.static final TemporalOperatorName
Operator evaluates totrue
if the first expression meets the second.static final TemporalOperatorName
Operator evaluates totrue
if the first expression is met by the second.static final TemporalOperatorName
Operator evaluates totrue
if the first expression is overlapped by the second.static final TemporalOperatorName
Operator evaluates totrue
if 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 TemporalOperatorName
Returns the temporal operator that matches the given string, or returns a new one if none match it.static TemporalOperatorName[]
values()
Returns the list ofTemporalOperatorName
s.Methods inherited from class org.opengis.util.CodeList
compareTo, identifier, name, ordinal, readResolve, toString, valueOf, valueOf, valueOf, values
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 totrue
if 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 totrue
if 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 totrue
if the first expression begins at the second. In pseudo-code:- When comparing two periods:
self.begin = other.begin
ANDself.end < other.end
- When comparing two periods:
-
BEGUN_BY
@UML(identifier="BegunBy", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName BEGUN_BYOperator evaluates totrue
if 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.begin
ANDself.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 totrue
if the first expression is contained by the second. In pseudo-code:- When comparing a period with an instant:
self.begin < other
ANDself.end > other
- When comparing two periods:
self.begin < other.begin
ANDself.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 totrue
if the first expression is during the second. In pseudo-code:- When comparing two periods:
self.begin > other.begin
ANDself.end < other.end
- When comparing two periods:
-
EQUALS
@UML(identifier="TEquals", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName EQUALSOperator evaluates totrue
if the first expression is equal to the second. In pseudo-code:- When comparing two instants:
self = other
- When comparing two periods:
self.begin = other.begin
ANDself.end = other.end
- When comparing two instants:
-
OVERLAPS
@UML(identifier="TOverlaps", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName OVERLAPSOperator evaluates totrue
if the first expression overlaps the second. In pseudo-code:- When comparing two periods:
self.begin < other.begin
ANDself.end > other.begin
ANDself.end < other.end
- When comparing two periods:
-
MEETS
@UML(identifier="Meets", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName MEETSOperator evaluates totrue
if 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 totrue
if the first expression is overlapped by the second. In pseudo-code:- When comparing two periods:
self.begin > other.begin
ANDself.begin < other.end
ANDself.end > other.end
- When comparing two periods:
-
MET_BY
@UML(identifier="MetBy", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName MET_BYOperator evaluates totrue
if 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 totrue
if the first expression ends at the second. In pseudo-code:- When comparing two periods:
self.begin > other.begin
ANDself.end = other.end
- When comparing two periods:
-
ENDED_BY
@UML(identifier="EndedBy", obligation=CONDITIONAL, specification=ISO_19143) public static final TemporalOperatorName ENDED_BYOperator evaluates totrue
if 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.begin
ANDself.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 ofBEFORE
isAFTER
and the reverse ofCONTAINS
isDURING
. The reverse of the reverse (if present) is alwaysthis
.- Returns:
- the operator when argument order is reversed.
-
values
Returns the list ofTemporalOperatorName
s.- 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 parentCodeList
class.- Specified by:
family
in interfaceControlledVocabulary
- Specified by:
family
in 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.
-