org.geotools.temporal.object
Class DefaultInstant
java.lang.Object
org.geotools.temporal.object.DefaultTemporalObject
org.geotools.temporal.object.DefaultTemporalPrimitive
org.geotools.temporal.object.DefaultTemporalGeometricPrimitive
org.geotools.temporal.object.DefaultInstant
- All Implemented Interfaces:
- java.lang.Comparable<org.opengis.temporal.TemporalPrimitive>, org.opengis.temporal.Instant, org.opengis.temporal.Separation, org.opengis.temporal.TemporalGeometricPrimitive, org.opengis.temporal.TemporalObject, org.opengis.temporal.TemporalOrder, org.opengis.temporal.TemporalPrimitive
public class DefaultInstant
- extends DefaultTemporalGeometricPrimitive
- implements org.opengis.temporal.Instant
A zero-dimensional geometric primitive that represents position in time, equivalent to a point
in space.
- Author:
- Mehdi Sidhoum (Geomatys)
Constructor Summary |
DefaultInstant(org.opengis.temporal.Position position)
|
Method Summary |
boolean |
equals(java.lang.Object object)
Verify if this entry is identical to the specified object. |
java.util.Collection<org.opengis.temporal.Period> |
getBegunBy()
Get the Collection of temporal Period s,
for which this Instant is the beginning. |
java.util.Collection<org.opengis.temporal.Period> |
getEndedBy()
Get the Collection of temporal Period s,
for which this Instant is the end. |
org.opengis.temporal.Position |
getPosition()
Get the position of this instant. |
int |
hashCode()
|
void |
setBegunBy(java.util.Collection<org.opengis.temporal.Period> begunBy)
|
void |
setEndBy(java.util.Collection<org.opengis.temporal.Period> endBy)
|
void |
setPosition(org.opengis.temporal.Position position)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.temporal.TemporalOrder |
relativePosition |
Methods inherited from interface org.opengis.temporal.Separation |
distance, length |
DefaultInstant
public DefaultInstant(org.opengis.temporal.Position position)
getPosition
public org.opengis.temporal.Position getPosition()
- Get the position of this instant.
- Specified by:
getPosition
in interface org.opengis.temporal.Instant
getBegunBy
public java.util.Collection<org.opengis.temporal.Period> getBegunBy()
- Get the Collection of temporal
Period
s,
for which this Instant is the beginning. The collection may be empty.
- Specified by:
getBegunBy
in interface org.opengis.temporal.Instant
- See Also:
Period#begin
getEndedBy
public java.util.Collection<org.opengis.temporal.Period> getEndedBy()
- Get the Collection of temporal
Period
s,
for which this Instant is the end. The collection may be empty.
- Specified by:
getEndedBy
in interface org.opengis.temporal.Instant
- See Also:
Period#end
setPosition
public void setPosition(org.opengis.temporal.Position position)
setBegunBy
public void setBegunBy(java.util.Collection<org.opengis.temporal.Period> begunBy)
setEndBy
public void setEndBy(java.util.Collection<org.opengis.temporal.Period> endBy)
equals
public boolean equals(java.lang.Object object)
- Verify if this entry is identical to the specified object.
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1996-2010 Geotools. All Rights Reserved.