|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WorkQueueAccess
WorkQueueAccess is the interface though which the user's Computation
can interface with the SWC2 system.
Computation| Method Summary | |
|---|---|
void |
addWorkUnit(WorkUnit wu)
Adds a new WorkUnit to the queue of pending WorkUnit's for the associated computation. |
ResultUnit |
getResultUnit()
Returns any available ResultUnit, or blocks if none are available. |
void |
startNewPass()
Instructs the SWC2 system to discard all the pending WorkUnit's, and to increment the pass-counter
for this computation. |
| Method Detail |
|---|
void startNewPass()
WorkUnit's, and to increment the pass-counter
for this computation. This will cause any incoming ResultUnit's
from an older pass to be discarded as well.
void addWorkUnit(WorkUnit wu)
wu - the WorkUnit to be added
ResultUnit getResultUnit()
throws java.lang.InterruptedException
java.lang.InterruptedException - this indicates that the SWC2 system
is shutting down, and that the computation
should terminate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||