Sky View Café - Java

org.shetline.astronomy
Class AdditionalOrbitingObjects

java.lang.Object
  extended by org.shetline.astronomy.AdditionalOrbitingObjects

public class AdditionalOrbitingObjects
extends Object


Nested Class Summary
static class AdditionalOrbitingObjects.ObjectInfo
           
 
Field Summary
protected static boolean debug
           
protected static String DEFAULT_ASTEROID_FILE
           
protected static String DEFAULT_COMET_FILE
           
protected  ListenerHandler<ChangeListener> initializationListeners
           
protected  boolean initialized
           
protected static Object initLock
           
protected  boolean initStarted
           
protected  int lastAsteroidID
           
protected  int lastCometID
           
protected static Comparator<String> nameComparator
           
protected static double NEAR_PARABOLIC_E_HIGH
           
protected static double NEAR_PARABOLIC_E_LOW
           
protected  Hashtable<Integer,AdditionalOrbitingObjects.ObjectInfo[]> objects
           
 
Constructor Summary
AdditionalOrbitingObjects()
           
 
Method Summary
 void addChangeListener(ChangeListener listener)
           
 void broadcastChange()
           
protected  void failedToConverge(int code, AdditionalOrbitingObjects.ObjectInfo oi, double time_JDE)
           
 int getAsteroidCount()
           
 int getCometCount()
           
 SphericalPosition3D getHeliocentricPosition(AdditionalOrbitingObjects.ObjectInfo oi, double time_JDE)
           
protected  SphericalPosition3D getHeliocentricPosition(AdditionalOrbitingObjects.ObjectInfo oi, double time_JDE, boolean doNotConverge)
           
 SphericalPosition3D getHeliocentricPosition(int bodyID, double time_JDE)
           
static Object getInitializationLock()
           
 double[] getMagnitudeParameters(int bodyID)
           
 String getMenuNameForName(String name)
           
 int getObjectByName(String name)
           
 int getObjectCount()
           
protected  AdditionalOrbitingObjects.ObjectInfo getObjectInfo(int bodyID)
           
protected  AdditionalOrbitingObjects.ObjectInfo getObjectInfo(int bodyID, double time_JDE)
           
 String getObjectName(int bodyID)
           
 String[] getObjectNames()
           
 String[] getObjectNames(boolean forMenu)
           
 OrbitalElements getOrbitalElements(int bodyID, double time_JDE)
           
 void init()
           
 void init(boolean waitForData)
           
 void init(String asteroidDataPath, String cometDataPath)
           
 void init(String asteroidDataPath, String cometDataPath, boolean waitForData)
           
 boolean isInitialized()
           
protected  double kepler(double ecc, double meanAnomaly)
           
protected  double keplerH(double ecc, double meanAnomaly)
           
 void readElements(InputStream elementsIn, boolean asAsteroids)
           
 void removeChangeListener(ChangeListener listener)
           
protected  void saveObjectInfo(ArrayList<AdditionalOrbitingObjects.ObjectInfo> entries)
           
 void setInitialized(boolean state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initializationListeners

protected ListenerHandler<ChangeListener> initializationListeners

initialized

protected boolean initialized

initStarted

protected boolean initStarted

lastAsteroidID

protected int lastAsteroidID

lastCometID

protected int lastCometID

objects

protected Hashtable<Integer,AdditionalOrbitingObjects.ObjectInfo[]> objects

debug

protected static final boolean debug
See Also:
Constant Field Values

DEFAULT_ASTEROID_FILE

protected static final String DEFAULT_ASTEROID_FILE
See Also:
Constant Field Values

DEFAULT_COMET_FILE

protected static final String DEFAULT_COMET_FILE
See Also:
Constant Field Values

initLock

protected static final Object initLock

NEAR_PARABOLIC_E_LOW

protected static final double NEAR_PARABOLIC_E_LOW
See Also:
Constant Field Values

NEAR_PARABOLIC_E_HIGH

protected static final double NEAR_PARABOLIC_E_HIGH
See Also:
Constant Field Values

nameComparator

protected static Comparator<String> nameComparator
Constructor Detail

AdditionalOrbitingObjects

public AdditionalOrbitingObjects()
Method Detail

init

public void init()

getInitializationLock

public static Object getInitializationLock()

init

public void init(boolean waitForData)

init

public void init(String asteroidDataPath,
                 String cometDataPath)

init

public void init(String asteroidDataPath,
                 String cometDataPath,
                 boolean waitForData)

isInitialized

public boolean isInitialized()

addChangeListener

public void addChangeListener(ChangeListener listener)

removeChangeListener

public void removeChangeListener(ChangeListener listener)

broadcastChange

public void broadcastChange()

setInitialized

public void setInitialized(boolean state)

readElements

public void readElements(InputStream elementsIn,
                         boolean asAsteroids)
                  throws IOException
Throws:
IOException

saveObjectInfo

protected void saveObjectInfo(ArrayList<AdditionalOrbitingObjects.ObjectInfo> entries)

getObjectInfo

protected AdditionalOrbitingObjects.ObjectInfo getObjectInfo(int bodyID)

getObjectInfo

protected AdditionalOrbitingObjects.ObjectInfo getObjectInfo(int bodyID,
                                                             double time_JDE)

getHeliocentricPosition

public SphericalPosition3D getHeliocentricPosition(int bodyID,
                                                   double time_JDE)

getHeliocentricPosition

public SphericalPosition3D getHeliocentricPosition(AdditionalOrbitingObjects.ObjectInfo oi,
                                                   double time_JDE)

getHeliocentricPosition

protected SphericalPosition3D getHeliocentricPosition(AdditionalOrbitingObjects.ObjectInfo oi,
                                                      double time_JDE,
                                                      boolean doNotConverge)

failedToConverge

protected void failedToConverge(int code,
                                AdditionalOrbitingObjects.ObjectInfo oi,
                                double time_JDE)

kepler

protected double kepler(double ecc,
                        double meanAnomaly)

keplerH

protected double keplerH(double ecc,
                         double meanAnomaly)

getObjectCount

public int getObjectCount()

getObjectNames

public String[] getObjectNames()

getObjectNames

public String[] getObjectNames(boolean forMenu)

getAsteroidCount

public int getAsteroidCount()

getCometCount

public int getCometCount()

getObjectName

public String getObjectName(int bodyID)

getObjectByName

public int getObjectByName(String name)

getMenuNameForName

public String getMenuNameForName(String name)

getMagnitudeParameters

public double[] getMagnitudeParameters(int bodyID)

getOrbitalElements

public OrbitalElements getOrbitalElements(int bodyID,
                                          double time_JDE)

Sky View Café - Java