integration
Class IntegratorLoader

java.lang.Object
  extended by integration.IntegratorLoader

public class IntegratorLoader
extends java.lang.Object

IntegratorLoader loads any integrator classes specified in the integrators.ini and inserts them into a list of available integrators. This is used to integrate plugin integrators into the console. The init() method is called from the main() method of SystemicBeta.


Method Summary
static Integrator get(java.lang.String name)
          Returns the integrator class corresponding to the given name.
static int getBuiltInIntMethod(java.lang.String name)
           
static java.lang.Object[] getBuiltInList()
           
static Integrator getByIntMethod(int intMethod)
          Given an intMethod (integer identifier) returns the corresponding integrator class.
static java.lang.String getByIntMethodName(int intMethod)
          Returns the name corresponding to intMethod (unique integer identifier).
static Integrator getIntegrator(int i)
          Gets the class of integrator #i in the private list.
static int getIntMethod(java.lang.String name)
          Returns a unique integer identifier for the requested integrator.
static java.lang.String getName(int i)
          Gets the name field of integrator #i in the private list.
static void init()
          Loads all the integrator classes specified in integrators.ini.
static int size()
          Count of loaded integrators.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static Integrator get(java.lang.String name)
Returns the integrator class corresponding to the given name.

Parameters:
name - String representation of the desired integrator.
Returns:
Integrator corresponding to name.

getIntMethod

public static int getIntMethod(java.lang.String name)
Returns a unique integer identifier for the requested integrator. Identifiers from 0 to 10 are reserved for builtin integrators (0 = Keplerian, 1 = Runge Kutta, 5 = Hermite, etc.), so all plugin integrators have intMethod > 10.

Parameters:
name - Integrator name.
Returns:
Unique intMethod.

getByIntMethod

public static Integrator getByIntMethod(int intMethod)
Given an intMethod (integer identifier) returns the corresponding integrator class.

Parameters:
intMethod - Unique identifier (>10).
Returns:
integrator class.

getByIntMethodName

public static java.lang.String getByIntMethodName(int intMethod)
Returns the name corresponding to intMethod (unique integer identifier).

Parameters:
intMethod - Unique integer identifier (>10)
Returns:
Corresponding integrator name.

size

public static int size()
Count of loaded integrators.

Returns:
Count.

getName

public static java.lang.String getName(int i)
Gets the name field of integrator #i in the private list.


getBuiltInIntMethod

public static int getBuiltInIntMethod(java.lang.String name)

getBuiltInList

public static java.lang.Object[] getBuiltInList()

getIntegrator

public static Integrator getIntegrator(int i)
Gets the class of integrator #i in the private list.


init

public static void init()
Loads all the integrator classes specified in integrators.ini.