Package jadex.micro.examples.mandelbrot
Class AreaData
- java.lang.Object
-
- jadex.micro.examples.mandelbrot.AreaData
-
public class AreaData extends java.lang.ObjectStruct for calculation of a specific mandelbrot cutout.
-
-
Field Summary
Fields Modifier and Type Field Description protected IFractalAlgorithmalgorithmThe algorithm used to calculate the data.protected IComponentIdentifiercidThe calculator service provider id.protected short[][]dataThe result data.protected java.lang.StringdisplayidThe display id.protected shortmaxThe max value where iteration is stopped.protected intparThe number of parallel workers.protected intsizexThe x size.protected intsizeyThe y size.protected inttasksizeThe tasksize of a task (in pixel/points).protected doublexendThe x end.protected intxoffThe x offset.protected doublexstartThe x start.protected doubleyendThe y end.protected intyoffThe y offset.protected doubleystartThe 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short[][]fetchData()Get the data.IFractalAlgorithmgetAlgorithm()Get the algorithm.IComponentIdentifiergetCalculatorId()Get the calculator id.java.lang.StringgetDataString()Get the data as a transferable string.java.lang.StringgetDisplayId()Get the displayid.java.lang.ObjectgetId()Value for identifying this area data.shortgetMax()Get the max value.intgetParallel()Get the par.intgetSizeX()Get the sizex.intgetSizeY()Get the sizey.intgetTaskSize()Get the tasksize.doublegetXEnd()Get the xend.intgetXOffset()Get the x offset.doublegetXStart()Get the xstart.doublegetYEnd()Get the yend.intgetYOffset()Get the y offset.doublegetYStart()Get the ystart.voidsetAlgorithm(IFractalAlgorithm algorithm)Set the algorithm.voidsetCalculatorId(IComponentIdentifier cid)Set the calculator id.voidsetData(short[][] data)Set the data.voidsetDataString(java.lang.String sdata)Set the data.voidsetDisplayId(java.lang.String displayid)Set the displayid.voidsetMax(short max)Set the max value.voidsetParallel(int par)Set the par.voidsetSizeX(int sizex)Set the sizex.voidsetSizeY(int sizey)Set the sizey.voidsetTaskSize(int tasksize)Set the tasksize.voidsetXEnd(double xend)Set the xend.voidsetXOffset(int xoff)Set the x offset.voidsetXStart(double xstart)Set the xstart.voidsetYEnd(double yend)Set the yend.voidsetYOffset(int yoff)Set the y offset.voidsetYStart(double ystart)Set the ystart.java.lang.StringtoString()Get the string representation.
-
-
-
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.
-
cid
protected IComponentIdentifier cid
The calculator service provider id.
-
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:
toStringin classjava.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.
-
-