org.geotools.temporal.reference
Class DefaultClock

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

public class DefaultClock
extends DefaultTemporalReferenceSystem
implements org.opengis.temporal.Clock

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
DefaultClock(org.opengis.referencing.ReferenceIdentifier name, org.opengis.metadata.extent.Extent domainOfValidity, org.opengis.util.InternationalString referenceEvent, org.opengis.temporal.ClockTime referenceTime, org.opengis.temporal.ClockTime utcReference)
           
 
Method Summary
 org.opengis.temporal.ClockTime clkTrans(org.opengis.temporal.ClockTime uTime)
          Takes a 24-hour local or UTC time and return the equivalent time of day expressed in terms of the specified clock.
 boolean equals(java.lang.Object object)
           
 java.util.Collection<org.opengis.temporal.Calendar> getDateBasis()
           
 org.opengis.util.InternationalString getReferenceEvent()
           
 org.opengis.temporal.ClockTime getReferenceTime()
           
 org.opengis.temporal.ClockTime getUTCReference()
           
 int hashCode()
           
 void setReferenceEvent(org.opengis.util.InternationalString referenceEvent)
           
 void setReferenceTime(org.opengis.temporal.ClockTime referenceTime)
           
 void setUtcReference(org.opengis.temporal.ClockTime utcReference)
           
 java.lang.String toString()
           
 org.opengis.temporal.ClockTime utcTrans(org.opengis.temporal.ClockTime clkTime)
          Takes a time of day expressed in terms of the specified clock and return the equivalent time of day in 24-hour local or UTC time.
 
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

DefaultClock

public DefaultClock(org.opengis.referencing.ReferenceIdentifier name,
                    org.opengis.metadata.extent.Extent domainOfValidity,
                    org.opengis.util.InternationalString referenceEvent,
                    org.opengis.temporal.ClockTime referenceTime,
                    org.opengis.temporal.ClockTime utcReference)
Method Detail

getReferenceEvent

public org.opengis.util.InternationalString getReferenceEvent()
Specified by:
getReferenceEvent in interface org.opengis.temporal.Clock

getReferenceTime

public org.opengis.temporal.ClockTime getReferenceTime()
Specified by:
getReferenceTime in interface org.opengis.temporal.Clock

getUTCReference

public org.opengis.temporal.ClockTime getUTCReference()
Specified by:
getUTCReference in interface org.opengis.temporal.Clock

clkTrans

public org.opengis.temporal.ClockTime clkTrans(org.opengis.temporal.ClockTime uTime)
Takes a 24-hour local or UTC time and return the equivalent time of day expressed in terms of the specified clock.

Specified by:
clkTrans in interface org.opengis.temporal.Clock
Parameters:
uTime -
Returns:

utcTrans

public org.opengis.temporal.ClockTime utcTrans(org.opengis.temporal.ClockTime clkTime)
Takes a time of day expressed in terms of the specified clock and return the equivalent time of day in 24-hour local or UTC time.

Specified by:
utcTrans in interface org.opengis.temporal.Clock
Parameters:
clkTime -
Returns:

setReferenceEvent

public void setReferenceEvent(org.opengis.util.InternationalString referenceEvent)

setReferenceTime

public void setReferenceTime(org.opengis.temporal.ClockTime referenceTime)

setUtcReference

public void setUtcReference(org.opengis.temporal.ClockTime utcReference)

getDateBasis

public java.util.Collection<org.opengis.temporal.Calendar> getDateBasis()

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.