org.objectweb.fractal.adl
Interface TaskMap
- BasicTaskMap
A map associating Task
s to task identifiers and task types.
Two tasks of two distinct types may have the same identifier.
void | addTask(String type, Object id, Task task) - Adds the given task to this task map.
|
Task | getTask(String type, Object id) - Returns the task of the given type and identifier.
|
Task[] | getTasks() - Returns the tasks contained in this task map.
|
addTask
public void addTask(String type,
Object id,
Task task)
Adds the given task to this task map.
type
- the type of the task to be added.id
- the identifier of the task to be added.task
- the task itself.
getTask
public Task getTask(String type,
Object id)
throws NoSuchElementException
Returns the task of the given type and identifier.
type
- the type of the task that must be returned.id
- the identifier of the task that must be returned.
- the task whose type and identifier are given.
getTasks
public Task[] getTasks()
Returns the tasks contained in this task map.
- the tasks contained in this task map.