|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ua.broker.input.tasks.WorkloadWM2
public class WorkloadWM2
This class represents a workload of workload model two.
Constructor Summary | |
---|---|
WorkloadWM2(TaskSpecification spec)
Constructor for WorkloadWM2 |
|
WorkloadWM2(TaskSpecification spec,
java.util.List<java.util.List<SubTask>> part,
int hoursTimeFrame)
Constructor for WorkloadWM2 |
Method Summary | |
---|---|
void |
addTaskHour(SubTaskCollection coll)
Add a subTaskCollection to the workload, it is automatically associated with the next task hour of the associated task |
int |
compareTo(Workload wl)
|
java.util.Date |
getDeadline()
|
int |
getHoursTimeFrame()
|
int |
getLength()
|
java.util.Date |
getStartDate()
|
SubTaskCollection |
getTasksOnHour(int i)
Getter for the subTaskCollection associated with a given task hour of the associated task |
TaskSpecification |
getTaskSpecification()
|
java.util.List<java.util.List<SubTask>> |
getWorkload()
|
int |
getWorkload(int j)
Getter for the workload associated with a given task hour of the task |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkloadWM2(TaskSpecification spec)
spec
- specification of the task the workload belongs topublic WorkloadWM2(TaskSpecification spec, java.util.List<java.util.List<SubTask>> part, int hoursTimeFrame)
spec
- specification of the task the workload belongs topart
- list of a collection of subTasks that belong to the workloadhoursTimeFrame
- the number of hours between the start of the scheduling period
and the deadline of the associated taskMethod Detail |
---|
public void addTaskHour(SubTaskCollection coll)
coll
- the subTaskCollection to addpublic SubTaskCollection getTasksOnHour(int i)
i
- the task hour to get the associated collection of subtasks for
public java.util.List<java.util.List<SubTask>> getWorkload()
public int getHoursTimeFrame()
public int getLength()
getLength
in interface Workload
public java.util.Date getStartDate()
getStartDate
in interface Workload
public java.util.Date getDeadline()
getDeadline
in interface Workload
public TaskSpecification getTaskSpecification()
getTaskSpecification
in interface Workload
public int getWorkload(int j)
Workload
getWorkload
in interface Workload
j
- the task hour to get the load for
public int compareTo(Workload wl)
compareTo
in interface java.lang.Comparable<Workload>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |