|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectskeleton.Compute
public abstract class Compute
This is the interface that has to be implemented by the sequential portions of code
used in the program computation. Each sequential skeleton is an object that implements this interface.
We explicitly choosed not to use 1.5 features, at the moment. Therefore the generic function takes Objects
and computes Objects.
The typical usage is the following:
public class myF extends Compute {
public Object compute(Object task) {
OutputResult res = f((InputTask) task);
return(res);
}
}
every time you need to use the f function to compute a pipeline stage, a farm worker, etc.
| Constructor Summary | |
|---|---|
Compute()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
just to be able to clone in case of usage of ObjectStreams |
abstract java.lang.Object |
compute(java.lang.Object task)
the method computes an Object result out of an Object input data set |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Compute()
| Method Detail |
|---|
public abstract java.lang.Object compute(java.lang.Object task)
public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||