Class RK4

java.lang.Object
  extended byIntegrator
      extended byRK4
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
SolarIntegrator

public abstract class RK4
extends Integrator

RK4 is an abstract subclass of Integrator. The integrate method is implemented to perform 4th order Runge-Kutta integration.


Field Summary
 
Fields inherited from class Integrator
steps, x, x0, x1, y, y0
 
Constructor Summary
RK4(double xStart, double xEnd, Point yStart, int steps)
          Constructor to instantiate RK4 - never called directly.
 
Method Summary
 Point integrate()
          Method which performs RK4 numerical integration, requires that function has been implemented in a subclass.
 
Methods inherited from class Integrator
function, getIV, getLocation, run, setEnd, setSteps, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RK4

public RK4(double xStart,
           double xEnd,
           Point yStart,
           int steps)
Constructor to instantiate RK4 - never called directly.

Method Detail

integrate

public Point integrate()
Method which performs RK4 numerical integration, requires that function has been implemented in a subclass.

Specified by:
integrate in class Integrator