public class AreaData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected IFractalAlgorithm |
algorithm
The algorithm used to calculate the data.
|
protected jadex.bridge.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 and 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,
jadex.bridge.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.
|
Modifier and Type | Method and Description |
---|---|
short[][] |
fetchData()
Get the data.
|
IFractalAlgorithm |
getAlgorithm()
Get the algorithm.
|
jadex.bridge.IComponentIdentifier |
getCalculatorId()
Get the calculator id.
|
java.lang.String |
getDataString()
Get the data as a transferable string.
|
java.lang.String |
getDisplayId()
Get the displayid.
|
java.lang.Object |
getId()
Value for identifying this area data.
|
short |
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.
|
int |
getXOffset()
Get the x offset.
|
double |
getXStart()
Get the xstart.
|
double |
getYEnd()
Get the yend.
|
int |
getYOffset()
Get the y offset.
|
double |
getYStart()
Get the ystart.
|
void |
setAlgorithm(IFractalAlgorithm algorithm)
Set the algorithm.
|
void |
setCalculatorId(jadex.bridge.IComponentIdentifier cid)
Set the calculator id.
|
void |
setData(short[][] data)
Set the data.
|
void |
setDataString(java.lang.String sdata)
Set the data.
|
void |
setDisplayId(java.lang.String displayid)
Set the displayid.
|
void |
setMax(short 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 |
setXOffset(int xoff)
Set the x offset.
|
void |
setXStart(double xstart)
Set the xstart.
|
void |
setYEnd(double yend)
Set the yend.
|
void |
setYOffset(int yoff)
Set the y offset.
|
void |
setYStart(double ystart)
Set the ystart.
|
java.lang.String |
toString()
Get the string representation.
|
protected double xstart
protected double xend
protected double ystart
protected double yend
protected int xoff
protected int yoff
protected int sizex
protected int sizey
protected short max
protected int par
protected jadex.bridge.IComponentIdentifier cid
protected int tasksize
protected IFractalAlgorithm algorithm
protected short[][] data
protected java.lang.String displayid
public 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)
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, jadex.bridge.IComponentIdentifier cid, short[][] data, java.lang.String displayid)
public double getXStart()
public void setXStart(double xstart)
xstart
- The xstart to set.public double getXEnd()
public void setXEnd(double xend)
xend
- The xend to set.public double getYStart()
public void setYStart(double ystart)
ystart
- The ystart to set.public double getYEnd()
public void setYEnd(double yend)
yend
- The yend to set.public int getXOffset()
public void setXOffset(int xoff)
xoff
- The x offset to set.public int getYOffset()
public void setYOffset(int yoff)
yoff
- The y offset to set.public int getSizeX()
public void setSizeX(int sizex)
sizex
- The sizex to set.public int getSizeY()
public void setSizeY(int sizey)
sizey
- The sizey to set.public short getMax()
public void setMax(short max)
max
- The max value to set.public short[][] fetchData()
public void setData(short[][] data)
data
- The data to set.public java.lang.String getDataString()
public void setDataString(java.lang.String sdata)
data
- The data to set.public int getParallel()
public void setParallel(int par)
par
- The par to set.public jadex.bridge.IComponentIdentifier getCalculatorId()
public void setCalculatorId(jadex.bridge.IComponentIdentifier cid)
id
- The calculator id to set.public int getTaskSize()
public void setTaskSize(int tasksize)
tasksize
- The tasksize to set.public IFractalAlgorithm getAlgorithm()
public void setAlgorithm(IFractalAlgorithm algorithm)
algorithm
- The algorithm to set.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDisplayId()
public void setDisplayId(java.lang.String displayid)
displayid
- The displayid to set.public java.lang.Object getId()