be.ac.ua.broker.input.tasks
Class TaskCollection

java.lang.Object
  extended by 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
 
Method Summary
 void addTask(Task task)
          Add a task to the collection
 java.util.Date getLatestDeadline()
           
 java.util.Date getStartDate()
           
 java.util.List<Task> getTasks()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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