Interface LightTimeProvider

All Known Implementing Classes:
SPKLightTimeProvider

public interface LightTimeProvider
This interface provides a downleg and upleg duration given a time, the two objects, and which frame the duration should be expressed in. The idea is that information from SPICE itself, a 'light time file' for SEQGEN, or Monte can all be injected in and provide the values that underlie the time frame conversion functions.
  • Method Summary

    Modifier and Type
    Method
    Description
    downleg(Time t, int sc_id, int body_id, String time_reference)
     
    upleg(Time t, int sc_id, int body_id, String time_reference)
     
  • Method Details

    • downleg

      Duration downleg(Time t, int sc_id, int body_id, String time_reference)
      Parameters:
      t - The time at which the light time is desired
      sc_id - The SPICE ID of the spacecraft
      body_id - The SPICE ID where one wants the downleg to
      time_reference - Either 'ETT', 'ERT', or 'SCET', depending on the desired frame
      Returns:
      The time it takes light to travel from the spacecraft to the body_id
    • upleg

      Duration upleg(Time t, int sc_id, int body_id, String time_reference)
      Parameters:
      t - The time at which the light time is desired
      sc_id - The SPICE ID of the spacecraft
      body_id - The SPICE ID where one wants the downleg to
      time_reference - Either 'ETT', 'ERT', or 'SCET', depending on the desired frame
      Returns:
      The time it takes light to travel from the body_id to the spacecraft