be.ac.ua.broker.scheduling.workload.wm2
Class BasicOptimizer

java.lang.Object
  extended by be.ac.ua.broker.scheduling.workload.wm2.BasicOptimizer
All Implemented Interfaces:
Optimizer<WorkloadWM2>

public class BasicOptimizer
extends java.lang.Object
implements Optimizer<WorkloadWM2>

This class is used to perform the basic scheduling for workload model two tasks. Basic scheduling is the naive method in which every task is scheduled on a separate resource. The task hours are scheduled consecutively starting at the beginning of the schedule.

Author:
Vermeersch Kurt

Constructor Summary
BasicOptimizer()
           
 
Method Summary
 void add(WorkloadWM2 wl)
          Add the provided workload to the scheduling optimizer.
 java.util.List<ScheduledTaskCollection> determineOptimal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicOptimizer

public BasicOptimizer()
Method Detail

add

public void add(WorkloadWM2 wl)
Description copied from interface: Optimizer
Add the provided workload to the scheduling optimizer.

Specified by:
add in interface Optimizer<WorkloadWM2>
Parameters:
wl - the workload to add.

determineOptimal

public java.util.List<ScheduledTaskCollection> determineOptimal()
Specified by:
determineOptimal in interface Optimizer<WorkloadWM2>
Returns:
a list of scheduledTaskCollections, one of these represents the schedule containing subTasks for a single instance. This schedules are made in a way that tries to minimize the total cost of running the workload on EC2.