Package org.geotools.temporal.reference
Class DefaultClock
- Object
-
- DefaultTemporalReferenceSystem
-
- DefaultClock
-
- All Implemented Interfaces:
IdentifiedObject,ReferenceSystem,Clock,TemporalReferenceSystem
public class DefaultClock extends DefaultTemporalReferenceSystem implements Clock
- Author:
- Mehdi Sidhoum (Geomatys)
-
-
Field Summary
-
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
-
Fields inherited from interface ReferenceSystem
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
-
-
Constructor Summary
Constructors Constructor Description DefaultClock(ReferenceIdentifier name, Extent domainOfValidity, InternationalString referenceEvent, ClockTime referenceTime, ClockTime utcReference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClockTimeclkTrans(ClockTime uTime)Takes a 24-hour local or UTC time and return the equivalent time of day expressed in terms of the specified clock.booleanequals(Object object)Collection<Calendar>getDateBasis()InternationalStringgetReferenceEvent()Event used as the datum for this clock.ClockTimegetReferenceTime()Time of the reference Event for this clock, usually the origin of the clock scale.ClockTimegetUTCReference()Provides the 24-hour local or UTC time that corresponds to the reference time.inthashCode()voidsetReferenceEvent(InternationalString referenceEvent)voidsetReferenceTime(ClockTime referenceTime)voidsetUtcReference(ClockTime utcReference)StringtoString()ClockTimeutcTrans(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 DefaultTemporalReferenceSystem
getAlias, getDomainOfValidity, getIdentifiers, getName, getRemarks, getScope, setDomainOfValidity, setName, setScope, setValidArea, toWKT
-
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getRemarks, toWKT
-
Methods inherited from interface ReferenceSystem
getScope
-
Methods inherited from interface TemporalReferenceSystem
getDomainOfValidity, getName
-
-
-
-
Constructor Detail
-
DefaultClock
public DefaultClock(ReferenceIdentifier name, Extent domainOfValidity, InternationalString referenceEvent, ClockTime referenceTime, ClockTime utcReference)
-
-
Method Detail
-
getReferenceEvent
public InternationalString getReferenceEvent()
Description copied from interface:ClockEvent used as the datum for this clock.- Specified by:
getReferenceEventin interfaceClock
-
getReferenceTime
public ClockTime getReferenceTime()
Description copied from interface:ClockTime of the reference Event for this clock, usually the origin of the clock scale.- Specified by:
getReferenceTimein interfaceClock
-
getUTCReference
public ClockTime getUTCReference()
Description copied from interface:ClockProvides the 24-hour local or UTC time that corresponds to the reference time.- Specified by:
getUTCReferencein interfaceClock
-
clkTrans
public ClockTime clkTrans(ClockTime uTime)
Takes a 24-hour local or UTC time and return the equivalent time of day expressed in terms of the specified clock.
-
utcTrans
public ClockTime utcTrans(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.
-
setReferenceEvent
public void setReferenceEvent(InternationalString referenceEvent)
-
setReferenceTime
public void setReferenceTime(ClockTime referenceTime)
-
setUtcReference
public void setUtcReference(ClockTime utcReference)
-
getDateBasis
public Collection<Calendar> getDateBasis()
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classDefaultTemporalReferenceSystem
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDefaultTemporalReferenceSystem
-
toString
public String toString()
- Overrides:
toStringin classDefaultTemporalReferenceSystem
-
-