org.objectweb.dream.control.activity.task
Interface TaskController

All Known Implementing Classes:
BasicTaskControllerMixin

public interface TaskController

A control interface to control tasks of the active component to which this interface belongs.


Method Summary
 void addTask(Task task, Map<String,Object> hints)
          Adds a new task in this controller
 Task[] getTasks()
          Returns the tasks of the component to which this interface belongs.
 void removeTask(Task task)
          Removes a task.
 

Method Detail

getTasks

Task[] getTasks()
Returns the tasks of the component to which this interface belongs.

Returns:
an array of task.

addTask

void addTask(Task task,
             Map<String,Object> hints)
             throws IllegalTaskException
Adds a new task in this controller

Parameters:
task - a new task.
hints - registration hints.
Throws:
IllegalTaskException - if the task component can't be registered.
See Also:
TaskManager.registerTask(Task, Map)

removeTask

void removeTask(Task task)
                throws NoSuchTaskException,
                       IllegalTaskException
Removes a task. The controller unregisters the task (if registered) and remove it.

Parameters:
task - the task to remove.
Throws:
NoSuchTaskException - if the given task component is unknown.
IllegalTaskException - if the given task can't be unregistered.


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.