jabble
Class SingleLoopEvolver

java.lang.Object
  extended by jabble.Evolver
      extended by jabble.SingleLoopEvolver
Direct Known Subclasses:
GaussSeidel, Jacobi, RungeKutta

public abstract class SingleLoopEvolver
extends Evolver

An Evolver that performs a single loop over the Grid. Implement the looping logic for other template Evolvers like Jacobi or LaxWendroff.


Field Summary
 
Fields inherited from class jabble.Evolver
constantsMap, dDirs, fieldArrayMap, fieldMap, grid, stopTrigger
 
Constructor Summary
SingleLoopEvolver()
           
 
Method Summary
protected  void calculateNewFields()
          Implements the loop over the Grid.
protected abstract  void calculateNewFields(Point point)
          Calculates the value of the fields at the given Point.
 
Methods inherited from class jabble.Evolver
evolve, evolve, evolve, getNPreviousSlicesNeeded, initializeFieldArray, initializeFieldArray, skipBoundaryPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleLoopEvolver

public SingleLoopEvolver()
Method Detail

calculateNewFields

protected final void calculateNewFields()
Implements the loop over the Grid.

Specified by:
calculateNewFields in class Evolver

calculateNewFields

protected abstract void calculateNewFields(Point point)
Calculates the value of the fields at the given Point.

Parameters:
point - the point where to compute the new value of the fields