be.ac.ua.broker.input.tasks
Interface Workload
- All Superinterfaces:
- java.lang.Comparable<Workload>
- All Known Implementing Classes:
- WorkloadWM1, WorkloadWM2
public interface Workload
- extends java.lang.Comparable<Workload>
This interface is used to represent the workload associated with a task, the
interface is used by the implementation for the two workload models being
supported by the broker. It extends the Comparable interface, since the
workloads need to be able to be sorted in an earliest deadline first order.
- Author:
- Vermeersch Kurt
Methods inherited from interface java.lang.Comparable |
compareTo |
getLength
int getLength()
- Returns:
- the length in hours of the task/workload
getStartDate
java.util.Date getStartDate()
- Returns:
- the start time of the scheduling period of the associated task
getDeadline
java.util.Date getDeadline()
- Returns:
- the deadline by which the workload has to be run
getTaskSpecification
TaskSpecification getTaskSpecification()
- Returns:
- the specification of the task to which the workload belongs
getWorkload
int getWorkload(int j)
- Getter for the workload associated with a given task hour of the task
- Parameters:
j
- the task hour to get the load for
- Returns:
- the load corresponding to the given task hour