Class AbstractFractalAlgorithm

java.lang.Object
jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
All Implemented Interfaces:
IFractalAlgorithm
Direct Known Subclasses:
BurningShipFractalAlgorithm, JuliaSetAlgorithm, LyapunovAlgorithm, MandelbrotAlgorithm, NewtonFractalAlgorithm

public abstract class AbstractFractalAlgorithm extends Object implements IFractalAlgorithm
  • Constructor Details

    • AbstractFractalAlgorithm

      public AbstractFractalAlgorithm()
  • Method Details

    • isOptimizationAllowed

      public boolean isOptimizationAllowed()
      Can areas be filled?
      Specified by:
      isOptimizationAllowed in interface IFractalAlgorithm
    • useColorCycle

      public boolean useColorCycle()
      Should a cyclic color scheme be used?
      Specified by:
      useColorCycle in interface IFractalAlgorithm
    • isDefault

      public boolean isDefault()
      The default algorithm.
      Specified by:
      isDefault in interface IFractalAlgorithm
    • toString

      public String toString()
      Get a string representation.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Test if two objects are equal.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Get the hash code.
      Overrides:
      hashCode in class Object
    • createAlgorithms

      public static List<IFractalAlgorithm> createAlgorithms(List<Class<IFractalAlgorithm>> algos)
      Create a list of algorithm instances from their classes;
      Parameters:
      algos - The algo classes.
      Returns:
      The algo instances.
    • getDefaultAlgorithm

      public static IFractalAlgorithm getDefaultAlgorithm(List<IFractalAlgorithm> algos)
      Get the default algorithm.
      Parameters:
      algos - The algo classes.
      Returns:
      The algo instances.