Module JNISpice
Package spice.basic

Class JEDDuration


  • public class JEDDuration
    extends Duration
    Class JEDDuration measures time intervals in units of Julian ephemeris days; the time system used for this measurement is TDB.

    Version 1.0.0 28-NOV-2009 (NJB)

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double measure  
    • Constructor Summary

      Constructors 
      Constructor Description
      JEDDuration()
      No-arguments constructor.
      JEDDuration​(double days)
      Construct a JEDDuration from a double precision count of Julian ephemeris days.
      JEDDuration​(Duration d, Time startTime)
      Create a TDTDuration from any Duration subclass and a start Time.
      JEDDuration​(JEDDuration d)
      Copy constructor.
    • Method Summary

      Modifier and Type Method Description
      JEDDuration add​(JEDDuration d)
      Add a JEDDuration to this instance.
      double getMeasure()
      Return the measure of a TDTDuration.Units are TDT seconds.
      double getTDBSeconds​(Time startTime)
      Convert this instance to a count of of TDB seconds, measured relative to a given count of TDB seconds past J2000 TDB.
      JEDDuration negate()
      Negate a JEDDuration.
      JEDDuration scale​(double s)
      Scale a JEDDuration.
      JEDDuration sub​(JEDDuration d)
      Subtract a JEDDuration from this instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • measure

        private double measure
    • Constructor Detail

      • JEDDuration

        public JEDDuration()
        No-arguments constructor.
      • JEDDuration

        public JEDDuration​(double days)
        Construct a JEDDuration from a double precision count of Julian ephemeris days.
        Parameters:
        days - double
      • JEDDuration

        public JEDDuration​(JEDDuration d)
        Copy constructor.
        Parameters:
        d - JEDDuration
      • JEDDuration

        public JEDDuration​(Duration d,
                           Time startTime)
                    throws SpiceException
        Create a TDTDuration from any Duration subclass and a start Time.
        Parameters:
        d - Duration
        startTime - Time
        Throws:
        SpiceException - exception
    • Method Detail

      • getTDBSeconds

        public double getTDBSeconds​(Time startTime)
                             throws SpiceException
        Convert this instance to a count of of TDB seconds, measured relative to a given count of TDB seconds past J2000 TDB.
        Specified by:
        getTDBSeconds in class Duration
        Parameters:
        startTime - Time
        Returns:
        double
        Throws:
        SpiceException - exception
      • add

        public JEDDuration add​(JEDDuration d)
        Add a JEDDuration to this instance.
        Parameters:
        d - JEDDuration
        Returns:
        JEDDuration
      • sub

        public JEDDuration sub​(JEDDuration d)
        Subtract a JEDDuration from this instance.
        Parameters:
        d - JEDDuration
        Returns:
        JEDDuration
      • scale

        public JEDDuration scale​(double s)
        Scale a JEDDuration.
        Specified by:
        scale in class Duration
        Parameters:
        s - double
        Returns:
        JEDDuration