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

java.lang.Object
  extended by be.ac.ua.broker.input.tasks.SubTaskCollection

public class SubTaskCollection
extends java.lang.Object

This class represents a collection of subTasks.

Author:
Vermeersch Kurt

Constructor Summary
SubTaskCollection()
          Constructor for SubTaskCollection
SubTaskCollection(java.util.List<SubTask> tasks)
          Constructor for SubTaskCollection
SubTaskCollection(long length, TaskSpecification spec)
          Constructor for SubTaskCollection
 
Method Summary
 void addTaskHour(SubTask sub)
          Add a subTask to the collection
 int getLength()
           
 SubTask getTask(int i)
          Getter for a specific subTask in the collection
 java.util.List<SubTask> getWorkload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubTaskCollection

public SubTaskCollection()
Constructor for SubTaskCollection


SubTaskCollection

public SubTaskCollection(java.util.List<SubTask> tasks)
Constructor for SubTaskCollection

Parameters:
tasks - the initial list of subTasks that are part of the collection

SubTaskCollection

public SubTaskCollection(long length,
                         TaskSpecification spec)
Constructor for SubTaskCollection

Parameters:
length - the number of subTasks in the collection
spec - the specification of the original task all the subTasks in the collection are a part of
Method Detail

addTaskHour

public void addTaskHour(SubTask sub)
Add a subTask to the collection

Parameters:
sub - the subTask to add to the collection

getTask

public SubTask getTask(int i)
Getter for a specific subTask in the collection

Parameters:
i - the number of the subTask to get from the collection
Returns:
the requested subTask

getLength

public int getLength()
Returns:
the number of subTasks in the collection

getWorkload

public java.util.List<SubTask> getWorkload()
Returns:
the list of subTasks that are part of the collection