jadex.micro.examples.mandelbrot
Class AreaData

java.lang.Object
  extended by jadex.micro.examples.mandelbrot.AreaData

public class AreaData
extends Object

Struct for calculation of a specific mandelbrot cutout.


Field Summary
protected  int[][] data
          The result data.
protected  Object id
          The id.
protected  int 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  double xstart
          The x start.
protected  double yend
          The y end.
protected  double ystart
          The y start.
 
Constructor Summary
AreaData(double xstart, double xend, double ystart, double yend, int sizex, int sizey, int max)
          Create a new area data.
AreaData(double xstart, double xend, double ystart, double yend, int sizex, int sizey, int max, int par, int tasksize)
          Create a new area data.
AreaData(double xstart, double xend, double ystart, double yend, int sizex, int sizey, int max, int par, int tasksize, Object id, int[][] data)
          Create a new area data.
 
Method Summary
 int[][] getData()
          Get the data.
 Object getId()
          Get the id.
 int getMax()
          Get the max value.
 int getParallel()
          Get the par.
 int getSizeX()
          Get the sizex.
 int getSizeY()
          Get the sizey.
 int getTaskSize()
          Get the tasksize.
 double getXEnd()
          Get the xend.
 double getXStart()
          Get the xstart.
 double getYEnd()
          Get the yend.
 double getYStart()
          Get the ystart.
 void setData(int[][] data)
          Set the data.
 void setId(Object id)
          Set the id.
 void setMax(int max)
          Set the max value.
 void setParallel(int par)
          Set the par.
 void setSizeX(int sizex)
          Set the sizex.
 void setSizeY(int sizey)
          Set the sizey.
 void setTaskSize(int tasksize)
          Set the tasksize.
 void setXEnd(double xend)
          Set the xend.
 void setXStart(double xstart)
          Set the xstart.
 void setYEnd(double yend)
          Set the yend.
 void setYStart(double ystart)
          Set the ystart.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.


sizex

protected int sizex
The x size.


sizey

protected int sizey
The y size.


max

protected int max
The max value where iteration is stopped.


par

protected int par
The number of parallel workers.


id

protected Object id
The id.


tasksize

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


data

protected int[][] data
The result data.

Constructor Detail

AreaData

public AreaData(double xstart,
                double xend,
                double ystart,
                double yend,
                int sizex,
                int sizey,
                int max)
Create a new area data.


AreaData

public AreaData(double xstart,
                double xend,
                double ystart,
                double yend,
                int sizex,
                int sizey,
                int max,
                int par,
                int tasksize)
Create a new area data.


AreaData

public AreaData(double xstart,
                double xend,
                double ystart,
                double yend,
                int sizex,
                int sizey,
                int max,
                int par,
                int tasksize,
                Object id,
                int[][] data)
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.

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 int getMax()
Get the max value.

Returns:
the max value.

setMax

public void setMax(int max)
Set the max value.

Parameters:
max - The max value to set.

getData

public int[][] getData()
Get the data.

Returns:
the data.

setData

public void setData(int[][] data)
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.

getId

public Object getId()
Get the id.

Returns:
the id.

setId

public void setId(Object id)
Set the id.

Parameters:
id - The 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.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.