djfractal
Class AbstractScheduler

java.lang.Object
  extended bydjfractal.AbstractScheduler
All Implemented Interfaces:
Scheduler
Direct Known Subclasses:
IndexedScheduler, ProgressiveScheduler

public abstract class AbstractScheduler
extends java.lang.Object
implements Scheduler


Field Summary
protected  EngineStatsFrames engineStatsFrames
           
protected  java.util.Collection fcs
           
 
Constructor Summary
AbstractScheduler(EngineStatsFrames engineStatsFrames)
           
 
Method Summary
protected abstract  jaya.djfractal.FractalComputer _nextFC(FractalData fd)
           
 void initFCS(int iterations, java.math.BigDecimal bailout, int scale, Bounds bounds, int[] colors, boolean verbose)
          Initialize any FractalComputer.
 jaya.djfractal.FractalComputer nextFC(FractalData fd)
          Returns the next FractalComputer for the given FractalData.
 void prepareComputation(java.util.Collection fcs)
          Prepare the computation.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

engineStatsFrames

protected final EngineStatsFrames engineStatsFrames

fcs

protected java.util.Collection fcs
Constructor Detail

AbstractScheduler

public AbstractScheduler(EngineStatsFrames engineStatsFrames)
Method Detail

prepareComputation

public void prepareComputation(java.util.Collection fcs)
Description copied from interface: Scheduler

Prepare the computation.

Sets the FractalComputer collection.

Specified by:
prepareComputation in interface Scheduler
Parameters:
fcs - a java.util.Collection value

initFCS

public void initFCS(int iterations,
                    java.math.BigDecimal bailout,
                    int scale,
                    Bounds bounds,
                    int[] colors,
                    boolean verbose)
Description copied from interface: Scheduler

Initialize any FractalComputer.

Specified by:
initFCS in interface Scheduler
Parameters:
iterations - an int value
bailout - a java.math.BigDecimal value
scale - an int value
bounds - a Bounds value
colors - an int[] value
verbose - a boolean value

nextFC

public final jaya.djfractal.FractalComputer nextFC(FractalData fd)
Description copied from interface: Scheduler

Returns the next FractalComputer for the given FractalData.

The EngineStatsFrames sets with the constructor any Scheduler instance may provide may be contacted through its EngineStatsFrames.updateStats(FractalData fd, jaya.djfractal.FractalComputer fc) method.

Specified by:
nextFC in interface Scheduler
Parameters:
fd - a FractalData value
Returns:
a jaya.djfractal.FractalComputer value

_nextFC

protected abstract jaya.djfractal.FractalComputer _nextFC(FractalData fd)

toString

public java.lang.String toString()


DJFractal help mailing list