|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcs290b.project.api.Task
cs290b.project.tasks.MandelbrotTaskImpl
public class MandelbrotTaskImpl
Executes a divide and conquer version of the Mandelbrot set.
Constructor Summary | |
---|---|
MandelbrotTaskImpl(double startX,
double startY,
double width,
int split,
int max)
Constructor accepting the arguements to create the set. |
Method Summary | |
---|---|
static double |
abs(double a,
double bi)
|
java.lang.Object |
execute(java.lang.Object input)
Execute the task. |
int |
getMax()
|
int |
getSplit()
|
double |
getStartX()
|
double |
getStartY()
|
TaskId |
getTaskId()
Return the associated TaskId |
double |
getWidth()
|
java.lang.Object |
runMandelbrot()
Executes the Mandelbrot set on the current values. |
void |
setTaskId(TaskId value)
Assign the associated TaskId. |
Methods inherited from class cs290b.project.api.Task |
---|
compareTo, compute, executeOnServer, getArgIndex, getChildTasks, getCriticalPath, getRunTime, getShared, getSourceServer, getSuccessorId, sendEvent, setArgIndex, setCriticalPath, setRunTime, setShared, setSourceServer, setSuccessorId, setSupport |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MandelbrotTaskImpl(double startX, double startY, double width, int split, int max)
startX
- The lower left x-coordinate of the region.startY
- The lower left y-coordinate of the region.width
- The width of the square.split
- The number of times to split the square.max
- The number of iterations ("black" regions).Method Detail |
---|
public void setTaskId(TaskId value)
Task
setTaskId
in class Task
value
- The TaskId to set.public TaskId getTaskId()
Task
getTaskId
in class Task
public double getStartX()
public double getStartY()
public double getWidth()
public int getSplit()
public int getMax()
public java.lang.Object execute(java.lang.Object input)
execute
in class Task
input
- The shared input set by the client
public java.lang.Object runMandelbrot()
public static double abs(double a, double bi)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |