jadex.micro.examples.mandelbrot.IFractalAlgorithm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-micro Show documentation
Show all versions of jadex-applications-micro Show documentation
The Jadex micro applications package contains several example applications, benchmarks and testcases using micro agents.
package jadex.micro.examples.mandelbrot;
/**
* Algorithm for calculating a fractal.
*/
public interface IFractalAlgorithm
{
/**
* Determine the color of a point.
* @param x The x coordinate.
* @param y The y coordinate.
* @param max The maximum depth.
* @return A value for the point from 0 to max-1
* or -1 if the value is at the maximum.
*/
public short determineColor(double x, double y, short max);
/**
* Can areas be filled?
*/
public boolean isOptimizationAllowed();
/**
* Get default settings for rendering the fractal.
*/
public AreaData getDefaultSettings();
/**
* Should a cyclic color scheme be used?
*/
public boolean useColorCycle();
}