distrit.testing
Class Apple

java.lang.Object
  |
  +--distrit.testing.Apple
All Implemented Interfaces:
InteractiveTask, java.io.Serializable, Task

public class Apple
extends java.lang.Object
implements InteractiveTask

See Also:
Serialized Form

Constructor Summary
Apple()
          Creates a new instance of Apple
 
Method Summary
 java.lang.Object get(java.lang.Object p)
          Used to get output from the task
 java.lang.Object run(java.lang.Object p)
          Totally customizable method with code to be executed by the the interactive task clients.
 void set(java.lang.Object paramsAndWhat)
          Used to send input to the task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Apple

public Apple()
Creates a new instance of Apple
Method Detail

get

public java.lang.Object get(java.lang.Object p)
Description copied from interface: InteractiveTask
Used to get output from the task
Specified by:
get in interface InteractiveTask
Following copied from interface: distrit.InteractiveTask
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.

run

public java.lang.Object run(java.lang.Object p)
                     throws java.lang.InterruptedException
Description copied from interface: Task
Totally customizable method with code to be executed by the the interactive task clients.
Specified by:
run in interface Task
Following copied from interface: distrit.Task
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.

set

public void set(java.lang.Object paramsAndWhat)
Used to send input to the task
Specified by:
set in interface InteractiveTask
Parameters:
paramsAndWhat - this could be anything, either a single object if the task knows what to do with it, or a packet with variable->value pairs..