|
||||||||||
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.WorkloadWM1
public class WorkloadWM1
This class represents a workload of workload model one.
Constructor Summary | |
---|---|
WorkloadWM1(java.util.List<SubTask> part,
int hoursTimeFrame)
Constructor for WorkloadWM1 |
|
WorkloadWM1(TaskSpecification spec,
SubTaskCollection coll)
Constructor for WorkloadWM1 |
Method Summary | |
---|---|
int |
compareTo(Workload wl)
|
java.util.Date |
getDeadline()
|
int |
getHoursTimeFrame()
|
int |
getLength()
|
java.util.Date |
getStartDate()
|
SubTaskCollection |
getTasks()
|
TaskSpecification |
getTaskSpecification()
|
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 WorkloadWM1(TaskSpecification spec, SubTaskCollection coll)
spec
- specification of the task the workload belongs tocoll
- collection of subTasks that belong to the workloadpublic WorkloadWM1(java.util.List<SubTask> part, int hoursTimeFrame)
part
- 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 SubTaskCollection getTasks()
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 |