Terrenus HRPT v2.2

terrenus.orbit
Class OrbitalElementManager

java.lang.Object
  extended by terrenus.orbit.OrbitalElementManager
All Implemented Interfaces:
OrbitalElementSource

public class OrbitalElementManager
extends java.lang.Object
implements OrbitalElementSource

The OrbitalElementManager uses a list of OrbitalElementSource objects to provide orbital element data for any number of satellites. Both current and archived element sources may be registered for the manager to use.


Constructor Summary
OrbitalElementManager()
           
 
Method Summary
 java.lang.String[] getElements(int satid, java.util.Date date, double maxDays)
          Gets the orbital elements for the specified satellite and date.
static OrbitalElementManager getInstance()
          Gets an instance of the manager.
 void registerSource(OrbitalElementSource source)
          Registers a new element source with this manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrbitalElementManager

public OrbitalElementManager()
Method Detail

getInstance

public static OrbitalElementManager getInstance()
Gets an instance of the manager.


registerSource

public void registerSource(OrbitalElementSource source)
Registers a new element source with this manager.

Parameters:
source - the new element source.

getElements

public java.lang.String[] getElements(int satid,
                                      java.util.Date date,
                                      double maxDays)
Gets the orbital elements for the specified satellite and date. The first source to report back a set of elements that match the satellite and satisfy the time difference tolerance is used.

Specified by:
getElements in interface OrbitalElementSource
Parameters:
satid - the NORAD orbital element ID for the satellite.
date - the date for orbital element retrieval.
maxDays - the maximum allowed difference between date and orbital element epoch in days.
Returns:
the orbital elements as two strings, or null if none could be found within the specified tolerance.

Terrenus HRPT v2.2