

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object Integrator
Integrator is an abstract class which can be subclassed to create any kind of numerical integrator. All calculations are performed using Points enabling any dimension of problem to be solved without rewriting either this superclass or any its subclasses.
Field Summary  
protected int 
steps
The number of steps being used for the integration. 
protected double 
x
Current value of the independent variable that the integration is begin performed with respect to. 
protected double 
x0
Initial value of the independent variable that the integration is begin performed with respect to. 
protected double 
x1
Final value of the independent variable that the integration is begin performed with respect to. 
protected Point 
y
Current state of the system being integrated. 
protected Point 
y0
Initial state of the system being integrated. 
Constructor Summary  
Integrator(double xStart,
double xEnd,
Point yStart,
int steps)
Constructor to instantiate Integrator  never called directly. 
Method Summary  
abstract Point 
function(double x,
Point y)
Method to calculate the required function which defines the problem being integrated. 
double 
getIV()
Method used to return the current value of the independent variable. 
Point 
getLocation()
Method used to return the current state of the system. 
abstract Point 
integrate()
Abstract method which performs the numerical integration, implemented by any subclass of Integrator. 
void 
run()
Method used to start a new thread performing the integration. 
void 
setEnd(double x1)
Method used to reset the final value of the independent variable used in the numerical integration. 
void 
setSteps(int steps)
Method used to reset the number of steps used in the numerical integration. 
abstract java.lang.String 
toString()
Abstract method to return the problem being integrated in human readable form. 
Methods inherited from class java.lang.Object 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
Field Detail 
protected final double x0
protected double x1
protected double x
protected final Point y0
protected Point y
protected int steps
Constructor Detail 
public Integrator(double xStart, double xEnd, Point yStart, int steps)
Method Detail 
public abstract Point integrate()
public abstract Point function(double x, Point y)
public abstract java.lang.String toString()
public Point getLocation()
public double getIV()
public void setSteps(int steps)
public void setEnd(double x1)
public void run()
run
in interface java.lang.Runnable


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 