Package gov.nasa.jpl.lighttime
Class SPKLightTimeProvider
java.lang.Object
gov.nasa.jpl.lighttime.SPKLightTimeProvider
- All Implemented Interfaces:
LightTimeProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the downleg duration from a spacecraft represented by sc_id to a body represented by body_id at the specified Time t.Gets the upleg duration to a spacecraft represented by sc_id from a body represented by body_id at the specified Time t.
-
Constructor Details
-
SPKLightTimeProvider
public SPKLightTimeProvider()
-
-
Method Details
-
upleg
Gets the upleg duration to a spacecraft represented by sc_id from a body represented by body_id at the specified Time t. The Spice calculation of the duration is different depending on your time_reference frame, though they are usually very close.- Specified by:
upleg
in interfaceLightTimeProvider
- Parameters:
t
-sc_id
-body_id
-time_reference
-- Returns:
- A new Duration object
-
downleg
Gets the downleg duration from a spacecraft represented by sc_id to a body represented by body_id at the specified Time t. The Spice calculation of the duration is different depending on your time_reference frame, though they are usually very close.- Specified by:
downleg
in interfaceLightTimeProvider
- Parameters:
t
-sc_id
-body_id
-time_reference
-- Returns:
- A new Duration object
-