org.jscience.history.calendars
Class AlternateCalendar

java.lang.Object
  extended by org.jscience.history.calendars.AlternateCalendar
Direct Known Subclasses:
MayanCalendar, SevenDaysWeek

public abstract class AlternateCalendar
extends java.lang.Object

DOCUMENT ME!


Field Summary
static long EPOCH
          DOCUMENT ME!
static double JD_EPOCH
          DOCUMENT ME!
protected  long rd
          DOCUMENT ME!
static boolean unicode
          DOCUMENT ME!
 
Constructor Summary
AlternateCalendar()
          Creates a new AlternateCalendar object.
AlternateCalendar(long l)
          Creates a new AlternateCalendar object.
 
Method Summary
 void add(long l)
          DOCUMENT ME!
 boolean after(AlternateCalendar altcalendar)
          DOCUMENT ME!
static long amod(long l, long l1)
          DOCUMENT ME!
 boolean before(AlternateCalendar altcalendar)
          DOCUMENT ME!
 long difference(AlternateCalendar altcalendar)
          DOCUMENT ME!
static long difference(AlternateCalendar altcalendar, AlternateCalendar altcalendar1)
          DOCUMENT ME!
static long fldiv(long l, long l1)
          DOCUMENT ME!
static long fromJD(double d)
          DOCUMENT ME!
static int mod(long l, int i)
          DOCUMENT ME!
static long mod(long l, long l1)
          DOCUMENT ME!
protected abstract  void recomputeFromRD()
          DOCUMENT ME!
protected abstract  void recomputeRD()
          DOCUMENT ME!
abstract  void set(long l)
          DOCUMENT ME!
 void subtract(long l)
          DOCUMENT ME!
 double toJD()
          DOCUMENT ME!
static double toJD(long l)
          DOCUMENT ME!
 long toRD()
          DOCUMENT ME!
abstract  java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EPOCH

public static long EPOCH
DOCUMENT ME!


unicode

public static boolean unicode
DOCUMENT ME!


JD_EPOCH

public static final double JD_EPOCH
DOCUMENT ME!

See Also:
Constant Field Values

rd

protected long rd
DOCUMENT ME!

Constructor Detail

AlternateCalendar

public AlternateCalendar()
Creates a new AlternateCalendar object.


AlternateCalendar

public AlternateCalendar(long l)
Creates a new AlternateCalendar object.

Parameters:
l - DOCUMENT ME!
Method Detail

mod

public static long mod(long l,
                       long l1)
DOCUMENT ME!

Parameters:
l - DOCUMENT ME!
l1 - DOCUMENT ME!
Returns:
DOCUMENT ME!

mod

public static int mod(long l,
                      int i)
DOCUMENT ME!

Parameters:
l - DOCUMENT ME!
i - DOCUMENT ME!
Returns:
DOCUMENT ME!

amod

public static long amod(long l,
                        long l1)
DOCUMENT ME!

Parameters:
l - DOCUMENT ME!
l1 - DOCUMENT ME!
Returns:
DOCUMENT ME!

fldiv

public static long fldiv(long l,
                         long l1)
DOCUMENT ME!

Parameters:
l - DOCUMENT ME!
l1 - DOCUMENT ME!
Returns:
DOCUMENT ME!

set

public abstract void set(long l)
DOCUMENT ME!

Parameters:
l - DOCUMENT ME!

toRD

public long toRD()
DOCUMENT ME!

Returns:
DOCUMENT ME!

toJD

public double toJD()
DOCUMENT ME!

Returns:
DOCUMENT ME!

toJD

public static double toJD(long l)
DOCUMENT ME!

Parameters:
l - DOCUMENT ME!
Returns:
DOCUMENT ME!

fromJD

public static long fromJD(double d)
DOCUMENT ME!

Parameters:
d - DOCUMENT ME!
Returns:
DOCUMENT ME!

before

public boolean before(AlternateCalendar altcalendar)
DOCUMENT ME!

Parameters:
altcalendar - DOCUMENT ME!
Returns:
DOCUMENT ME!

after

public boolean after(AlternateCalendar altcalendar)
DOCUMENT ME!

Parameters:
altcalendar - DOCUMENT ME!
Returns:
DOCUMENT ME!

difference

public static long difference(AlternateCalendar altcalendar,
                              AlternateCalendar altcalendar1)
DOCUMENT ME!

Parameters:
altcalendar - DOCUMENT ME!
altcalendar1 - DOCUMENT ME!
Returns:
DOCUMENT ME!

difference

public long difference(AlternateCalendar altcalendar)
DOCUMENT ME!

Parameters:
altcalendar - DOCUMENT ME!
Returns:
DOCUMENT ME!

add

public void add(long l)
DOCUMENT ME!

Parameters:
l - DOCUMENT ME!

subtract

public void subtract(long l)
DOCUMENT ME!

Parameters:
l - DOCUMENT ME!

recomputeFromRD

protected abstract void recomputeFromRD()
DOCUMENT ME!


recomputeRD

protected abstract void recomputeRD()
DOCUMENT ME!


toString

public abstract java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!