|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfactorial.FactorialWorker2
public class FactorialWorker2
| Constructor Summary | |
|---|---|
FactorialWorker2()
|
|
| Method Summary | |
|---|---|
javax.swing.JComponent |
getGUI()
Returns a GUI component which is used to display progress and other information. |
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 FactorialWorker2()
| Method Detail |
|---|
public void setWorkUnit(WorkUnit wu)
WorkerWorker object, in order to provide it with a work
unit to be processed.
setWorkUnit in interface Workerwu - the WorkUnit to processpublic ResultUnit getResultUnit()
WorkerResultUnit produced by the implementing class.
getResultUnit in interface WorkerComputation classpublic javax.swing.JComponent getGUI()
Workernull should
be returned.
getGUI in interface Workernull if none is availablepublic float getPrecentageDone()
Workerfloat 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 Workerpublic void run()
run in interface java.lang.Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||