public abstract class Task<I,O>
extends java.lang.Object
Constructor and Description |
---|
Task() |
Modifier and Type | Method and Description |
---|---|
int |
getNumTasks()
Get the number of the task
|
Submitter<I> |
getSubmitter()
Get the Submitter of this task
|
int |
getTaskID()
Get the ID of the task
|
abstract O |
run(I input)
The main computation of the task
|
public abstract O run(I input) throws java.lang.Exception
input
- the inputjava.lang.Exception
public int getTaskID()
public int getNumTasks()