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.String
GENERATOR
Generator 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 short
determineColor(double a, double b, short max)
Determine the color of a point.boolean
equals(java.lang.Object obj)
Test if two objects are equal.AreaData
getDefaultSettings()
Get default settings for rendering the fractal.int
hashCode()
Get the hash code.boolean
isOptimizationAllowed()
Can areas be filled?java.lang.String
toString()
Get a string representation.boolean
useColorCycle()
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:
determineColor
in 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:
getDefaultSettings
in interfaceIFractalAlgorithm
-
useColorCycle
public boolean useColorCycle()
Should a cyclic color scheme be used?- Specified by:
useColorCycle
in interfaceIFractalAlgorithm
-
isOptimizationAllowed
public boolean isOptimizationAllowed()
Can areas be filled?- Specified by:
isOptimizationAllowed
in interfaceIFractalAlgorithm
-
toString
public java.lang.String toString()
Get a string representation.- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if two objects are equal.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Get the hash code.- Overrides:
hashCode
in classjava.lang.Object
-
-