distrit.testing
Class Banana
java.lang.Object
|
+--distrit.testing.Banana
- All Implemented Interfaces:
- InteractiveTask, java.io.Serializable, Task
- public class Banana
- extends java.lang.Object
- implements InteractiveTask
- See Also:
- Serialized Form
|
Constructor Summary |
Banana()
|
Banana(java.lang.String rl,
java.lang.String sl)
Creates a new instance of Banana |
|
Method Summary |
java.lang.Object |
get(java.lang.Object params)
Used to get output from the task |
java.lang.Object |
run(java.lang.Object params)
Totally customizable method
say throws InterruptedException? |
void |
set(java.lang.Object paramsAndWhat)
Used to send input to the task |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Banana
public Banana()
Banana
public Banana(java.lang.String rl,
java.lang.String sl)
- Creates a new instance of Banana
get
public java.lang.Object get(java.lang.Object params)
- Used to get output from the task
- Specified by:
get in interface InteractiveTask
- Parameters:
params - can be null if this task doesn't need to know WHAT it has to output
run
public java.lang.Object run(java.lang.Object params)
throws java.lang.InterruptedException
- Totally customizable method
say throws InterruptedException?
- 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..
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object