Class AreaData


  • public class AreaData
    extends java.lang.Object
    Struct for calculation of a specific mandelbrot cutout.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IFractalAlgorithm algorithm
      The algorithm used to calculate the data.
      protected IComponentIdentifier cid
      The calculator service provider id.
      protected short[][] data
      The result data.
      protected java.lang.String displayid
      The display id.
      protected short max
      The max value where iteration is stopped.
      protected int par
      The number of parallel workers.
      protected int sizex
      The x size.
      protected int sizey
      The y size.
      protected int tasksize
      The tasksize of a task (in pixel/points).
      protected double xend
      The x end.
      protected int xoff
      The x offset.
      protected double xstart
      The x start.
      protected double yend
      The y end.
      protected int yoff
      The y offset.
      protected double ystart
      The y start.
    • Constructor Summary

      Constructors 
      Constructor Description
      AreaData()
      Create an empty area data.
      AreaData​(double xstart, double xend, double ystart, double yend, int xoff, int yoff, int sizex, int sizey, short max, int par, int tasksize, IFractalAlgorithm algorithm, IComponentIdentifier cid, short[][] data, java.lang.String displayid)
      Create a new area data.
      AreaData​(double xstart, double xend, double ystart, double yend, int sizex, int sizey, short max, int par, int tasksize, IFractalAlgorithm algorithm, java.lang.String displayid)
      Create a new area data.
    • Field Detail

      • xstart

        protected double xstart
        The x start.
      • xend

        protected double xend
        The x end.
      • ystart

        protected double ystart
        The y start.
      • yend

        protected double yend
        The y end.
      • xoff

        protected int xoff
        The x offset.
      • yoff

        protected int yoff
        The y offset.
      • sizex

        protected int sizex
        The x size.
      • sizey

        protected int sizey
        The y size.
      • max

        protected short max
        The max value where iteration is stopped.
      • par

        protected int par
        The number of parallel workers.
      • tasksize

        protected int tasksize
        The tasksize of a task (in pixel/points).
      • algorithm

        protected IFractalAlgorithm algorithm
        The algorithm used to calculate the data.
      • data

        protected short[][] data
        The result data.
      • displayid

        protected java.lang.String displayid
        The display id.
    • Constructor Detail

      • AreaData

        public AreaData()
        Create an empty area data.
      • AreaData

        public AreaData​(double xstart,
                        double xend,
                        double ystart,
                        double yend,
                        int sizex,
                        int sizey,
                        short max,
                        int par,
                        int tasksize,
                        IFractalAlgorithm algorithm,
                        java.lang.String displayid)
        Create a new area data.
      • AreaData

        public AreaData​(double xstart,
                        double xend,
                        double ystart,
                        double yend,
                        int xoff,
                        int yoff,
                        int sizex,
                        int sizey,
                        short max,
                        int par,
                        int tasksize,
                        IFractalAlgorithm algorithm,
                        IComponentIdentifier cid,
                        short[][] data,
                        java.lang.String displayid)
        Create a new area data.
    • Method Detail

      • getXStart

        public double getXStart()
        Get the xstart.
        Returns:
        the xstart.
      • setXStart

        public void setXStart​(double xstart)
        Set the xstart.
        Parameters:
        xstart - The xstart to set.
      • getXEnd

        public double getXEnd()
        Get the xend.
        Returns:
        the xend.
      • setXEnd

        public void setXEnd​(double xend)
        Set the xend.
        Parameters:
        xend - The xend to set.
      • getYStart

        public double getYStart()
        Get the ystart.
        Returns:
        the ystart.
      • setYStart

        public void setYStart​(double ystart)
        Set the ystart.
        Parameters:
        ystart - The ystart to set.
      • getYEnd

        public double getYEnd()
        Get the yend.
        Returns:
        the yend.
      • setYEnd

        public void setYEnd​(double yend)
        Set the yend.
        Parameters:
        yend - The yend to set.
      • getXOffset

        public int getXOffset()
        Get the x offset.
        Returns:
        the x offset.
      • setXOffset

        public void setXOffset​(int xoff)
        Set the x offset.
        Parameters:
        xoff - The x offset to set.
      • getYOffset

        public int getYOffset()
        Get the y offset.
        Returns:
        the y offset.
      • setYOffset

        public void setYOffset​(int yoff)
        Set the y offset.
        Parameters:
        yoff - The y offset to set.
      • getSizeX

        public int getSizeX()
        Get the sizex.
        Returns:
        the sizex.
      • setSizeX

        public void setSizeX​(int sizex)
        Set the sizex.
        Parameters:
        sizex - The sizex to set.
      • getSizeY

        public int getSizeY()
        Get the sizey.
        Returns:
        the sizey.
      • setSizeY

        public void setSizeY​(int sizey)
        Set the sizey.
        Parameters:
        sizey - The sizey to set.
      • getMax

        public short getMax()
        Get the max value.
        Returns:
        the max value.
      • setMax

        public void setMax​(short max)
        Set the max value.
        Parameters:
        max - The max value to set.
      • fetchData

        public short[][] fetchData()
        Get the data.
        Returns:
        the data.
      • setData

        public void setData​(short[][] data)
        Set the data.
        Parameters:
        data - The data to set.
      • getDataString

        public java.lang.String getDataString()
        Get the data as a transferable string.
        Returns:
        the data string.
      • setDataString

        public void setDataString​(java.lang.String sdata)
        Set the data.
        Parameters:
        data - The data to set.
      • getParallel

        public int getParallel()
        Get the par.
        Returns:
        the par.
      • setParallel

        public void setParallel​(int par)
        Set the par.
        Parameters:
        par - The par to set.
      • getCalculatorId

        public IComponentIdentifier getCalculatorId()
        Get the calculator id.
        Returns:
        the calculator id.
      • setCalculatorId

        public void setCalculatorId​(IComponentIdentifier cid)
        Set the calculator id.
        Parameters:
        id - The calculator id to set.
      • getTaskSize

        public int getTaskSize()
        Get the tasksize.
        Returns:
        the tasksize.
      • setTaskSize

        public void setTaskSize​(int tasksize)
        Set the tasksize.
        Parameters:
        tasksize - The tasksize to set.
      • getAlgorithm

        public IFractalAlgorithm getAlgorithm()
        Get the algorithm.
        Returns:
        the algorithm.
      • setAlgorithm

        public void setAlgorithm​(IFractalAlgorithm algorithm)
        Set the algorithm.
        Parameters:
        algorithm - The algorithm to set.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object
      • getDisplayId

        public java.lang.String getDisplayId()
        Get the displayid.
        Returns:
        the displayid.
      • setDisplayId

        public void setDisplayId​(java.lang.String displayid)
        Set the displayid.
        Parameters:
        displayid - The displayid to set.
      • getId

        public java.lang.Object getId()
        Value for identifying this area data.