org.jscience.computing.distributed
Interface InteractiveTask

All Superinterfaces:
java.io.Serializable, Task
All Known Implementing Classes:
FineGrainedInteractiveTasks, MultiInteractiveTask

public interface InteractiveTask
extends Task

A task that can also perform I/O during the task opearation through get and set methods.


Method Summary
 java.lang.Object get(java.lang.Object params)
          Used to get output from the task
 void set(java.lang.Object paramsAndWhat)
          Used to send input to the task
 
Methods inherited from interface org.jscience.computing.distributed.Task
run
 

Method Detail

get

java.lang.Object get(java.lang.Object params)
Used to get output from the task

Parameters:
params - can be null if this task doesn't need to know WHAT it has to output
Returns:
Any amount of information can be provided by the task packaged in an Object.

set

void set(java.lang.Object paramsAndWhat)
Used to send input to the task

Parameters:
paramsAndWhat - this could be anything, either a single object if the task knows what to do with it, or a container with variable->value pairs..