org.objectweb.fractal.adl
Interface TaskMap

All Known Implementing Classes:
BasicTaskMap

public interface TaskMap

A map associating Tasks to task identifiers and task types. Two tasks of two distinct types may have the same identifier.


Method Summary
 void addTask(String type, Object id, org.objectweb.deployment.scheduling.core.api.Task task)
          Adds the given task to this task map.
 org.objectweb.deployment.scheduling.core.api.Task getTask(String type, Object id)
          Returns the task of the given type and identifier.
 org.objectweb.deployment.scheduling.core.api.Task[] getTasks()
          Returns the tasks contained in this task map.
 

Method Detail

getTasks

public org.objectweb.deployment.scheduling.core.api.Task[] getTasks()
Returns the tasks contained in this task map.

Returns:
the tasks contained in this task map.

getTask

public org.objectweb.deployment.scheduling.core.api.Task getTask(String type,
                                                                 Object id)
                                                          throws NoSuchElementException
Returns the task of the given type and identifier.

Parameters:
type - the type of the task that must be returned.
id - the identifier of the task that must be returned.
Returns:
the task whose type and identifier are given.
Throws:
NoSuchElementException - if there is no such task.

addTask

public void addTask(String type,
                    Object id,
                    org.objectweb.deployment.scheduling.core.api.Task task)
Adds the given task to this task map.

Parameters:
type - the type of the task to be added.
id - the identifier of the task to be added.
task - the task itself.