org.jscience.history.calendars
Class OldHinduLunarCalendar

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.OldHinduSolarCalendar
                  extended by org.jscience.history.calendars.OldHinduLunarCalendar
Direct Known Subclasses:
ModifiedHinduLunarBRCalendar, ModifiedHinduLunarCalendar

public class OldHinduLunarCalendar
extends OldHinduSolarCalendar

DOCUMENT ME!


Field Summary
protected  boolean leap
          DOCUMENT ME!
protected static Rational LUNARDAY
          DOCUMENT ME!
protected static Rational LUNARMONTH
          DOCUMENT ME!
protected static java.lang.String[] MONTHS
          DOCUMENT ME!
 
Fields inherited from class org.jscience.history.calendars.OldHinduSolarCalendar
EPOCH, JOVIANPERIOD, SIDEREALYEAR, SOLARMONTH
 
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
OldHinduLunarCalendar()
          Creates a new OldHinduLunarCalendar object.
OldHinduLunarCalendar(AlternateCalendar altcalendar)
          Creates a new OldHinduLunarCalendar object.
OldHinduLunarCalendar(int i, boolean flag, int j, int k)
          Creates a new OldHinduLunarCalendar object.
OldHinduLunarCalendar(int i, int j, int k)
          Creates a new OldHinduLunarCalendar object.
OldHinduLunarCalendar(long l)
          Creates a new OldHinduLunarCalendar object.
 
Method Summary
 boolean getLeap()
          DOCUMENT ME!
 java.util.Enumeration getMonths()
          DOCUMENT ME!
protected  java.lang.String getSuffix()
          DOCUMENT ME!
protected static boolean isLeapYear(int i)
          DOCUMENT ME!
static void main(java.lang.String[] args)
          DOCUMENT ME!
protected  java.lang.String monthName()
          DOCUMENT ME!
protected  void recomputeFromRD()
          DOCUMENT ME!
protected  void recomputeRD()
          DOCUMENT ME!
 void set(int i, boolean flag, int j, int k)
          DOCUMENT ME!
 void set(int i, int j, int k)
          DOCUMENT ME!
 void set(long l)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.history.calendars.OldHinduSolarCalendar
dayCount, jovianYear
 
Methods inherited from class org.jscience.history.calendars.MonthDayYear
getDay, getMonth, getYear, toString
 
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

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


LUNARMONTH

protected static final Rational LUNARMONTH
DOCUMENT ME!


LUNARDAY

protected static final Rational LUNARDAY
DOCUMENT ME!


leap

protected boolean leap
DOCUMENT ME!

Constructor Detail

OldHinduLunarCalendar

public OldHinduLunarCalendar()
Creates a new OldHinduLunarCalendar object.


OldHinduLunarCalendar

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

Parameters:
l - DOCUMENT ME!

OldHinduLunarCalendar

public OldHinduLunarCalendar(AlternateCalendar altcalendar)
Creates a new OldHinduLunarCalendar object.

Parameters:
altcalendar - DOCUMENT ME!

OldHinduLunarCalendar

public OldHinduLunarCalendar(int i,
                             int j,
                             int k)
Creates a new OldHinduLunarCalendar object.

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

OldHinduLunarCalendar

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

Parameters:
i - DOCUMENT ME!
flag - DOCUMENT ME!
j - DOCUMENT ME!
k - DOCUMENT ME!
Method Detail

isLeapYear

protected static boolean isLeapYear(int i)
DOCUMENT ME!

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

recomputeFromRD

protected void recomputeFromRD()
DOCUMENT ME!

Overrides:
recomputeFromRD in class OldHinduSolarCalendar

recomputeRD

protected void recomputeRD()
DOCUMENT ME!

Overrides:
recomputeRD in class OldHinduSolarCalendar
Throws:
InconsistentDateException - DOCUMENT ME!

set

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

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

set

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

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

set

public void set(long l)
DOCUMENT ME!

Overrides:
set in class OldHinduSolarCalendar
Parameters:
l - DOCUMENT ME!

monthName

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

Overrides:
monthName in class OldHinduSolarCalendar
Returns:
DOCUMENT ME!

getSuffix

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

Overrides:
getSuffix in class OldHinduSolarCalendar
Returns:
DOCUMENT ME!

getMonths

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

Overrides:
getMonths in class OldHinduSolarCalendar
Returns:
DOCUMENT ME!

getLeap

public boolean getLeap()
DOCUMENT ME!

Returns:
DOCUMENT ME!

main

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

Parameters:
args - DOCUMENT ME!