The open source
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.
Generating Mandelbrot images
The "Compute" button submits the image generation for processing by JPPF.
The image generation is governed by a set of 4 parameters:
Tip: modifying the diameter provides, in effect, a zooming capability
You can interact with the image using the mouse:
In the toolbar, the and
buttons provide a static zoom functionality (they do not move the center).
Additionally, the dimensions of the image can be set in the config/jppf-client.properties configuration file:
# width of the generated images in pixels image.width = 800 # height of the generated images in pixels image.height = 600
Recording and replaying parameters setsThe sample allows recording multiple sets of parameters (x, y, diameter and iterations) so they can be replayed later, and eventually saved and loaded as CSV files. The saved files can also be reused by the Mandelbrot movie generator sample.
The possible actions are:
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:
|Copyright © 2005-2019 JPPF.org|