public class DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEYALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY| Constructor and Description |
|---|
DefaultCalendar(ReferenceIdentifier name,
Extent domainOfValidity)
Creates a new instance of DefaultCalendar
|
| Modifier and Type | Method and Description |
|---|---|
JulianDate |
dateTrans(CalendarDate calDate,
ClockTime time)
Convert a TemporalPosition representing by a CalendarDate and a ClockTime to a Julian date.
|
JulianDate |
dateTrans(DateAndTime dateAndTime)
This method is called by the Overrided method dateTrans() which take 2 arguments CalendarDate
and ClockTime.
|
boolean |
equals(Object object) |
Collection<CalendarEra> |
getBasis()
links this calendar to the calendar eras that it uses as a reference
for dating.
|
Clock |
getClock()
Links this calendar to the clock that is used for specifying temporal
positions within the smallest calendar interval.
|
int |
hashCode() |
CalendarDate |
julTrans(JulianDate jdt)
Convert a JulianDate to CalendarDate
|
void |
setBasis(Collection<CalendarEra> basis) |
void |
setClock(Clock clock) |
String |
toString() |
getAlias, getDomainOfValidity, getIdentifiers, getName, getRemarks, getScope, getValidArea, setDomainOfValidity, setName, setScope, setValidArea, toWKTgetDomainOfValidity, getNamegetScopegetAlias, getIdentifiers, getRemarks, toWKTpublic DefaultCalendar(ReferenceIdentifier name, Extent domainOfValidity)
name - domainOfValidity - public JulianDate dateTrans(CalendarDate calDate, ClockTime time)
public JulianDate dateTrans(DateAndTime dateAndTime)
dateAndTime - public CalendarDate julTrans(JulianDate jdt)
public Collection<CalendarEra> getBasis()
Calendarpublic Clock getClock()
Calendarpublic void setBasis(Collection<CalendarEra> basis)
public void setClock(Clock clock)
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.