Package jadex.micro.mandelbrot.model
Class AbstractFractalAlgorithm
java.lang.Object
jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
- All Implemented Interfaces:
IFractalAlgorithm
- Direct Known Subclasses:
BurningShipFractalAlgorithm
,JuliaSetAlgorithm
,LyapunovAlgorithm
,MandelbrotAlgorithm
,NewtonFractalAlgorithm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<IFractalAlgorithm> createAlgorithms
(List<Class<IFractalAlgorithm>> algos) Create a list of algorithm instances from their classes;boolean
Test if two objects are equal.static IFractalAlgorithm
getDefaultAlgorithm
(List<IFractalAlgorithm> algos) Get the default algorithm.int
hashCode()
Get the hash code.boolean
The default algorithm.boolean
Can areas be filled?toString()
Get a string representation.boolean
Should a cyclic color scheme be used?Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface jadex.micro.mandelbrot.model.IFractalAlgorithm
determineColor, getDefaultSettings
-
Constructor Details
-
AbstractFractalAlgorithm
public AbstractFractalAlgorithm()
-
-
Method Details
-
isOptimizationAllowed
public boolean isOptimizationAllowed()Can areas be filled?- Specified by:
isOptimizationAllowed
in interfaceIFractalAlgorithm
-
useColorCycle
public boolean useColorCycle()Should a cyclic color scheme be used?- Specified by:
useColorCycle
in interfaceIFractalAlgorithm
-
isDefault
public boolean isDefault()The default algorithm.- Specified by:
isDefault
in interfaceIFractalAlgorithm
-
toString
Get a string representation. -
equals
Test if two objects are equal. -
hashCode
public int hashCode()Get the hash code. -
createAlgorithms
Create a list of algorithm instances from their classes;- Parameters:
algos
- The algo classes.- Returns:
- The algo instances.
-
getDefaultAlgorithm
Get the default algorithm.- Parameters:
algos
- The algo classes.- Returns:
- The algo instances.
-