be.ac.ua.broker.input.tasks
Class TaskCollection
java.lang.Object
be.ac.ua.broker.input.tasks.TaskCollection
public class TaskCollection
- extends java.lang.Object
This class represents a collection of tasks.
- Author:
- Vermeersch Kurt
Constructor Summary |
TaskCollection(java.util.Date start)
Constructor for TaskCollection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskCollection
public TaskCollection(java.util.Date start)
- Constructor for TaskCollection
- Parameters:
start
- the start time of the scheduling period for the tasks in the
collection
addTask
public void addTask(Task task)
- Add a task to the collection
- Parameters:
task
- the task to add to the collection
getTasks
public java.util.List<Task> getTasks()
- Returns:
- list of all the tasks that are part of the collection
getStartDate
public java.util.Date getStartDate()
- Returns:
- the start time of the scheduling period for the tasks in the
collection
getLatestDeadline
public java.util.Date getLatestDeadline()
- Returns:
- the latest deadline of the tasks in the collection