Package jadex.micro.examples.mandelbrot
Class LyapunovAlgorithm
- java.lang.Object
-
- jadex.micro.examples.mandelbrot.LyapunovAlgorithm
-
- All Implemented Interfaces:
IFractalAlgorithm
public class LyapunovAlgorithm extends java.lang.Object implements IFractalAlgorithm
Algorithm for calculating Lyapunov fractals.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGENERATORGenerator string (any combination of As and Bs).
-
Constructor Summary
Constructors Constructor Description LyapunovAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortdetermineColor(double a, double b, short max)Determine the color of a point.booleanequals(java.lang.Object obj)Test if two objects are equal.AreaDatagetDefaultSettings()Get default settings for rendering the fractal.inthashCode()Get the hash code.booleanisOptimizationAllowed()Can areas be filled?java.lang.StringtoString()Get a string representation.booleanuseColorCycle()Should a cyclic color scheme be used?
-
-
-
Field Detail
-
GENERATOR
public static final java.lang.String GENERATOR
Generator string (any combination of As and Bs).- See Also:
- Constant Field Values
-
-
Method Detail
-
determineColor
public short determineColor(double a, double b, short max)Determine the color of a point.- Specified by:
determineColorin interfaceIFractalAlgorithm- Parameters:
x- The x coordinate.y- The y coordinate.max- The maximum depth.- Returns:
- A value for the point from 0 to max-1 or -1 for max.
-
getDefaultSettings
public AreaData getDefaultSettings()
Get default settings for rendering the fractal.- Specified by:
getDefaultSettingsin interfaceIFractalAlgorithm
-
useColorCycle
public boolean useColorCycle()
Should a cyclic color scheme be used?- Specified by:
useColorCyclein interfaceIFractalAlgorithm
-
isOptimizationAllowed
public boolean isOptimizationAllowed()
Can areas be filled?- Specified by:
isOptimizationAllowedin interfaceIFractalAlgorithm
-
toString
public java.lang.String toString()
Get a string representation.- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if two objects are equal.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Get the hash code.- Overrides:
hashCodein classjava.lang.Object
-
-