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