integration
Class Hermite

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

public class Hermite
extends java.lang.Object
implements Integrator


Field Summary
static double precision
           
 
Constructor Summary
Hermite(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)
           
 java.lang.String getAuthor()
          Returns the author's name.
 boolean getCloseEncounter()
           
 java.lang.String getDesc()
          Returns a description of the integrator.
 double getMass(int i)
           
 double[] getPos(int i)
           
 java.lang.Object getProperty(int property)
          Reserved for future use.
 double[] getVel(int i)
           
 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)
           
 void restore(double[][] acc, double[][] jerk)
           
 void save(double[][] acc, double[][] jerk)
           
 void setBody(int i, double m, double x, double y, double z, double vx, double vy, double vz)
           
 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

precision

public static double precision
Constructor Detail

Hermite

public Hermite(int nbodies)
Method Detail

main

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

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()

advance

public double advance(double timeInterval,
                      double tstep)

advance

public 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.

setBody

public void setBody(int i,
                    double m,
                    double x,
                    double y,
                    double z,
                    double vx,
                    double vy,
                    double vz)

getMass

public double getMass(int i)

getPos

public double[] getPos(int i)

getVel

public double[] getVel(int i)

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.

restore

public void restore(double[][] acc,
                    double[][] jerk)

save

public void save(double[][] acc,
                 double[][] jerk)