Jeospace API

org.jeospace.physics.orbit
Class LunarPhase

java.lang.Object
  extended byorg.jeospace.physics.orbit.LunarPhase

public abstract class LunarPhase
extends java.lang.Object

An abstract class containing utility functions for calculating the lunar phase and times of the Moon's arrival at the New Moon, First Quarter, Full Moon, and Last Quarter phases. Lunar phase is the angular separation of the Moon and the Sun as observed from the Earth. The New Moon, First Quarter, Full Moon, and Last Quarter phases correspond to the phase angles of 0, 90, 180 and 270 degrees respectively.

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton
See Also:
Calendar

Constructor Summary
protected LunarPhase()
          Restricted constructor
 
Method Summary
static java.util.Calendar getNext(LunarPhaseID id)
          Get the Calendar date of the next occurrence of the requested phase transition of the Moon.
static java.util.Calendar getNext(LunarPhaseID id, java.util.Calendar cal)
          Get the Calendar date of the next occurrence of the requested phase transition of the Moon after the specified Calendar.
static double getPhase()
          Get the double representation of the current phase angle of the Moon in degrees.
static double getPhase(java.util.Calendar calendar)
          Get the double representation of the phase angle of the Moon at the specified Calendar in degrees.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LunarPhase

protected LunarPhase()
Restricted constructor

Method Detail

getPhase

public static double getPhase()
Get the double representation of the current phase angle of the Moon in degrees.

Returns:
the double representation of the requested phase angle in degrees

getPhase

public static double getPhase(java.util.Calendar calendar)
Get the double representation of the phase angle of the Moon at the specified Calendar in degrees.

Parameters:
calendar - the Calendar date at which to calculate the phase angle
Returns:
the double representation of the requested phase angle in degrees

getNext

public static java.util.Calendar getNext(LunarPhaseID id)
Get the Calendar date of the next occurrence of the requested phase transition of the Moon.

Parameters:
id - the identifier of the lunar phase
Returns:
the Calendar date of the requested phase

getNext

public static java.util.Calendar getNext(LunarPhaseID id,
                                         java.util.Calendar cal)
Get the Calendar date of the next occurrence of the requested phase transition of the Moon after the specified Calendar.

Parameters:
id - the LunarPhaseID identifier of the lunar phase
cal - the Calendar date after which to calculate the requested phase
Returns:
the Calendar date of the requested phase transition

Jeospace API

Copyright © 2006 - jeospace.org