Enum KBO_MODEL

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<KBO_MODEL>

    public enum KBO_MODEL
    extends java.lang.Enum<KBO_MODEL>
    Definitions of the available models for the Kuiper belt objects in DE440 and possibly other numerical integrations.
    Author:
    talonso
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DE440
      DE440 KBO model
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRingModel​(NBodyOutput out, double jd, int index)
      Adds the KBOs to the nbody output instance
      static java.util.Set<java.lang.String> getListOfKBOs()
      Returns the names of the KBOs from the array of TARGET
      static KBO_MODEL getRingModel​(java.lang.String deVersion)
      Returns the ring model associated with a given JPL integration version
      int getTotalBodies()
      The total number of physical plus ring bodies.
      static boolean hasRingModel​(java.lang.String deVersion)
      Returns if a given JPL integration has a ring model
      static TARGET identifyKBO​(java.lang.String name)
      Identifies a KBO by its name
      void setRingModelForBody​(IntegratedBodyElement be, double jd, int ringIndex)
      Sets a given ring particle for the input body element
      static KBO_MODEL valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static KBO_MODEL[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • DE440

        public static final KBO_MODEL DE440
        DE440 KBO model
    • Method Detail

      • values

        public static KBO_MODEL[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (KBO_MODEL c : KBO_MODEL.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static KBO_MODEL valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getTotalBodies

        public int getTotalBodies()
        The total number of physical plus ring bodies.
        Returns:
        Number of total bodies
      • addRingModel

        public void addRingModel​(NBodyOutput out,
                                 double jd,
                                 int index)
                          throws spice.basic.SpiceErrorException,
                                 java.io.IOException
        Adds the KBOs to the nbody output instance
        Parameters:
        out - Instance
        jd - Julian day for the start of the calculations
        index - First index to start the insert of bodies
        Throws:
        spice.basic.SpiceErrorException - Ephemeris/kernel errors
        java.io.IOException - File system errors when reading constant GMS from JPL header
      • setRingModelForBody

        public void setRingModelForBody​(IntegratedBodyElement be,
                                        double jd,
                                        int ringIndex)
                                 throws spice.basic.SpiceErrorException,
                                        java.io.IOException
        Sets a given ring particle for the input body element
        Parameters:
        be - Integrated body object in which to set the properties
        jd - Date
        ringIndex - Ring index, the particles are distributed around a circular orbit based on the index
        Throws:
        spice.basic.SpiceErrorException - Ephemeris/kernel errors
        java.io.IOException - File system errors when reading constant GMS from JPL header
      • getRingModel

        public static KBO_MODEL getRingModel​(java.lang.String deVersion)
        Returns the ring model associated with a given JPL integration version
        Parameters:
        deVersion - Integration version, like 'DE440'
        Returns:
        Ring model, or null if there is not any
      • hasRingModel

        public static boolean hasRingModel​(java.lang.String deVersion)
        Returns if a given JPL integration has a ring model
        Parameters:
        deVersion - JPL version, like 'DE440'
        Returns:
        True for DE440, false otherwise
      • getListOfKBOs

        public static java.util.Set<java.lang.String> getListOfKBOs()
        Returns the names of the KBOs from the array of TARGET
        Returns:
        List of KBOs
      • identifyKBO

        public static TARGET identifyKBO​(java.lang.String name)
        Identifies a KBO by its name
        Parameters:
        name - Name of the KBO as it appears in the orbital elements of asteroids
        Returns:
        TARGET with name 'KBO_' plus the name provided, replacing ' ' by '_'