public interface TaskContainerConfiguration
Modifier and Type | Method and Description |
---|---|
void |
addTask(TaskConfiguration taskConfiguration)
Adds a new task at the end of the tasks.
|
int |
getNumTasks()
Returns the number of tasks in the container.
|
TaskConfiguration |
getTask(int taskID)
Returns the task at the given position.
|
TaskConfiguration[] |
getTasks()
Returns the tasks in the container.
|
void |
insertTask(TaskConfiguration taskConfiguration,
int taskID)
Inserts a task at the given position in the task list.
|
void |
removeTask(int taskID)
Removes the task at the given index.
|
TaskConfiguration[] getTasks()
int getNumTasks()
TaskConfiguration getTask(int taskID) throws java.lang.IndexOutOfBoundsException
taskID
- task position.java.lang.IndexOutOfBoundsException
- thrown if task index is invalid.void removeTask(int taskID) throws java.lang.IndexOutOfBoundsException
taskID
- Task id to remove.java.lang.IndexOutOfBoundsException
void addTask(TaskConfiguration taskConfiguration)
taskConfiguration
- Task to add.void insertTask(TaskConfiguration taskConfiguration, int taskID) throws java.lang.IndexOutOfBoundsException
taskConfiguration
- Task to add.taskID
- Index where to insert the task.java.lang.IndexOutOfBoundsException