distrit
Interface Task

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
InteractiveTask

public interface Task
extends java.io.Serializable

A Task represents a single task that takes a paramater when it starts and returns a value when it terminates, both can be vectors..


Method Summary
 java.lang.Object run(java.lang.Object params)
          Totally customizable method with code to be executed by the the interactive task clients.
 

Method Detail

run

public java.lang.Object run(java.lang.Object params)
                     throws java.lang.InterruptedException
Totally customizable method with code to be executed by the the interactive task clients.
Parameters:
params - Generic parameters to start the run method with. The implemented InteractiveTaskClient will always start the run method with a null parameter so any configuring of the task must be done previous to the run method being executed.
Returns:
Final result of the run method. This could be the solution to a problem for example.