Class SPKLightTimeProvider

java.lang.Object
gov.nasa.jpl.lighttime.SPKLightTimeProvider
All Implemented Interfaces:
LightTimeProvider

public class SPKLightTimeProvider extends Object implements LightTimeProvider
  • Constructor Details

    • SPKLightTimeProvider

      public SPKLightTimeProvider()
  • Method Details

    • upleg

      public Duration upleg(Time t, int sc_id, int body_id, String time_reference)
      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 interface LightTimeProvider
      Parameters:
      t -
      sc_id -
      body_id -
      time_reference -
      Returns:
      A new Duration object
    • downleg

      public Duration downleg(Time t, int sc_id, int body_id, String time_reference)
      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 interface LightTimeProvider
      Parameters:
      t -
      sc_id -
      body_id -
      time_reference -
      Returns:
      A new Duration object