|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.hawaii.ics.yucheng.BackgroundWorker<GraphSolution,java.lang.Object>
edu.hawaii.ics.yucheng.SpanningTreeApplet.Worker
abstract class SpanningTreeApplet.Worker
A class that downloads graphs and solves them in a background thread.
| Nested Class Summary | |
|---|---|
(package private) class |
SpanningTreeApplet.Worker.Delegate
A simple class that listens for progress messages from the graph solver and sends the progress data to the GUI thread. |
| Constructor Summary | |
|---|---|
SpanningTreeApplet.Worker()
|
|
| Method Summary | |
|---|---|
protected void |
processError(java.lang.Exception error)
When overridden by a derived class, this method processes an error thrown from the background worker thread. |
protected void |
processProgress(java.lang.Object progress)
Executes when progress messages arrive from the background thread. |
protected void |
processResult(GraphSolution result)
Executes when the background thread finishes. |
protected GraphSolution |
run()
The entry point for the background thread. |
protected abstract GraphSolution |
solve(GraphSolver solver)
Solves a graph and returns the solution. |
| 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.Worker()
| Method Detail |
|---|
protected void processError(java.lang.Exception error)
BackgroundWorker
processError in class BackgroundWorker<GraphSolution,java.lang.Object>error - The error thrown by the background worker thread.protected void processProgress(java.lang.Object progress)
processProgress in class BackgroundWorker<GraphSolution,java.lang.Object>progress - A list of messages that have arrived.protected void processResult(GraphSolution result)
processResult in class BackgroundWorker<GraphSolution,java.lang.Object>result - The result from the background worker thread.
protected GraphSolution run()
throws java.lang.Exception
run in class BackgroundWorker<GraphSolution,java.lang.Object>java.lang.Exception - Thrown if any kind of exception occurs during execution.
protected abstract GraphSolution solve(GraphSolver solver)
throws java.lang.Exception
solver - The graph solver.
java.lang.Exception - Thrown if there are any errors of any kind.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||