01: package org.cougaar.demo.mandelbrot.v3;
02:
03: import org.cougaar.demo.mandelbrot.util.FractalMath;
04:
05: /**
06: * This plugin listens for {@link Job} blackboard objects and calculates
07: * a Mandelbrot Set result.
08: */
09: public class MandelbrotCalculator extends CalculatorBase {
10: protected byte[] calculate(int width, int height, double min_x,
11: double max_x, double min_y, double max_y) {
12: return FractalMath.mandelbrot(width, height, min_x, max_x,
13: min_y, max_y);
14: }
15: }
|