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

Method Summary
 java.util.Date getDeadline()
           
 int getLength()
           
 java.util.Date getStartDate()
           
 TaskSpecification getTaskSpecification()
           
 int getWorkload(int j)
          Getter for the workload associated with a given task hour of the task
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

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