class Planets
extends java.lang.Object
The methods and data here are static so that an object instance does not have to be created before use the methods/data in this class
Copyright (c) 2018
Constructor and Description |
---|
Planets() |
Modifier and Type | Method and Description |
---|---|
protected static int |
findPlanetIdx(java.lang.String sName)
Find the index into the planetsTable for the given name.
|
protected static double |
getj0(int i)
Gets the j0 parameter for interpolating to get perihelion/aphelion.
|
protected static double |
getj1(int i)
Gets the j1 parameter for interpolating to get perihelion/aphelion.
|
protected static double |
getj2(int i)
Gets the j2 parameter for interpolating to get perihelion/aphelion.
|
protected static double |
getk0(int i)
Gets the k0 parameter for interpolating to get perihelion/aphelion.
|
protected static double |
getk1(int i)
Gets the k1 parameter for interpolating to get perihelion/aphelion.
|
protected static int |
getNumPlanets()
Gets the number of planets in the planetsTable.
|
protected static java.lang.String |
getPlanetName(int i)
Gets a planet's name.
|
protected static int |
getValidPlanet()
Ask user for a planet's name and return its index from the currently
loaded orbital elements.
|
protected static java.lang.String getPlanetName(int i)
i
- index into planetsTableprotected static double getk0(int i)
i
- index into planetsTableprotected static double getk1(int i)
i
- index into planetsTableprotected static double getj0(int i)
i
- index into planetsTableprotected static double getj1(int i)
i
- index into planetsTableprotected static double getj2(int i)
i
- index into planetsTableprotected static int getNumPlanets()
protected static int findPlanetIdx(java.lang.String sName)
sName
- name of the planet to findprotected static int getValidPlanet()