org.geotools.temporal.object
Class DefaultInstant

Object
  extended by DefaultTemporalObject
      extended by DefaultTemporalPrimitive
          extended by DefaultTemporalGeometricPrimitive
              extended by DefaultInstant
All Implemented Interfaces:
Comparable<TemporalPrimitive>, Instant, Separation, TemporalGeometricPrimitive, TemporalObject, TemporalOrder, TemporalPrimitive

public class DefaultInstant
extends DefaultTemporalGeometricPrimitive
implements Instant

A zero-dimensional geometric primitive that represents position in time, equivalent to a point in space.

Author:
Mehdi Sidhoum (Geomatys)

Constructor Summary
DefaultInstant(Position position)
           
 
Method Summary
 boolean equals(Object object)
          Verify if this entry is identical to the specified object.
 Collection<Period> getBegunBy()
          Get the Collection of temporal Periods, for which this Instant is the beginning.
 Collection<Period> getEndedBy()
          Get the Collection of temporal Periods, for which this Instant is the end.
 Position getPosition()
          Get the position of this instant.
 int hashCode()
           
 void setBegunBy(Collection<Period> begunBy)
           
 void setEndBy(Collection<Period> endBy)
           
 void setPosition(Position position)
           
 String toString()
           
 
Methods inherited from class DefaultTemporalGeometricPrimitive
distance, length
 
Methods inherited from class DefaultTemporalPrimitive
compareTo, relativePosition
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface TemporalOrder
relativePosition
 
Methods inherited from interface Separation
distance, length
 

Constructor Detail

DefaultInstant

public DefaultInstant(Position position)
Method Detail

getPosition

public Position getPosition()
Get the position of this instant.

Specified by:
getPosition in interface Instant

getBegunBy

public Collection<Period> getBegunBy()
Get the Collection of temporal Periods, for which this Instant is the beginning. The collection may be empty.

Specified by:
getBegunBy in interface Instant
See Also:
Period#begin

getEndedBy

public Collection<Period> getEndedBy()
Get the Collection of temporal Periods, for which this Instant is the end. The collection may be empty.

Specified by:
getEndedBy in interface Instant
See Also:
Period#end

setPosition

public void setPosition(Position position)

setBegunBy

public void setBegunBy(Collection<Period> begunBy)

setEndBy

public void setEndBy(Collection<Period> endBy)

equals

public boolean equals(Object object)
Verify if this entry is identical to the specified object.

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1996-2014 Geotools. All Rights Reserved.