JPPF
 Home   About   Download   Documentation   Forums 

Generation of Mandelbrot Fractals

What does the sample do?

This sample generates Mandelbrot fractals images by submitting the computation to a JPPF grid.

How do I run it?

Before running this sample application, you must have a JPPF server and at least one node running.
For information on how to set up a node and server, please refer to the JPPF documentation.
Once you have a server and node, you can either run the "run.bat" script (on Windows), "./run.sh" script (on Linux/Unix) or, from a command prompt, type: "ant run".

How do I use it?

The GUI provides many options and a lot of interactivity.

The "Compute" button submits the image generation for processing by JPPF.

The image generation is governed by a set of 4 parameters:

  • center X: the X coordinate of the center of the image
  • center Y: the Y coordinate of the center of the image
  • diameter: this determines the range of possible values of both X and Y axis
  • iterations: this is the maximum number of iterations of the algorithm, before considering that a point "escapes" the Mandelbrot set
Tip: modifying the cordinates of the center is equivalent to a "pan" functionality
Tip: modifying the diameter provides, in effect, a zooming capability

You can interact with the image using the mouse:

  • a left click will zoom-in by the value of the zoom factor, and move the center to the selected point
  • a right click will zoom-out by the value of the zoom factor, and move the center to the selected point

The zoom-in and zoom-out buttons provide a static zoom functionality (they do not move the center).
Tip: setting the zoom factor to 1 and clicking left or right in the image is equivalent to panning with the mouse.

How can I build the sample?

To compile the source code, from a command prompt, type: "ant compile"
To generate the Javadoc, from a command prompt, type: "ant javadoc"

I have additional questions and comments, where can I go?

If you need more insight into the code of this demo, you can consult the source, or have a look at the API documentation.

In addition, There are 2 privileged places you can go to:

Support This Project Copyright © 2005-2011 JPPF.org Powered by Parallel Matters  Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads