org.geotools.temporal.reference
Class DefaultCalendar

Object
  extended by DefaultTemporalReferenceSystem
      extended by 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 ReferenceSystem
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
 
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
DefaultCalendar(ReferenceIdentifier name, Extent domainOfValidity)
          Creates a new instance of DefaultCalendar
 
Method Summary
 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()
           
 
Methods inherited from class DefaultTemporalReferenceSystem
getAlias, getDomainOfValidity, getIdentifiers, getName, getRemarks, getScope, getValidArea, setDomainOfValidity, setName, setScope, setValidArea, toWKT
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface TemporalReferenceSystem
getDomainOfValidity, getName
 
Methods inherited from interface ReferenceSystem
getScope
 
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getRemarks, toWKT
 

Constructor Detail

DefaultCalendar

public DefaultCalendar(ReferenceIdentifier name,
                       Extent domainOfValidity)
Creates a new instance of DefaultCalendar

Parameters:
name -
domainOfValidity -
Method Detail

dateTrans

public JulianDate dateTrans(CalendarDate calDate,
                            ClockTime time)
Convert a TemporalPosition representing by a CalendarDate and a ClockTime to a Julian date.

Specified by:
dateTrans in interface Calendar
Parameters:
calDate -
time -
Returns:

dateTrans

public JulianDate dateTrans(DateAndTime dateAndTime)
This method is called by the Overrided method dateTrans() which take 2 arguments CalendarDate and ClockTime.

Parameters:
dateAndTime -
Returns:

julTrans

public CalendarDate julTrans(JulianDate jdt)
Convert a JulianDate to CalendarDate

Specified by:
julTrans in interface Calendar
Parameters:
jdt -
Returns:

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.

Specified by:
getBasis in interface Calendar

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.

Specified by:
getClock in interface Calendar

setBasis

public void setBasis(Collection<CalendarEra> basis)

setClock

public void setClock(Clock clock)

equals

public boolean equals(Object object)
Overrides:
equals in class DefaultTemporalReferenceSystem

hashCode

public int hashCode()
Overrides:
hashCode in class DefaultTemporalReferenceSystem

toString

public String toString()
Overrides:
toString in class DefaultTemporalReferenceSystem


Copyright © 1996-2014 Geotools. All Rights Reserved.