|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITaskContainer
Defines the basic interface for a task container.
Process
Method Summary | |
---|---|
Task |
addTask(Task task)
Adds a given task to this task container. |
boolean |
containsTask(String name)
Searches for a given task name inside this task container. |
int |
countTask()
Counts the tasks inside this task container. |
Collection<Task> |
getAllTasks()
Returns all tasks inside this task container. |
Task |
getTask(String name)
Searches for a task with a given name inside this task container. |
Task |
removeTask(String name)
Removes a given task from this task container. |
Methods inherited from interface guarana.util.observer.smart.ISmartObserver |
---|
getName, setName, update |
Method Detail |
---|
Task addTask(Task task) throws InvalidParameterException
task
- The task to be added.
null
if there is no previous task.
InvalidParameterException
- if the task parameter is null
.Task removeTask(String name)
name
- The name of the task to remove.
null
if there is no task associated with this name.Task getTask(String name)
name
- The task name.
null
if none.Collection<Task> getAllTasks()
boolean containsTask(String name)
name
- The task name to be searched.
int countTask()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |