01: package org.cougaar.demo.mandelbrot.v2;
02:
03: import org.cougaar.demo.mandelbrot.util.FractalMath;
04:
05: /**
06: * This plugin advertises a {@link FractalService} that computes the
07: * Mandelbrot Set.
08: *
09: * @see JuliaCalculator The JuliaCalculator is a pluggable
10: * replacement for this plugin
11: */
12: public class MandelbrotCalculator extends CalculatorBase {
13: protected byte[] calculate(int width, int height, double min_x,
14: double max_x, double min_y, double max_y) {
15: return FractalMath.mandelbrot(width, height, min_x, max_x,
16: min_y, max_y);
17: }
18: }
|