org.deegree.time.primitive
Class TimeInstant

java.lang.Object
  extended by org.deegree.time.primitive.TimeInstant
All Implemented Interfaces:
Comparable<TimeInstant>, org.deegree.commons.tom.gml.GMLObject, org.deegree.commons.tom.Object, org.deegree.commons.tom.TypedObjectNode, TimeGeometricPrimitive, TimePrimitive, TimeObject

public class TimeInstant
extends Object
implements TimeGeometricPrimitive, Comparable<TimeInstant>

Zero-dimensional geometric primitive that represents an identifiable position in time.

Version:
$Revision: 31664 $, $Date: 2011-08-26 16:18:07 +0200 (Fri, 26 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
TimeInstant(String id, org.deegree.commons.tom.gml.GMLStdProps stdProps, TemporalPosition value)
           
 
Method Summary
 int compareTo(TimeInstant that)
           
 String getFrame()
          Returns the time frame.
 org.deegree.commons.tom.gml.GMLStdProps getGMLProperties()
           
 String getId()
           
 TemporalPosition getPosition()
          Returns the TemporalPosition.
 List<?> getRelatedTimes()
          Returns all time objects related to this TimePrimitive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeInstant

public TimeInstant(String id,
                   org.deegree.commons.tom.gml.GMLStdProps stdProps,
                   TemporalPosition value)
Method Detail

getId

public String getId()
Specified by:
getId in interface org.deegree.commons.tom.Object

getGMLProperties

public org.deegree.commons.tom.gml.GMLStdProps getGMLProperties()
Specified by:
getGMLProperties in interface org.deegree.commons.tom.gml.GMLObject

getPosition

public TemporalPosition getPosition()
Returns the TemporalPosition.

Returns:
temporal position, never null

getRelatedTimes

public List<?> getRelatedTimes()
Description copied from interface: TimePrimitive
Returns all time objects related to this TimePrimitive.

Specified by:
getRelatedTimes in interface TimePrimitive
Returns:
all related time objects, but never null

getFrame

public String getFrame()
Description copied from interface: TimeGeometricPrimitive
Returns the time frame.

Specified by:
getFrame in interface TimeGeometricPrimitive
Returns:
time frame, can be null

compareTo

public int compareTo(TimeInstant that)
Specified by:
compareTo in interface Comparable<TimeInstant>


Copyright © 2011. All Rights Reserved.