be.ac.ua.broker.scheduling.workload
Class TaskScheduler

java.lang.Object
  extended by be.ac.ua.broker.scheduling.workload.TaskScheduler

public class TaskScheduler
extends java.lang.Object

This class is used to represent the scheduler that uses an optimizer to determine the schedule that minimizes the total cost. This class is used during the scheduling phase of the broker process.

Author:
Vermeersch Kurt

Constructor Summary
TaskScheduler(InstanceWorkloadCollection wlColl, boolean wm1)
          Constructor for TaskScheduler
 
Method Summary
 SchedulerResult schedule(java.lang.String VERSION)
          Perform the scheduling phase of the broker process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskScheduler

public TaskScheduler(InstanceWorkloadCollection wlColl,
                     boolean wm1)
Constructor for TaskScheduler

Parameters:
wlColl - the workload collection that is associated with a single instance specification that needs to be scheduled
wm1 - whether workload model one is being used
Method Detail

schedule

public SchedulerResult schedule(java.lang.String VERSION)
                         throws InvalidInputException
Perform the scheduling phase of the broker process

Parameters:
VERSION - the scheduler option that needs to used by the scheduler
Returns:
the result of the scheduling phase of the broker
Throws:
InvalidInputException - exception thrown when the provided scheduling option is not supported by the broker according to the inputVerifier