public class DefaultClock extends DefaultTemporalReferenceSystem implements Clock
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEYALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY| Constructor and Description |
|---|
DefaultClock(ReferenceIdentifier name,
Extent domainOfValidity,
InternationalString referenceEvent,
ClockTime referenceTime,
ClockTime utcReference) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
equals(Object object) |
Collection<Calendar> |
getDateBasis() |
InternationalString |
getReferenceEvent()
Event used as the datum for this clock.
|
ClockTime |
getReferenceTime()
Time of the reference Event for this clock, usually the origin of the clock scale.
|
ClockTime |
getUTCReference()
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) |
String |
toString() |
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.
|
getAlias, getDomainOfValidity, getIdentifiers, getName, getRemarks, getScope, getValidArea, setDomainOfValidity, setName, setScope, setValidArea, toWKTgetDomainOfValidity, getNamegetScopegetAlias, getIdentifiers, getRemarks, toWKTpublic DefaultClock(ReferenceIdentifier name, Extent domainOfValidity, InternationalString referenceEvent, ClockTime referenceTime, ClockTime utcReference)
public InternationalString getReferenceEvent()
ClockgetReferenceEvent in interface Clockpublic ClockTime getReferenceTime()
ClockgetReferenceTime in interface Clockpublic ClockTime getUTCReference()
ClockgetUTCReference in interface Clockpublic ClockTime clkTrans(ClockTime uTime)
public ClockTime utcTrans(ClockTime clkTime)
public void setReferenceEvent(InternationalString referenceEvent)
public void setReferenceTime(ClockTime referenceTime)
public void setUtcReference(ClockTime utcReference)
public Collection<Calendar> getDateBasis()
public boolean equals(Object object)
equals in class DefaultTemporalReferenceSystempublic int hashCode()
hashCode in class DefaultTemporalReferenceSystempublic String toString()
toString in class DefaultTemporalReferenceSystemCopyright © 1996–2019 Geotools. All rights reserved.