public class DefaultClock extends DefaultTemporalReferenceSystem implements Clock
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
ALIAS_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, toWKT
getDomainOfValidity, getName
getScope
getAlias, getIdentifiers, getRemarks, toWKT
public DefaultClock(ReferenceIdentifier name, Extent domainOfValidity, InternationalString referenceEvent, ClockTime referenceTime, ClockTime utcReference)
public InternationalString getReferenceEvent()
Clock
getReferenceEvent
in interface Clock
public ClockTime getReferenceTime()
Clock
getReferenceTime
in interface Clock
public ClockTime getUTCReference()
Clock
getUTCReference
in interface Clock
public 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 DefaultTemporalReferenceSystem
public int hashCode()
hashCode
in class DefaultTemporalReferenceSystem
public String toString()
toString
in class DefaultTemporalReferenceSystem
Copyright © 1996–2019 Geotools. All rights reserved.