|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpingpong.PingPongWorker
public class PingPongWorker
Constructor Summary | |
---|---|
PingPongWorker()
|
Method Summary | |
---|---|
javax.swing.JComponent |
getGUI()
Returns null , since this object does
not provide a GUI component. |
float |
getPrecentageDone()
Returns a float which represents what precentage of the calculation
has completed. |
ResultUnit |
getResultUnit()
Returns the ResultUnit produced by the implementing class. |
void |
run()
|
void |
setWorkUnit(WorkUnit wu)
Called by the host of the Worker object, in order to provide it with a work
unit to be processed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PingPongWorker()
Method Detail |
---|
public void setWorkUnit(WorkUnit wu)
Worker
Worker
object, in order to provide it with a work
unit to be processed.
setWorkUnit
in interface Worker
wu
- the WorkUnit to processpublic ResultUnit getResultUnit()
Worker
ResultUnit
produced by the implementing class.
getResultUnit
in interface Worker
Computation
classpublic javax.swing.JComponent getGUI()
null
, since this object does
not provide a GUI component.
getGUI
in interface Worker
null
Worker.getGUI()
public float getPrecentageDone()
Worker
float
which represents what precentage of the calculation
has completed. It is also feasiable that this value cannot be calculated, in which case a -1.0
should be returned.
getPrecentageDone
in interface Worker
Worker.getPrecentageDone()
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |