Inheritance diagram for edu.cmu.hcii.calo.model.TaskGroup:
The group has a priority based on its component subtasks as computed by the engine.
Public Member Functions | |
TaskGroup () | |
Constructs a new TaskGroup. | |
boolean | appendTask (Task task) |
Appends a Task onto the end of this task's tasks. | |
int | countTasks () |
Counts the number of tasks of this task. | |
Calendar | getDateAdded () |
Gets the date added of this TaskGroup. | |
double | getPriority () |
Returns the priority of this group, as computed by CALO. | |
Task | getTaskAt (int index) |
Gets the Task at the given index. | |
List< Task > | getTasks () |
Accessor method for tasks. | |
int | indexOfTask (Task task) |
Returns the index of the given Task, or -1 if it's not in the list. | |
void | insertTask (int index, Task task) |
Inserts a Task of this task at a given index. | |
void | removeAllTasks () |
Removes all tasks from this task. | |
boolean | removeTask (Task task) |
Removes the given Task from this task's Task list, if it was present. | |
Task | removeTaskAt (int index) |
Removes the Task of this task at the given index. | |
Task | replaceTaskAt (int index, Task newTask) |
Replaces the Task of this task at the given index with the new Task. | |
Iterator< Task > | TaskIterator () |
Gets an iterator over this task's tasks. | |
Private Attributes | |
LinkedList< Task > | tasks |
The list of tasks of this group, if any. | |
Static Private Attributes | |
static final long | serialVersionUID = -1214130792328705063L |
To prevent serialization collisions. |
edu.cmu.hcii.calo.model.TaskGroup.TaskGroup | ( | ) |
Constructs a new TaskGroup.
boolean edu.cmu.hcii.calo.model.TaskGroup.appendTask | ( | Task | task | ) |
int edu.cmu.hcii.calo.model.TaskGroup.countTasks | ( | ) |
Counts the number of tasks of this task.
Calendar edu.cmu.hcii.calo.model.TaskGroup.getDateAdded | ( | ) |
Gets the date added of this TaskGroup.
The "date added" of a TaskGroup is defined to be the date on which the oldest task in the group was added.
Reimplemented from edu.cmu.hcii.calo.model.ManagedObject.
double edu.cmu.hcii.calo.model.TaskGroup.getPriority | ( | ) | [virtual] |
Returns the priority of this group, as computed by CALO.
Implements edu.cmu.hcii.calo.model.PrioritizedObject.
Task edu.cmu.hcii.calo.model.TaskGroup.getTaskAt | ( | int | index | ) |
List<Task> edu.cmu.hcii.calo.model.TaskGroup.getTasks | ( | ) |
Accessor method for tasks.
int edu.cmu.hcii.calo.model.TaskGroup.indexOfTask | ( | Task | task | ) |
void edu.cmu.hcii.calo.model.TaskGroup.insertTask | ( | int | index, | |
Task | task | |||
) |
void edu.cmu.hcii.calo.model.TaskGroup.removeAllTasks | ( | ) |
Removes all tasks from this task.
boolean edu.cmu.hcii.calo.model.TaskGroup.removeTask | ( | Task | task | ) |
Task edu.cmu.hcii.calo.model.TaskGroup.removeTaskAt | ( | int | index | ) |
Iterator<Task> edu.cmu.hcii.calo.model.TaskGroup.TaskIterator | ( | ) |
Gets an iterator over this task's tasks.
final long edu.cmu.hcii.calo.model.TaskGroup.serialVersionUID = -1214130792328705063L [static, private] |
To prevent serialization collisions.
LinkedList<Task> edu.cmu.hcii.calo.model.TaskGroup.tasks [private] |
The list of tasks of this group, if any.
If the task has no tasks, this list should be empty but non-null.