|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectskeleton.Compute
skeleton.Farm
public class Farm
This is the "emabarassingly parallel" skeleton. Each task supplied to the Farm is actually computed independently
of the other tasks by invoking the compute method of the inner skeleton (alias the worker).
| Constructor Summary | |
|---|---|
Farm(Compute worker)
creates a new Farm skeleton. |
|
| Method Summary | |
|---|---|
java.lang.Object |
compute(java.lang.Object task)
computes a task sequentially. |
Compute |
getWorker()
this is only needed to compiler into MDF |
| Methods inherited from class skeleton.Compute |
|---|
clone |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Farm(Compute worker)
worker - is the skeleton used to implement the Farm workers, i.e. it is the skeleton modelling the computation
that has to be independently performed on each one of the tasks submitted to the Farm.| Method Detail |
|---|
public Compute getWorker()
public java.lang.Object compute(java.lang.Object task)
compute in class Computetask - the input data to be processed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||