integration
Class Hermite2

java.lang.Object
  extended by integration.Hermite2
All Implemented Interfaces:
Integrator

public class Hermite2
extends java.lang.Object
implements Integrator


Field Summary
static double dt_param
           
 
Constructor Summary
Hermite2(int nbodies)
           
 
Method Summary
 double advance(double[][] xyzParam, double timeInterval, double tstep)
          Advances the system by the specified time, using xyzParam as initial (r, v).
 double advance(double timeInterval, double tstep)
           
static double[] flatten(double[][] source)
           
 java.lang.String getAuthor()
          Returns the author's name.
 boolean getCloseEncounter()
           
 java.lang.String getDesc()
          Returns a description of the integrator.
 java.lang.Object getProperty(int property)
          Reserved for future use.
 java.lang.String getVersion()
          Returns the version of the integrator.
 boolean hasCloseEncounter()
          Specifies if a close encounter happened during the last advance().
static void main(java.lang.String[] args)
           
static void printTable(java.io.PrintStream out, double[] table, java.lang.String fmt)
           
 void setProperty(int property, java.lang.Object value)
          Reserved for future use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dt_param

public static double dt_param
Constructor Detail

Hermite2

public Hermite2(int nbodies)
Method Detail

getProperty

public java.lang.Object getProperty(int property)
Description copied from interface: Integrator
Reserved for future use.

Specified by:
getProperty in interface Integrator
Parameters:
property - Specifies which property to return.
Returns:
Value of the requested property.

setProperty

public void setProperty(int property,
                        java.lang.Object value)
Description copied from interface: Integrator
Reserved for future use.

Specified by:
setProperty in interface Integrator
Parameters:
property - Which property to set.
value - Value of the property.

getAuthor

public java.lang.String getAuthor()
Description copied from interface: Integrator
Returns the author's name.

Specified by:
getAuthor in interface Integrator
Returns:
Author's name.

getVersion

public java.lang.String getVersion()
Description copied from interface: Integrator
Returns the version of the integrator.

Specified by:
getVersion in interface Integrator
Returns:
Version

getDesc

public java.lang.String getDesc()
Description copied from interface: Integrator
Returns a description of the integrator.

Specified by:
getDesc in interface Integrator
Returns:
Description.

getCloseEncounter

public boolean getCloseEncounter()

main

public static void main(java.lang.String[] args)

flatten

public static final double[] flatten(double[][] source)

printTable

public static void printTable(java.io.PrintStream out,
                              double[] table,
                              java.lang.String fmt)

advance

public final double advance(double timeInterval,
                            double tstep)

advance

public final double advance(double[][] xyzParam,
                            double timeInterval,
                            double tstep)
Description copied from interface: Integrator
Advances the system by the specified time, using xyzParam as initial (r, v). xyzParam is a pointer to the xyzParam field in StellarSystem, so before finishing xyzParam should be set to the new (r, v).

Specified by:
advance in interface Integrator
Parameters:
xyzParam - Input / output coordinates
timeInterval - Amount of time to evolve for.
tstep - Timestep hint.
Returns:
Last timestep used.

hasCloseEncounter

public boolean hasCloseEncounter()
Description copied from interface: Integrator
Specifies if a close encounter happened during the last advance().

Specified by:
hasCloseEncounter in interface Integrator
Returns:
True if a close encounter happened.