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;booleanTest if two objects are equal.static IFractalAlgorithmgetDefaultAlgorithm(List<IFractalAlgorithm> algos) Get the default algorithm.inthashCode()Get the hash code.booleanThe default algorithm.booleanCan areas be filled?toString()Get a string representation.booleanShould a cyclic color scheme be used?Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
isOptimizationAllowedin interfaceIFractalAlgorithm
-
useColorCycle
public boolean useColorCycle()Should a cyclic color scheme be used?- Specified by:
useColorCyclein interfaceIFractalAlgorithm
-
isDefault
public boolean isDefault()The default algorithm.- Specified by:
isDefaultin 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.
-