org.geotools.temporal.object
Class DefaultTemporalGeometricPrimitive

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

public abstract class DefaultTemporalGeometricPrimitive
extends DefaultTemporalPrimitive
implements org.opengis.temporal.TemporalGeometricPrimitive, org.opengis.temporal.Separation

An abstract class with two subclasses for representing a temporal instant and a temporal period.

Author:
Mehdi Sidhoum (Geomatys)

Constructor Summary
DefaultTemporalGeometricPrimitive()
           
 
Method Summary
 org.opengis.temporal.Duration distance(org.opengis.temporal.TemporalGeometricPrimitive other)
          Returns the distance from this TM_GeometricPrimitive to another TM_GeometricPrimitive, i.e.
 org.opengis.temporal.Duration length()
          Returns the length of this TM_GeometricPrimitive
 
Methods inherited from class org.geotools.temporal.object.DefaultTemporalPrimitive
compareTo, relativePosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opengis.temporal.TemporalOrder
relativePosition
 

Constructor Detail

DefaultTemporalGeometricPrimitive

public DefaultTemporalGeometricPrimitive()
Method Detail

distance

public org.opengis.temporal.Duration distance(org.opengis.temporal.TemporalGeometricPrimitive other)
Returns the distance from this TM_GeometricPrimitive to another TM_GeometricPrimitive, i.e. the absolute value of the difference between their temporal positions.

Specified by:
distance in interface org.opengis.temporal.Separation
Parameters:
other -
Returns:

length

public org.opengis.temporal.Duration length()
Returns the length of this TM_GeometricPrimitive

Specified by:
length in interface org.opengis.temporal.Separation
Returns:


Copyright © 1996-2010 Geotools. All Rights Reserved.