Package org.geotools.temporal.reference
Class DefaultClock
Object
DefaultTemporalReferenceSystem
DefaultClock
- All Implemented Interfaces:
IdentifiedObject
,ReferenceSystem
,Clock
,TemporalReferenceSystem
- 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
ConstructorsConstructorDescriptionDefaultClock
(ReferenceIdentifier name, Extent domainOfValidity, InternationalString referenceEvent, ClockTime referenceTime, ClockTime utcReference) -
Method Summary
Modifier and TypeMethodDescriptionTakes a 24-hour local or UTC time and return the equivalent time of day expressed in terms of the specified clock.boolean
Event used as the datum for this clock.Time of the reference Event for this clock, usually the origin of the clock scale.Provides the 24-hour local or UTC time that corresponds to the reference time.int
hashCode()
void
setReferenceEvent
(InternationalString referenceEvent) void
setReferenceTime
(ClockTime referenceTime) void
setUtcReference
(ClockTime utcReference) toString()
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 Details
-
DefaultClock
public DefaultClock(ReferenceIdentifier name, Extent domainOfValidity, InternationalString referenceEvent, ClockTime referenceTime, ClockTime utcReference)
-
-
Method Details
-
getReferenceEvent
Description copied from interface:Clock
Event used as the datum for this clock.- Specified by:
getReferenceEvent
in interfaceClock
-
getReferenceTime
Description copied from interface:Clock
Time of the reference Event for this clock, usually the origin of the clock scale.- Specified by:
getReferenceTime
in interfaceClock
-
getUTCReference
Description copied from interface:Clock
Provides the 24-hour local or UTC time that corresponds to the reference time.- Specified by:
getUTCReference
in interfaceClock
-
clkTrans
Takes a 24-hour local or UTC time and return the equivalent time of day expressed in terms of the specified clock. -
utcTrans
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
-
setReferenceTime
-
setUtcReference
-
getDateBasis
-
equals
- Overrides:
equals
in classDefaultTemporalReferenceSystem
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDefaultTemporalReferenceSystem
-
toString
- Overrides:
toString
in classDefaultTemporalReferenceSystem
-