Package org.geotools.temporal.object
Class DefaultTemporalPrimitive
- Object
-
- DefaultTemporalObject
-
- DefaultTemporalPrimitive
-
- All Implemented Interfaces:
Comparable<TemporalPrimitive>
,TemporalObject
,TemporalOrder
,TemporalPrimitive
- Direct Known Subclasses:
DefaultTemporalGeometricPrimitive
public abstract class DefaultTemporalPrimitive extends DefaultTemporalObject implements TemporalPrimitive, TemporalOrder, Comparable<TemporalPrimitive>
An abstract class that represents a non-decomposed element of geometry or topology of time.- Author:
- Mehdi Sidhoum (Geomatys), Simone Giannecchini, GeoSolutions SAS
-
-
Constructor Summary
Constructors Constructor Description DefaultTemporalPrimitive()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(TemporalPrimitive that)
RelativePosition
relativePosition(TemporalPrimitive other)
Returns a value for relative position which are provided by the enumerated data type TM_RelativePosition and are based on the 13 temporal relationships identified by Allen (1983).
-
-
-
Method Detail
-
compareTo
public int compareTo(TemporalPrimitive that)
- Specified by:
compareTo
in interfaceComparable<TemporalPrimitive>
-
relativePosition
public RelativePosition relativePosition(TemporalPrimitive other)
Returns a value for relative position which are provided by the enumerated data type TM_RelativePosition and are based on the 13 temporal relationships identified by Allen (1983).- Specified by:
relativePosition
in interfaceTemporalOrder
- Parameters:
other
- TemporalPrimitive
-
-