edu.hawaii.ics.yucheng
Class SpanningTreeApplet.RandomGraphWorker

java.lang.Object
  extended by edu.hawaii.ics.yucheng.BackgroundWorker<GraphSolution,java.lang.Object>
      extended by edu.hawaii.ics.yucheng.SpanningTreeApplet.Worker
          extended by edu.hawaii.ics.yucheng.SpanningTreeApplet.RandomGraphWorker
Enclosing class:
SpanningTreeApplet

 class SpanningTreeApplet.RandomGraphWorker
extends SpanningTreeApplet.Worker

A class that solves random graphs in a background thread.


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.hawaii.ics.yucheng.SpanningTreeApplet.Worker
SpanningTreeApplet.Worker.Delegate
 
Constructor Summary
SpanningTreeApplet.RandomGraphWorker()
           
 
Method Summary
protected  GraphSolution solve(GraphSolver solver)
          Solves a graph and returns the solution.
 
Methods inherited from class edu.hawaii.ics.yucheng.SpanningTreeApplet.Worker
processError, processProgress, processResult, run
 
Methods inherited from class edu.hawaii.ics.yucheng.BackgroundWorker
cancel, isCancelled, isRunning, join, processDelegate, sendProgress, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpanningTreeApplet.RandomGraphWorker

SpanningTreeApplet.RandomGraphWorker()
Method Detail

solve

protected GraphSolution solve(GraphSolver solver)
                       throws java.lang.Exception
Solves a graph and returns the solution.

Specified by:
solve in class SpanningTreeApplet.Worker
Parameters:
solver - The graph solver.
Returns:
The solution.
Throws:
java.lang.Exception - Thrown if there are any errors of any kind.