org.omegahat.Environment.TaskManagement
Interface Task
- All Known Subinterfaces:
- CORBATaskInterface
- All Known Implementing Classes:
- SimulationTask, IterationEventTask
- public interface Task
Simple interface abstracting the concept of a deferred action
A class implementing this interface is capable of evaluating
its action in the absence of additional context.
Can be used for method calls, CORBA and RMI calls, interpreted
expressions, etc.
|
Method Summary |
java.lang.Object |
eval()
Simple method for evaluating the Task. |
java.lang.Object |
eval(java.lang.Object[] args)
Method for evaluating the Task by providing it
with additional information and context. |
eval
public java.lang.Object eval()
throws java.lang.Exception
- Simple method for evaluating the Task. Assumes
it has full information for completing the evaluation.
eval
public java.lang.Object eval(java.lang.Object[] args)
throws java.lang.Exception
- Method for evaluating the Task by providing it
with additional information and context.