|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclient.mandelbrot.MandelbrotGUITask
public class MandelbrotGUITask
Wrapper class for the Mandelbrot set inputs given in the MandelbrotGUI.
Constructor Summary | |
---|---|
MandelbrotGUITask()
Creates a new instance of MandelbrotTask |
|
MandelbrotGUITask(double iStart,
double rStart,
double sideLength,
int iterMax,
int resolution,
double rScale,
double gScale,
double bScale)
Creates a new instance of MandelbrotGUITask |
|
MandelbrotGUITask(MandelbrotGUITask task)
Copy Constructor |
Method Summary | |
---|---|
static void |
addIntermediateTasks(java.util.ArrayList<MandelbrotGUITask> tasks,
MandelbrotGUITask t1,
MandelbrotGUITask t2,
int numFrames)
Static method calculates MandelbrotGUITasks that lie between the two given tasks |
MbrotTask |
convert()
|
boolean |
equals(MandelbrotGUITask task)
Determines if two tasks are computationally equivilent |
double |
getBScale()
|
double |
getGScale()
|
double |
getImaginaryStart()
|
int |
getIterMax()
|
double |
getRealStart()
|
int |
getResolution()
|
double |
getRScale()
|
double |
getSideLength()
|
boolean |
isZoomRelativeOf(MandelbrotGUITask task)
Determines if this task is a zoom relative of another |
void |
setBScale(double b)
|
void |
setGScale(double g)
|
void |
setImaginaryStart(double i)
|
void |
setIterMax(int i)
|
void |
setRealStart(double r)
|
void |
setResolution(int r)
|
void |
setRScale(double r)
|
void |
setSideLength(double s)
|
MbrotEvent |
solve()
Solve the task with a Mandelbrot solver without decomposing |
void |
splitAndSolve(java.util.concurrent.LinkedBlockingQueue<MbrotEvent> eventQueue,
int pieces)
Decomposes this task and creates MandelbrotSolver threads to solve each sub-Task |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MandelbrotGUITask()
public MandelbrotGUITask(double iStart, double rStart, double sideLength, int iterMax, int resolution, double rScale, double gScale, double bScale)
iStart
- Imaginary component starting point.rStart
- Real component starting point.sideLength
- Side Length in complex plane.iterMax
- Iteration limit for computation.resolution
- Resolution of the resulting solution.rScale
- Red scale valuegScale
- Green scale valuebScale
- Blue scale valuepublic MandelbrotGUITask(MandelbrotGUITask task)
task
- The MandelbrotGUITask to copyMethod Detail |
---|
public MbrotTask convert()
public double getImaginaryStart()
public double getRealStart()
public double getSideLength()
public int getIterMax()
public int getResolution()
public double getRScale()
public double getGScale()
public double getBScale()
public void setImaginaryStart(double i)
public void setRealStart(double r)
public void setSideLength(double s)
public void setIterMax(int i)
public void setResolution(int r)
public void setRScale(double r)
public void setGScale(double g)
public void setBScale(double b)
public boolean equals(MandelbrotGUITask task)
task
- The MandelbrotGUITask to compare this to.
public boolean isZoomRelativeOf(MandelbrotGUITask task)
task
- The potential zoom relative task
public void splitAndSolve(java.util.concurrent.LinkedBlockingQueue<MbrotEvent> eventQueue, int pieces)
eventQueue
- The queue to store sub-Results inpieces
- The number of pieces to decompose this task into. (should be a whole square 4, 9, 25...)public MbrotEvent solve()
public static void addIntermediateTasks(java.util.ArrayList<MandelbrotGUITask> tasks, MandelbrotGUITask t1, MandelbrotGUITask t2, int numFrames)
tasks
- The queue to add computed intermediate tasks tot1
- The begining taskt2
- The ending tasknumFrames
- The number of intermediate tasks to find between t1 and t2.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |