client.mandelbrot
Class MandelbrotSolver

java.lang.Object
  extended by java.lang.Thread
      extended by client.mandelbrot.MandelbrotSolver
All Implemented Interfaces:
java.lang.Runnable

public class MandelbrotSolver
extends java.lang.Thread

RMI simulator that calculates a Mandelbrot Set for a complex plane

Author:
Mark Wiley

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MandelbrotSolver()
          Creates a new instance of MandelbrotSetTask
MandelbrotSolver(double rmin, double imin, double sideLen, int resolution, int itrLimit, int rowStart, int colStart)
           
MandelbrotSolver(double rmin, double imin, double sideLen, int resolution, int itrLimit, int rowStart, int colStart, java.util.concurrent.LinkedBlockingQueue<MbrotEvent> eventQueue)
          Creates a new instance of MandelbrotSetTask
 
Method Summary
 MbrotEvent execute(java.lang.Object input)
          Overridden execute function that calculates the Mandelbrot Set with the given parameters
 void run()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MandelbrotSolver

public MandelbrotSolver()
Creates a new instance of MandelbrotSetTask


MandelbrotSolver

public MandelbrotSolver(double rmin,
                        double imin,
                        double sideLen,
                        int resolution,
                        int itrLimit,
                        int rowStart,
                        int colStart,
                        java.util.concurrent.LinkedBlockingQueue<MbrotEvent> eventQueue)
Creates a new instance of MandelbrotSetTask

Parameters:
rmin - Minimum real value for complex plane
imin - Minimum imaginary value for complex plane
sideLen - The length of the sides in the complex plane
resolution - The number of subdivsions examined along a side
itrLimit - The iteration limit that defines when the representative point of a region is considered to be in the Mandelbrot set

MandelbrotSolver

public MandelbrotSolver(double rmin,
                        double imin,
                        double sideLen,
                        int resolution,
                        int itrLimit,
                        int rowStart,
                        int colStart)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

execute

public MbrotEvent execute(java.lang.Object input)
Overridden execute function that calculates the Mandelbrot Set with the given parameters

Returns:
An ArrayList of sub-MandelbrotSetTasks or the solution to this task

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Thread