|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A General task interface should be implemented by all task objects
| Method Summary | |
void |
addResult(java.lang.Object obj)
|
void |
divide()
Divide the task into parts - if the data is a List it is already divided. |
java.util.Vector |
generate()
If this is a circular task it should generate a vector of new tasks |
java.lang.Object |
getData()
|
dcf.server.String |
getName()
|
java.lang.Object |
getResults()
|
int |
getSize()
|
boolean |
hasMore()
|
boolean |
isCircular()
The Distributer will call this method when a Task is returned by the client. If the task is circualr the client will call the generate() method to create additinal tasks. |
java.lang.Object |
next()
|
void |
processResults()
Called by Distributer when a task is returned. |
void |
setData(java.lang.Object obj)
|
void |
setName(dcf.server.String str)
Sets the display name for the task - This is used by the server to index tasks. |
void |
setParent(Worker w)
Sets the parent for this task. |
| Method Detail |
public void setData(java.lang.Object obj)
obj - Most commonly a Vector of data to be processed.public java.lang.Object getData()
public void divide()
public boolean hasMore()
public java.lang.Object next()
public int getSize()
public void addResult(java.lang.Object obj)
obj - An Object to add to the results.public java.lang.Object getResults()
public void setName(dcf.server.String str)
str - The name for this task.public dcf.server.String getName()
public boolean isCircular()
public java.util.Vector generate()
public void processResults()
public void setParent(Worker w)
w - The active Worker for this task.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||