org.deegree.time.primitive
Class TimeInstant

java.lang.Object
  extended by org.deegree.time.primitive.TimeInstant
All Implemented Interfaces:
Comparable<TimeInstant>, GMLObject, Object, 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, GMLStdProps stdProps, TemporalPosition value)
           
 
Method Summary
 int compareTo(TimeInstant that)
           
 String getFrame()
          Returns the time frame.
 GMLStdProps getGMLProperties()
          Returns the standard GML properties (e.g.
 String getId()
          Returns the id of the object.
 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,
                   GMLStdProps stdProps,
                   TemporalPosition value)
Method Detail

getId

public String getId()
Description copied from interface: Object
Returns the id of the object.

Specified by:
getId in interface Object
Returns:
the id of the object, or null if it doesn't have an id

getGMLProperties

public GMLStdProps getGMLProperties()
Description copied from interface: GMLObject
Returns the standard GML properties (e.g. gml:name).

Specified by:
getGMLProperties in interface GMLObject
Returns:
the standard GML properties, may be

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.