driver.ted.astro
Class T_RiseSet

java.lang.Object
  extended by driver.ted.astro.T_RiseSet
All Implemented Interfaces:
java.io.Serializable

public class T_RiseSet
extends java.lang.Object
implements java.io.Serializable

Title: T_Utilities Description: This class will be used to create and maintain the utility classes in the utility package driver.ted.utilities Copyright: (c) 2001 - 2006

Version:
1.2 No Changes to this class Change from Version 1.1 Added an interpolation boundary check The interpolation routine was trying to interpolate over 359 - 0 degrees around March 20 (when the Sun crosses the equator. This caused the max number of iterations to be exceeded. Febuary 6, 2004 Changed the dt computation to make it just the number of leap seconds currently output by USNO (22) plus 32.184 (the number of leap seconds at the start of international Atomic time in 1958
Author:
Ted Driver
See Also:
Serialized Form

Field Summary
static int MOON
          Moon identifier
static int PLANET
          Planet identifier
static int SUN
          Sun identifier
 
Constructor Summary
T_RiseSet()
          Debug constructor to calculate rise and set times for a given time and place
T_RiseSet(T_JulianDate J, double latitude, double longitude, float timeOffset, int bodyType)
          Default constructor to calculate rise and set times for provided date and location The latitude must be in degrees.decimal format.
 
Method Summary
 java.lang.String getAmountOfDaylight()
           
 double getAmountOfDaylightDouble()
           
 int getBodyType()
           
 double getLatitude()
           
 double getLongitude()
           
 float getOffset()
           
 double getRiseAzimuth()
           
 double getRiseElevation()
           
 java.lang.String getRiseTime()
          public function to get the rise time
 double getRiseTimeDouble()
           
 double getSetAzimuth()
           
 double getSetElevation()
           
 java.lang.String getSetTime()
           
 double getSetTimeDouble()
           
 double getTransitAzimuth()
           
 double getTransitElevation()
           
 java.lang.String getTransitTime()
           
 double getTransitTimeDouble()
           
static void main(java.lang.String[] args)
           
 void setbodyType(int bodyType)
           
 void setLatitude(double latitude)
           
 void setLongitude(double longitude)
           
 void setTimeOffset(float timeOffset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUN

public static final int SUN
Sun identifier

See Also:
Constant Field Values

PLANET

public static final int PLANET
Planet identifier

See Also:
Constant Field Values

MOON

public static final int MOON
Moon identifier

See Also:
Constant Field Values
Constructor Detail

T_RiseSet

public T_RiseSet(T_JulianDate J,
                 double latitude,
                 double longitude,
                 float timeOffset,
                 int bodyType)
Default constructor to calculate rise and set times for provided date and location The latitude must be in degrees.decimal format. The longitude must be in degrees.decimal measured negatively West of Greenwich (-180.0 to 180.0) The time offset must be in hours.decimal (-7.5 for example) and negative west of Greenwich. The JulianDate must contain the date for which to calculate the data The bodyType parameter must be either T_RiseSet.SUN or T_RiseSet.PLANET or T_RiseSet.MOON

Parameters:
J - T_JulianDate object defining the time
latitude - Latitude in degrees.decimal
longitude - Longitude in degrees.decimal
timeOffset - Time offset for the reported times
bodyType - Use the defined types in this class

T_RiseSet

public T_RiseSet()
Debug constructor to calculate rise and set times for a given time and place

Method Detail

setLatitude

public void setLatitude(double latitude)

setLongitude

public void setLongitude(double longitude)

setTimeOffset

public void setTimeOffset(float timeOffset)

setbodyType

public void setbodyType(int bodyType)

getLatitude

public double getLatitude()

getLongitude

public double getLongitude()

getOffset

public float getOffset()

getRiseTime

public java.lang.String getRiseTime()
public function to get the rise time


getRiseTimeDouble

public double getRiseTimeDouble()

getRiseElevation

public double getRiseElevation()

getRiseAzimuth

public double getRiseAzimuth()

getTransitTime

public java.lang.String getTransitTime()

getTransitTimeDouble

public double getTransitTimeDouble()

getTransitElevation

public double getTransitElevation()

getTransitAzimuth

public double getTransitAzimuth()

getSetTime

public java.lang.String getSetTime()

getSetTimeDouble

public double getSetTimeDouble()

getSetElevation

public double getSetElevation()

getSetAzimuth

public double getSetAzimuth()

getBodyType

public int getBodyType()

getAmountOfDaylight

public java.lang.String getAmountOfDaylight()

getAmountOfDaylightDouble

public double getAmountOfDaylightDouble()

main

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