org.geotools.temporal.reference
Class DefaultTemporalCoordinateSystem

Object
  extended by DefaultTemporalReferenceSystem
      extended by DefaultTemporalCoordinateSystem
All Implemented Interfaces:
IdentifiedObject, ReferenceSystem, TemporalCoordinateSystem, TemporalReferenceSystem

public class DefaultTemporalCoordinateSystem
extends DefaultTemporalReferenceSystem
implements TemporalCoordinateSystem

Author:
Mehdi Sidhoum (Geomatys)

Field Summary
 
Fields inherited from interface ReferenceSystem
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
 
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
DefaultTemporalCoordinateSystem(ReferenceIdentifier name, Extent domainOfValidity, Date origin, InternationalString interval)
           
 
Method Summary
 boolean equals(Object object)
           
 InternationalString getInterval()
          Identifies the base interval for this temporal coordinate system as a unit of measure specified by ISO 31-1, or a multiple of one of those units, as specified by ISO 1000.
 Date getOrigin()
          Position of the origin of the scale on which the temporal coordinate system is based expressed as a date in the Gregorian calendar and time of day in UTC.
 int hashCode()
           
 void setInterval(InternationalString interval)
           
 void setOrigin(Date origin)
           
 String toString()
           
 Date transformCoord(TemporalCoordinate c_value)
          Returns the equivalent Date in the Gregorian calendar and UTC of a coordinate value defined in this temporal coordinate system.
 TemporalCoordinate transformDateTime(Date dateTime)
          Returns the equivalent TemporalCoordinate of a Date in Gregorian Calendar.
 
Methods inherited from class DefaultTemporalReferenceSystem
getAlias, getDomainOfValidity, getIdentifiers, getName, getRemarks, getScope, getValidArea, setDomainOfValidity, setName, setScope, setValidArea, toWKT
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface TemporalReferenceSystem
getDomainOfValidity, getName
 
Methods inherited from interface ReferenceSystem
getScope
 
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getRemarks, toWKT
 

Constructor Detail

DefaultTemporalCoordinateSystem

public DefaultTemporalCoordinateSystem(ReferenceIdentifier name,
                                       Extent domainOfValidity,
                                       Date origin,
                                       InternationalString interval)
Method Detail

setOrigin

public void setOrigin(Date origin)

setInterval

public void setInterval(InternationalString interval)

getOrigin

public Date getOrigin()
Description copied from interface: TemporalCoordinateSystem
Position of the origin of the scale on which the temporal coordinate system is based expressed as a date in the Gregorian calendar and time of day in UTC.

Specified by:
getOrigin in interface TemporalCoordinateSystem

getInterval

public InternationalString getInterval()
Description copied from interface: TemporalCoordinateSystem
Identifies the base interval for this temporal coordinate system as a unit of measure specified by ISO 31-1, or a multiple of one of those units, as specified by ISO 1000.

Specified by:
getInterval in interface TemporalCoordinateSystem

transformCoord

public Date transformCoord(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 TemporalCoordinateSystem
Parameters:
c_value -
Returns:

transformDateTime

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

Specified by:
transformDateTime in interface TemporalCoordinateSystem
Parameters:
dateTime -
Returns:

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class DefaultTemporalReferenceSystem

toString

public String toString()
Overrides:
toString in class DefaultTemporalReferenceSystem


Copyright © 1996-2014 Geotools. All Rights Reserved.