provided.compute
Interface ITask<T>

Type Parameters:
T - The type of the returned result of the task
All Known Implementing Classes:
GetInfo, Pi2

public interface ITask<T>

A abstract task to be run on the computer engine


Method Summary
 T execute()
          Executes the task and returns a result
 void setTaskViewAdapter(ILocalTaskViewAdapter viewAdapter)
          Sets the adapter to the view properly for this object.
 

Method Detail

execute

T execute()
          throws java.rmi.RemoteException
Executes the task and returns a result

Returns:
The result of executing the task.
Throws:
java.rmi.RemoteException - thrown when a network error occurs.

setTaskViewAdapter

void setTaskViewAdapter(ILocalTaskViewAdapter viewAdapter)
Sets the adapter to the view properly for this object.

Parameters:
viewAdapter - an adapter to the view.