Package org.geotools.temporal.reference
Class DefaultCalendar
Object
DefaultTemporalReferenceSystem
DefaultCalendar
- All Implemented Interfaces:
IdentifiedObject
,ReferenceSystem
,Calendar
,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
ConstructorsConstructorDescriptionDefaultCalendar
(ReferenceIdentifier name, Extent domainOfValidity) Creates a new instance of DefaultCalendar -
Method Summary
Modifier and TypeMethodDescriptiondateTrans
(CalendarDate calDate, ClockTime time) Convert a TemporalPosition representing by a CalendarDate and a ClockTime to a Julian date.dateTrans
(DateAndTime dateAndTime) This method is called by the Overrided method dateTrans() which take 2 arguments CalendarDate and ClockTime.boolean
getBasis()
links this calendar to the calendar eras that it uses as a reference for dating.getClock()
Links this calendar to the clock that is used for specifying temporal positions within the smallest calendar interval.int
hashCode()
julTrans
(JulianDate jdt) Convert a JulianDate to CalendarDatevoid
setBasis
(Collection<CalendarEra> basis) void
toString()
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
-
DefaultCalendar
Creates a new instance of DefaultCalendar
-
-
Method Details
-
dateTrans
Convert a TemporalPosition representing by a CalendarDate and a ClockTime to a Julian date. -
dateTrans
This method is called by the Overrided method dateTrans() which take 2 arguments CalendarDate and ClockTime. -
julTrans
Convert a JulianDate to CalendarDate -
getBasis
Description copied from interface:Calendar
links this calendar to the calendar eras that it uses as a reference for dating. -
getClock
Description copied from interface:Calendar
Links this calendar to the clock that is used for specifying temporal positions within the smallest calendar interval. -
setBasis
-
setClock
-
equals
- Overrides:
equals
in classDefaultTemporalReferenceSystem
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDefaultTemporalReferenceSystem
-
toString
- Overrides:
toString
in classDefaultTemporalReferenceSystem
-