Enum KBO_MODEL
- java.lang.Object
-
- java.lang.Enum<KBO_MODEL>
-
- talonsoalbi_at_gmail_dot_com.ssoxmatch.ephem.nbody.KBO_MODEL
-
-
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 instancestatic java.util.Set<java.lang.String>
getListOfKBOs()
Returns the names of the KBOs from the array of TARGETstatic KBO_MODEL
getRingModel(java.lang.String deVersion)
Returns the ring model associated with a given JPL integration versionint
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 modelstatic TARGET
identifyKBO(java.lang.String name)
Identifies a KBO by its namevoid
setRingModelForBody(IntegratedBodyElement be, double jd, int ringIndex)
Sets a given ring particle for the input body elementstatic 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.
-
-
-
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 namejava.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
- Instancejd
- Julian day for the start of the calculationsindex
- First index to start the insert of bodies- Throws:
spice.basic.SpiceErrorException
- Ephemeris/kernel errorsjava.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 propertiesjd
- DateringIndex
- Ring index, the particles are distributed around a circular orbit based on the index- Throws:
spice.basic.SpiceErrorException
- Ephemeris/kernel errorsjava.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
-
-