Terrenus HRPT v2.2

terrenus.orbit
Class AbstractOrbitalElementSource

java.lang.Object
  extended by terrenus.orbit.AbstractOrbitalElementSource
All Implemented Interfaces:
OrbitalElementSource
Direct Known Subclasses:
ArchiveElementSource, CurrentElementSource

public abstract class AbstractOrbitalElementSource
extends java.lang.Object
implements OrbitalElementSource

The AbstractOrbitalElementSource class implements useful method for all orbital element sources.


Constructor Summary
AbstractOrbitalElementSource()
           
 
Method Summary
static java.util.Date getEpoch(java.lang.String[] elements)
          Gets the element epoch date.
static double getEpochOffset(java.lang.String[] elements, java.util.Date date)
          Computes the day offset from the element epoch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface terrenus.orbit.OrbitalElementSource
getElements
 

Constructor Detail

AbstractOrbitalElementSource

public AbstractOrbitalElementSource()
Method Detail

getEpoch

public static java.util.Date getEpoch(java.lang.String[] elements)
Gets the element epoch date.

Parameters:
elements - the two-line orbital element strings.
Returns:
the element epoch date.

getEpochOffset

public static double getEpochOffset(java.lang.String[] elements,
                                    java.util.Date date)
Computes the day offset from the element epoch.

Parameters:
elements - the two-line orbital element strings.
date - the date to compute the offset.
Returns:
the day offset from the element epoch, positive if the date is after the element epoch, and negative if before.

Terrenus HRPT v2.2