org.geotools.temporal.reference
Class DefaultTemporalCoordinateSystem

java.lang.Object
  extended by org.geotools.temporal.reference.DefaultTemporalReferenceSystem
      extended by org.geotools.temporal.reference.DefaultTemporalCoordinateSystem
All Implemented Interfaces:
org.opengis.referencing.IdentifiedObject, org.opengis.referencing.ReferenceSystem, org.opengis.temporal.TemporalCoordinateSystem, org.opengis.temporal.TemporalReferenceSystem

public class DefaultTemporalCoordinateSystem
extends DefaultTemporalReferenceSystem
implements org.opengis.temporal.TemporalCoordinateSystem

Author:
Mehdi Sidhoum (Geomatys)

Field Summary
 
Fields inherited from interface org.opengis.referencing.ReferenceSystem
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
 
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
DefaultTemporalCoordinateSystem(org.opengis.referencing.ReferenceIdentifier name, org.opengis.metadata.extent.Extent domainOfValidity, java.util.Date origin, org.opengis.util.InternationalString interval)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 org.opengis.util.InternationalString getInterval()
           
 java.util.Date getOrigin()
           
 int hashCode()
           
 void setInterval(org.opengis.util.InternationalString interval)
           
 void setOrigin(java.util.Date origin)
           
 java.lang.String toString()
           
 java.util.Date transformCoord(org.opengis.temporal.TemporalCoordinate c_value)
          Returns the equivalent Date in the Gregorian calendar and UTC of a coordinate value defined in this temporal coordinate system.
 org.opengis.temporal.TemporalCoordinate transformDateTime(java.util.Date dateTime)
          Returns the equivalent TemporalCoordinate of a Date in Gregorian Calendar.
 
Methods inherited from class org.geotools.temporal.reference.DefaultTemporalReferenceSystem
getAlias, getDomainOfValidity, getIdentifiers, getName, getRemarks, getScope, getValidArea, setDomainOfValidity, setName, setScope, setValidArea, toWKT
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.temporal.TemporalReferenceSystem
getDomainOfValidity, getName
 
Methods inherited from interface org.opengis.referencing.ReferenceSystem
getScope
 
Methods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getIdentifiers, getRemarks, toWKT
 

Constructor Detail

DefaultTemporalCoordinateSystem

public DefaultTemporalCoordinateSystem(org.opengis.referencing.ReferenceIdentifier name,
                                       org.opengis.metadata.extent.Extent domainOfValidity,
                                       java.util.Date origin,
                                       org.opengis.util.InternationalString interval)
Method Detail

setOrigin

public void setOrigin(java.util.Date origin)

setInterval

public void setInterval(org.opengis.util.InternationalString interval)

getOrigin

public java.util.Date getOrigin()
Specified by:
getOrigin in interface org.opengis.temporal.TemporalCoordinateSystem

getInterval

public org.opengis.util.InternationalString getInterval()
Specified by:
getInterval in interface org.opengis.temporal.TemporalCoordinateSystem

transformCoord

public java.util.Date transformCoord(org.opengis.temporal.TemporalCoordinate c_value)
Returns the equivalent Date in the Gregorian calendar and UTC of a coordinate value defined in this temporal coordinate system.

Specified by:
transformCoord in interface org.opengis.temporal.TemporalCoordinateSystem
Parameters:
c_value -
Returns:

transformDateTime

public org.opengis.temporal.TemporalCoordinate transformDateTime(java.util.Date dateTime)
Returns the equivalent TemporalCoordinate of a Date in Gregorian Calendar. Default of unit is millisecond.

Specified by:
transformDateTime in interface org.opengis.temporal.TemporalCoordinateSystem
Parameters:
dateTime -
Returns:

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class DefaultTemporalReferenceSystem

hashCode

public int hashCode()
Overrides:
hashCode in class DefaultTemporalReferenceSystem

toString

public java.lang.String toString()
Overrides:
toString in class DefaultTemporalReferenceSystem


Copyright © 1996-2010 Geotools. All Rights Reserved.