| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
fipaos.agent.task.Task | +--fipaos.agent.task.SynchronousTask
This task enables a Task to be started and its result to be captured by
making a single method invocation
Inner Class Summary | |
public static class | SynchronousTask.ErrorResult Indicates that an exception occured within the Task |
public static class | SynchronousTask.NoResult Indicates that the Task didn't return a result |
public static class | SynchronousTask.TimeoutResult Indicates that the Task timed-out |
public static class | SynchronousTask.UnusualResult A sub-class is returned by executeTask() when something out of the ordinary happens |
Fields inherited from class fipaos.agent.task.Task |
_done, _id, _parent, _state, _timeout, _tm_ids |
Method Summary | |
static Object | executeTask(TaskManager tm, Task t) Executes the given Task, and returns the result - in the event that something unexpected happens, an object of type UnusualResult is returned The Task must not have been initialised WARNING: This method shouldn't be invoked from within the code for a Task! |
static Object | executeTask(TaskManager tm, Task t, long timeout) Executes the given Task, and returns the result - in the event that something unexpected happens, an object of type UnusualResult is returned The Task must not have been initialised WARNING: This method shouldn't be invoked from within the code for a Task! |
(package private) void | notifyDone(Task child) Invokes the appropriate doneX() method on this, given the child task |
(package private) void | notifyDone(Task child, Object result) Invokes the appropriate doneX(Object) method on this, given the child task |
(package private) void | notifyError(Task child, Throwable error) Invoked by child-tasks to indicate that it has had an error |
(package private) void | notifyTimeout(Task child) Invokes the appropriate timeoutX() method on this, given the child task |
void | startTask() Invoked when the task starts |
Method Detail |
public static Object executeTask(TaskManager tm, Task t)
The Task must not have been initialised
WARNING: This method shouldn't be invoked from within the code for a Task!
public static Object executeTask(TaskManager tm, Task t, long timeout)
The Task must not have been initialised
WARNING: This method shouldn't be invoked from within the code for a Task!
void notifyDone(Task child)
void notifyDone(Task child, Object result)
void notifyError(Task child, Throwable error)
void notifyTimeout(Task child)
public void startTask()
Association Links |
to Class java.lang.Object
to Class java.lang.Object
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |