djfractal
Interface Scheduler

All Known Implementing Classes:
AbstractScheduler, SingleScheduler

public interface Scheduler

Scheduler interface.

Scheduler implementation may provide a constructor which takes an EngineStatsFrames in parameter. This EngineStatsFrames may be contacted through its EngineStatsFrames.updateStats(FractalData fd, jaya.djfractal.FractalComputer fc) in order to gather statistics.

Scheduler specific information can be displayed on the JPanel returned by EngineStatsFrames.getSpecificPanel().

Version:
1.0
Author:
eipi
See Also:
EngineStatsFrames, FractalComputer, FractalData

Method Summary
 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.
 

Method Detail

prepareComputation

public void prepareComputation(java.util.Collection fcs)

Prepare the computation.

Sets the FractalComputer collection.

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)

Initialize any FractalComputer.

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 jaya.djfractal.FractalComputer nextFC(FractalData fd)

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.

Parameters:
fd - a FractalData value
Returns:
a jaya.djfractal.FractalComputer value


DJFractal help mailing list