org.shetline.astronomy
Class SolarSystem
java.lang.Object
org.shetline.astronomy.SolarSystem
public class SolarSystem
- extends Object
Method Summary |
void |
addAsteroidCometInitializationListener(ChangeListener listener)
|
static void |
delaySharedAsteroidCometInit(boolean delayIt)
|
double |
getAngularDiameter(int planet,
double time_JDE)
|
double |
getAngularDiameter(int planet,
double time_JDE,
boolean polarSize)
|
double |
getAngularDiameter(int planet,
double time_JDE,
SkyObserver observer)
|
double |
getAngularDiameter(int planet,
double time_JDE,
SkyObserver observer,
boolean polarSize)
|
String[] |
getAsteroidCometNames()
|
String[] |
getAsteroidCometNames(boolean forMenu)
|
int |
getAsteroidCount()
|
int |
getCometCount()
|
protected double |
getCosPhaseAngle(int planet,
double time_JDE)
|
SphericalPosition3D |
getEclipticPosition(int planet,
double time_JDE)
|
protected SphericalPosition3D |
getEclipticPosition(int planet,
double time_JDE,
double earthTime,
SkyObserver observer,
int flags)
|
SphericalPosition3D |
getEclipticPosition(int planet,
double time_JDE,
int flags)
|
SphericalPosition3D |
getEclipticPosition(int planet,
double time_JDE,
SkyObserver observer)
|
SphericalPosition3D |
getEclipticPosition(int planet,
double time_JDE,
SkyObserver observer,
int flags)
|
SphericalPosition3D |
getEquatorialPosition(int planet,
double time_JDE)
|
SphericalPosition3D |
getEquatorialPosition(int planet,
double time_JDE,
int flags)
|
SphericalPosition3D |
getEquatorialPosition(int planet,
double time_JDE,
SkyObserver observer)
|
SphericalPosition3D |
getEquatorialPosition(int planet,
double time_JDE,
SkyObserver observer,
int flags)
|
double |
getGreenwichApparentSiderealTime(double time_JDU)
|
static double |
getGreenwichMeanSiderealTime(double time_JDU)
|
SphericalPosition3D |
getHeliocentricPosition(int planet,
double time_JDE)
|
SphericalPosition3D |
getHeliocentricPosition(int planet,
double time_JDE,
int flags)
|
SphericalPosition3D |
getHeliocentricPosition(OrbitalElements oe)
|
SphericalPosition3D |
getHorizontalPosition(int planet,
double time_JDU,
SkyObserver observer)
|
SphericalPosition3D |
getHorizontalPosition(int planet,
double time_JDU,
SkyObserver observer,
int flags)
|
Angle |
getHourAngle(int planet,
double time_JDU,
SkyObserver observer)
|
Angle |
getHourAngle(int planet,
double time_JDU,
SkyObserver observer,
int flags)
|
double |
getIlluminatedFraction(int planet,
double time_JDE)
|
double |
getLocalSolarEclipseTotality(double time_JDE,
SkyObserver observer)
|
SolarSystem.EclipseInfo |
getLunarEclipseInfo(double time_JDE)
|
double |
getLunarIlluminatedFraction(double time_JDE)
|
double |
getLunarPhase(double time_JDE)
|
double |
getMagnitude(int planet,
double time_JDE)
|
double |
getMeanConjunctionPeriod(int planet)
|
double |
getMeanOrbitalPeriod(int planet)
|
String |
getMenuNameForName(String name)
|
OrbitalElements |
getOrbitalElements(int planet,
double time_JDE)
|
Angle |
getParallacticAngle(int planet,
double time_JDU,
SkyObserver observer)
|
Angle |
getParallacticAngle(int planet,
double time_JDU,
SkyObserver observer,
int flags)
|
double |
getPhaseAngle(int planet,
double time_JDE)
|
int |
getPlanetByName(String planetName)
|
String |
getPlanetName(int planet)
|
String |
getPlanetSymbol(int planet)
|
protected double |
getPrecision(int planet,
int flags)
|
SolarSystem.RingInfo |
getSaturnRingInfo(double time_JDE)
|
SolarSystem.EclipseInfo |
getSolarEclipseInfo(double time_JDE)
|
SolarSystem.EclipseInfo |
getSolarEclipseInfo(double time_JDE,
boolean locateShadow)
|
double |
getSolarElongation(int planet,
double time_JDE)
|
double |
getSolarElongation(int planet,
double time_JDE,
SkyObserver observer)
|
double |
getSolarElongation(int planet,
double time_JDE,
SkyObserver observer,
int flags)
|
protected double |
getSolarElongationInLongitude(int planet,
double time_JDE)
|
double |
getTimeForDegreesOfChange(int bodyID,
double startTime_JDE,
double degrees,
double maxTime_JDE)
|
static void |
initSharedAsteroidsAndComets()
|
static void |
initSharedAsteroidsAndComets(boolean waitForAsteroidCometData)
|
static boolean |
isAsteroid(int planet)
|
static boolean |
isAsteroidOrComet(int planet)
|
static boolean |
isComet(int planet)
|
static boolean |
isNominalPlanet(int planet)
|
static boolean |
isTruePlanet(int planet)
|
static boolean |
orbitsSun(int planet)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ecliptic
protected Ecliptic ecliptic
moon
protected EclipticBody moon
additionals
protected AdditionalOrbitingObjects additionals
planets
protected HeliocentricPlanets planets
pluto
protected Pluto pluto
planetNames
protected String[] planetNames
planetSymbols
protected String[] planetSymbols
delaySharedACInitialization
protected static boolean delaySharedACInitialization
sharedAdditionals
protected static AdditionalOrbitingObjects sharedAdditionals
sharedAdditionalsLock
protected static final Object sharedAdditionalsLock
elems
protected static final double[][][] elems
SolarSystem
public SolarSystem()
SolarSystem
public SolarSystem(String asteroidDataPath,
String cometDataPath)
SolarSystem
protected SolarSystem(String asteroidDataPath,
String cometDataPath,
boolean waitForAsteroidCometData)
delaySharedAsteroidCometInit
public static void delaySharedAsteroidCometInit(boolean delayIt)
initSharedAsteroidsAndComets
public static void initSharedAsteroidsAndComets()
initSharedAsteroidsAndComets
public static void initSharedAsteroidsAndComets(boolean waitForAsteroidCometData)
getPlanetName
public String getPlanetName(int planet)
getPlanetByName
public int getPlanetByName(String planetName)
getPlanetSymbol
public String getPlanetSymbol(int planet)
getMenuNameForName
public String getMenuNameForName(String name)
addAsteroidCometInitializationListener
public void addAsteroidCometInitializationListener(ChangeListener listener)
getAsteroidCount
public int getAsteroidCount()
getCometCount
public int getCometCount()
getAsteroidCometNames
public String[] getAsteroidCometNames()
getAsteroidCometNames
public String[] getAsteroidCometNames(boolean forMenu)
getHeliocentricPosition
public SphericalPosition3D getHeliocentricPosition(int planet,
double time_JDE)
getHeliocentricPosition
public SphericalPosition3D getHeliocentricPosition(int planet,
double time_JDE,
int flags)
getPrecision
protected double getPrecision(int planet,
int flags)
getEclipticPosition
public SphericalPosition3D getEclipticPosition(int planet,
double time_JDE)
getEclipticPosition
public SphericalPosition3D getEclipticPosition(int planet,
double time_JDE,
int flags)
getEclipticPosition
public SphericalPosition3D getEclipticPosition(int planet,
double time_JDE,
SkyObserver observer)
getEclipticPosition
public SphericalPosition3D getEclipticPosition(int planet,
double time_JDE,
SkyObserver observer,
int flags)
getEclipticPosition
protected SphericalPosition3D getEclipticPosition(int planet,
double time_JDE,
double earthTime,
SkyObserver observer,
int flags)
getEquatorialPosition
public SphericalPosition3D getEquatorialPosition(int planet,
double time_JDE)
getEquatorialPosition
public SphericalPosition3D getEquatorialPosition(int planet,
double time_JDE,
int flags)
getEquatorialPosition
public SphericalPosition3D getEquatorialPosition(int planet,
double time_JDE,
SkyObserver observer)
getEquatorialPosition
public SphericalPosition3D getEquatorialPosition(int planet,
double time_JDE,
SkyObserver observer,
int flags)
getGreenwichMeanSiderealTime
public static double getGreenwichMeanSiderealTime(double time_JDU)
getGreenwichApparentSiderealTime
public double getGreenwichApparentSiderealTime(double time_JDU)
getHorizontalPosition
public SphericalPosition3D getHorizontalPosition(int planet,
double time_JDU,
SkyObserver observer)
getHorizontalPosition
public SphericalPosition3D getHorizontalPosition(int planet,
double time_JDU,
SkyObserver observer,
int flags)
getHourAngle
public Angle getHourAngle(int planet,
double time_JDU,
SkyObserver observer)
getHourAngle
public Angle getHourAngle(int planet,
double time_JDU,
SkyObserver observer,
int flags)
getParallacticAngle
public Angle getParallacticAngle(int planet,
double time_JDU,
SkyObserver observer)
getParallacticAngle
public Angle getParallacticAngle(int planet,
double time_JDU,
SkyObserver observer,
int flags)
getLunarPhase
public double getLunarPhase(double time_JDE)
getLunarIlluminatedFraction
public double getLunarIlluminatedFraction(double time_JDE)
getCosPhaseAngle
protected double getCosPhaseAngle(int planet,
double time_JDE)
getPhaseAngle
public double getPhaseAngle(int planet,
double time_JDE)
getIlluminatedFraction
public double getIlluminatedFraction(int planet,
double time_JDE)
getSolarElongation
public double getSolarElongation(int planet,
double time_JDE)
getSolarElongation
public double getSolarElongation(int planet,
double time_JDE,
SkyObserver observer)
getSolarElongation
public double getSolarElongation(int planet,
double time_JDE,
SkyObserver observer,
int flags)
getSolarElongationInLongitude
protected double getSolarElongationInLongitude(int planet,
double time_JDE)
getSaturnRingInfo
public SolarSystem.RingInfo getSaturnRingInfo(double time_JDE)
getMagnitude
public double getMagnitude(int planet,
double time_JDE)
getAngularDiameter
public double getAngularDiameter(int planet,
double time_JDE)
getAngularDiameter
public double getAngularDiameter(int planet,
double time_JDE,
SkyObserver observer)
getAngularDiameter
public double getAngularDiameter(int planet,
double time_JDE,
boolean polarSize)
getAngularDiameter
public double getAngularDiameter(int planet,
double time_JDE,
SkyObserver observer,
boolean polarSize)
getOrbitalElements
public OrbitalElements getOrbitalElements(int planet,
double time_JDE)
getHeliocentricPosition
public SphericalPosition3D getHeliocentricPosition(OrbitalElements oe)
getMeanOrbitalPeriod
public double getMeanOrbitalPeriod(int planet)
getMeanConjunctionPeriod
public double getMeanConjunctionPeriod(int planet)
getLunarEclipseInfo
public SolarSystem.EclipseInfo getLunarEclipseInfo(double time_JDE)
getSolarEclipseInfo
public SolarSystem.EclipseInfo getSolarEclipseInfo(double time_JDE)
getSolarEclipseInfo
public SolarSystem.EclipseInfo getSolarEclipseInfo(double time_JDE,
boolean locateShadow)
getLocalSolarEclipseTotality
public double getLocalSolarEclipseTotality(double time_JDE,
SkyObserver observer)
getTimeForDegreesOfChange
public double getTimeForDegreesOfChange(int bodyID,
double startTime_JDE,
double degrees,
double maxTime_JDE)
isNominalPlanet
public static boolean isNominalPlanet(int planet)
isTruePlanet
public static boolean isTruePlanet(int planet)
isAsteroid
public static boolean isAsteroid(int planet)
isComet
public static boolean isComet(int planet)
isAsteroidOrComet
public static boolean isAsteroidOrComet(int planet)
orbitsSun
public static boolean orbitsSun(int planet)