org.geotools.temporal.object
Class DefaultTemporalPrimitive

java.lang.Object
  extended by org.geotools.temporal.object.DefaultTemporalObject
      extended by org.geotools.temporal.object.DefaultTemporalPrimitive
All Implemented Interfaces:
java.lang.Comparable<org.opengis.temporal.TemporalPrimitive>, org.opengis.temporal.TemporalObject, org.opengis.temporal.TemporalOrder, org.opengis.temporal.TemporalPrimitive
Direct Known Subclasses:
DefaultTemporalGeometricPrimitive

public abstract class DefaultTemporalPrimitive
extends DefaultTemporalObject
implements org.opengis.temporal.TemporalPrimitive, org.opengis.temporal.TemporalOrder, java.lang.Comparable<org.opengis.temporal.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
DefaultTemporalPrimitive()
           
 
Method Summary
 int compareTo(org.opengis.temporal.TemporalPrimitive that)
           
 org.opengis.temporal.RelativePosition relativePosition(org.opengis.temporal.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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTemporalPrimitive

public DefaultTemporalPrimitive()
Method Detail

compareTo

public int compareTo(org.opengis.temporal.TemporalPrimitive that)
Specified by:
compareTo in interface java.lang.Comparable<org.opengis.temporal.TemporalPrimitive>

relativePosition

public org.opengis.temporal.RelativePosition relativePosition(org.opengis.temporal.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 interface org.opengis.temporal.TemporalOrder
Parameters:
other - TemporalPrimitive
Returns:


Copyright © 1996-2010 Geotools. All Rights Reserved.