edu.hawaii.ics.yucheng
Class SpanningTreeApplet.DownloadGraphWorker

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.DownloadGraphWorker
Enclosing class:
SpanningTreeApplet

 class SpanningTreeApplet.DownloadGraphWorker
extends SpanningTreeApplet.Worker

A class that solves downloaded graphs in a background thread.


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.hawaii.ics.yucheng.SpanningTreeApplet.Worker
SpanningTreeApplet.Worker.Delegate
 
Field Summary
private  java.net.URL myUrl
           
 
Constructor Summary
SpanningTreeApplet.DownloadGraphWorker(java.net.URL url)
          Initializes a new instance of the class.
 
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
 

Field Detail

myUrl

private final java.net.URL myUrl
Constructor Detail

SpanningTreeApplet.DownloadGraphWorker

public SpanningTreeApplet.DownloadGraphWorker(java.net.URL url)
Initializes a new instance of the class. The class will download and solve the graph at the specified URL if it executes.

Parameters:
url - The URL.
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.