org.jscience.history.calendars
Class ChineseCalendar

java.lang.Object
  extended by org.jscience.history.calendars.AlternateCalendar
      extended by org.jscience.history.calendars.SevenDaysWeek
          extended by org.jscience.history.calendars.MonthDayYear
              extended by org.jscience.history.calendars.ChineseCalendar

public class ChineseCalendar
extends MonthDayYear

DOCUMENT ME!


Field Summary
static long EPOCH
          DOCUMENT ME!
static int EPOCHYEAR
          DOCUMENT ME!
static java.lang.String[] MONTHS
          DOCUMENT ME!
 
Fields inherited from class org.jscience.history.calendars.MonthDayYear
day, month, year
 
Fields inherited from class org.jscience.history.calendars.SevenDaysWeek
DAYNAMES, FRIDAY, MONDAY, SATURDAY, SUNDAY, THURSDAY, TUESDAY, WEDNESDAY
 
Fields inherited from class org.jscience.history.calendars.AlternateCalendar
JD_EPOCH, rd, unicode
 
Constructor Summary
ChineseCalendar()
          Creates a new ChineseCalendar object.
ChineseCalendar(int i, int j, int k, boolean flag, int l)
          Creates a new ChineseCalendar object.
ChineseCalendar(long l)
          Creates a new ChineseCalendar object.
 
Method Summary
static long dateNextSolarLongitude(double d, int i)
          DOCUMENT ME!
 boolean getLeap()
          DOCUMENT ME!
 java.util.Enumeration getMonths()
          DOCUMENT ME!
 java.lang.String getSuffix()
          DOCUMENT ME!
static void main(java.lang.String[] args)
          DOCUMENT ME!
static int majorSolarTerm(long l)
          DOCUMENT ME!
static long majorSolarTermOnOrAfter(double d)
          DOCUMENT ME!
 java.lang.String monthName()
          DOCUMENT ME!
static long newMoonBefore(long l)
          DOCUMENT ME!
static long newMoonOnOrAfter(long l)
          DOCUMENT ME!
static long newYear(int i)
          DOCUMENT ME!
static boolean noMajorSolarTerm(long l)
          DOCUMENT ME!
static boolean priorLeapMonth(long l, long l1)
          DOCUMENT ME!
 void recomputeFromRD()
          DOCUMENT ME!
 void recomputeRD()
          DOCUMENT ME!
 void set(int i, int j, int k)
          DOCUMENT ME!
 void set(int i, int j, int k, boolean flag, int l)
          DOCUMENT ME!
 void set(long l)
          DOCUMENT ME!
 double timeZone()
          DOCUMENT ME!
static double timeZone(long l)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.history.calendars.MonthDayYear
getDay, getMonth, getYear
 
Methods inherited from class org.jscience.history.calendars.SevenDaysWeek
kDayAfter, kDayBefore, kDayNearest, kDayOnOrAfter, kDayOnOrBefore, nthKDay, weekDay
 
Methods inherited from class org.jscience.history.calendars.AlternateCalendar
add, after, amod, before, difference, difference, fldiv, fromJD, mod, mod, subtract, toJD, toJD, toRD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MONTHS

public static final java.lang.String[] MONTHS
DOCUMENT ME!


EPOCH

public static final long EPOCH
DOCUMENT ME!


EPOCHYEAR

public static final int EPOCHYEAR
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

ChineseCalendar

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

Parameters:
l - DOCUMENT ME!

ChineseCalendar

public ChineseCalendar(int i,
                       int j,
                       int k,
                       boolean flag,
                       int l)
Creates a new ChineseCalendar object.

Parameters:
i - DOCUMENT ME!
j - DOCUMENT ME!
k - DOCUMENT ME!
flag - DOCUMENT ME!
l - DOCUMENT ME!

ChineseCalendar

public ChineseCalendar()
Creates a new ChineseCalendar object.

Method Detail

majorSolarTerm

public static int majorSolarTerm(long l)
DOCUMENT ME!

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

timeZone

public static double timeZone(long l)
DOCUMENT ME!

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

timeZone

public double timeZone()
DOCUMENT ME!

Returns:
DOCUMENT ME!

dateNextSolarLongitude

public static long dateNextSolarLongitude(double d,
                                          int i)
DOCUMENT ME!

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

majorSolarTermOnOrAfter

public static long majorSolarTermOnOrAfter(double d)
DOCUMENT ME!

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

newMoonOnOrAfter

public static long newMoonOnOrAfter(long l)
DOCUMENT ME!

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

newMoonBefore

public static long newMoonBefore(long l)
DOCUMENT ME!

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

noMajorSolarTerm

public static boolean noMajorSolarTerm(long l)
DOCUMENT ME!

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

priorLeapMonth

public static boolean priorLeapMonth(long l,
                                     long l1)
DOCUMENT ME!

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

recomputeFromRD

public void recomputeFromRD()
DOCUMENT ME!

Specified by:
recomputeFromRD in class AlternateCalendar

newYear

public static long newYear(int i)
DOCUMENT ME!

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

recomputeRD

public void recomputeRD()
DOCUMENT ME!

Specified by:
recomputeRD in class AlternateCalendar

set

public void set(long l)
DOCUMENT ME!

Specified by:
set in class AlternateCalendar
Parameters:
l - DOCUMENT ME!

set

public void set(int i,
                int j,
                int k)
DOCUMENT ME!

Overrides:
set in class MonthDayYear
Parameters:
i - DOCUMENT ME!
j - DOCUMENT ME!
k - DOCUMENT ME!

set

public void set(int i,
                int j,
                int k,
                boolean flag,
                int l)
DOCUMENT ME!

Parameters:
i - DOCUMENT ME!
j - DOCUMENT ME!
k - DOCUMENT ME!
flag - DOCUMENT ME!
l - DOCUMENT ME!

getLeap

public boolean getLeap()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getSuffix

public java.lang.String getSuffix()
DOCUMENT ME!

Specified by:
getSuffix in class MonthDayYear
Returns:
DOCUMENT ME!

monthName

public java.lang.String monthName()
DOCUMENT ME!

Specified by:
monthName in class MonthDayYear
Returns:
DOCUMENT ME!

getMonths

public java.util.Enumeration getMonths()
DOCUMENT ME!

Specified by:
getMonths in class MonthDayYear
Returns:
DOCUMENT ME!

toString

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

Overrides:
toString in class MonthDayYear
Returns:
DOCUMENT ME!

main

public static void main(java.lang.String[] args)
DOCUMENT ME!

Parameters:
args - DOCUMENT ME!