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 SummaryFields 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 SummaryConstructors 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 SummaryAll 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- 
xstartprotected double xstart The x start.
 - 
xendprotected double xend The x end.
 - 
ystartprotected double ystart The y start.
 - 
yendprotected double yend The y end.
 - 
xoffprotected int xoff The x offset.
 - 
yoffprotected int yoff The y offset.
 - 
sizexprotected int sizex The x size.
 - 
sizeyprotected int sizey The y size.
 - 
maxprotected short max The max value where iteration is stopped.
 - 
parprotected int par The number of parallel workers.
 - 
cidprotected IComponentIdentifier cid The calculator service provider id.
 - 
tasksizeprotected int tasksize The tasksize of a task (in pixel/points).
 - 
algorithmprotected IFractalAlgorithm algorithm The algorithm used to calculate the data.
 - 
dataprotected short[][] data The result data.
 - 
displayidprotected java.lang.String displayid The display id.
 
- 
 - 
Constructor Detail- 
AreaDatapublic AreaData() Create an empty area data.
 - 
AreaDatapublic 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.
 - 
AreaDatapublic 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- 
getXStartpublic double getXStart() Get the xstart.- Returns:
- the xstart.
 
 - 
setXStartpublic void setXStart(double xstart) Set the xstart.- Parameters:
- xstart- The xstart to set.
 
 - 
getXEndpublic double getXEnd() Get the xend.- Returns:
- the xend.
 
 - 
setXEndpublic void setXEnd(double xend) Set the xend.- Parameters:
- xend- The xend to set.
 
 - 
getYStartpublic double getYStart() Get the ystart.- Returns:
- the ystart.
 
 - 
setYStartpublic void setYStart(double ystart) Set the ystart.- Parameters:
- ystart- The ystart to set.
 
 - 
getYEndpublic double getYEnd() Get the yend.- Returns:
- the yend.
 
 - 
setYEndpublic void setYEnd(double yend) Set the yend.- Parameters:
- yend- The yend to set.
 
 - 
getXOffsetpublic int getXOffset() Get the x offset.- Returns:
- the x offset.
 
 - 
setXOffsetpublic void setXOffset(int xoff) Set the x offset.- Parameters:
- xoff- The x offset to set.
 
 - 
getYOffsetpublic int getYOffset() Get the y offset.- Returns:
- the y offset.
 
 - 
setYOffsetpublic void setYOffset(int yoff) Set the y offset.- Parameters:
- yoff- The y offset to set.
 
 - 
getSizeXpublic int getSizeX() Get the sizex.- Returns:
- the sizex.
 
 - 
setSizeXpublic void setSizeX(int sizex) Set the sizex.- Parameters:
- sizex- The sizex to set.
 
 - 
getSizeYpublic int getSizeY() Get the sizey.- Returns:
- the sizey.
 
 - 
setSizeYpublic void setSizeY(int sizey) Set the sizey.- Parameters:
- sizey- The sizey to set.
 
 - 
getMaxpublic short getMax() Get the max value.- Returns:
- the max value.
 
 - 
setMaxpublic void setMax(short max) Set the max value.- Parameters:
- max- The max value to set.
 
 - 
fetchDatapublic short[][] fetchData() Get the data.- Returns:
- the data.
 
 - 
setDatapublic void setData(short[][] data) Set the data.- Parameters:
- data- The data to set.
 
 - 
getDataStringpublic java.lang.String getDataString() Get the data as a transferable string.- Returns:
- the data string.
 
 - 
setDataStringpublic void setDataString(java.lang.String sdata) Set the data.- Parameters:
- data- The data to set.
 
 - 
getParallelpublic int getParallel() Get the par.- Returns:
- the par.
 
 - 
setParallelpublic void setParallel(int par) Set the par.- Parameters:
- par- The par to set.
 
 - 
getCalculatorIdpublic IComponentIdentifier getCalculatorId() Get the calculator id.- Returns:
- the calculator id.
 
 - 
setCalculatorIdpublic void setCalculatorId(IComponentIdentifier cid) Set the calculator id.- Parameters:
- id- The calculator id to set.
 
 - 
getTaskSizepublic int getTaskSize() Get the tasksize.- Returns:
- the tasksize.
 
 - 
setTaskSizepublic void setTaskSize(int tasksize) Set the tasksize.- Parameters:
- tasksize- The tasksize to set.
 
 - 
getAlgorithmpublic IFractalAlgorithm getAlgorithm() Get the algorithm.- Returns:
- the algorithm.
 
 - 
setAlgorithmpublic void setAlgorithm(IFractalAlgorithm algorithm) Set the algorithm.- Parameters:
- algorithm- The algorithm to set.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
 
 - 
getDisplayIdpublic java.lang.String getDisplayId() Get the displayid.- Returns:
- the displayid.
 
 - 
setDisplayIdpublic void setDisplayId(java.lang.String displayid) Set the displayid.- Parameters:
- displayid- The displayid to set.
 
 - 
getIdpublic java.lang.Object getId() Value for identifying this area data.
 
- 
 
-