be.ac.ua.broker.scheduling.region
Class RegionAllocator

java.lang.Object
  extended by be.ac.ua.broker.scheduling.region.RegionAllocator

public class RegionAllocator
extends java.lang.Object

This class is used during the scheduling phase of the broker. Every task is first appointed to a region where running the load is expected to be the least costly. The region allocation step will appoint a task that is not assigned to a geographical region by the user to a region.

Author:
Vermeersch Kurt

Constructor Summary
RegionAllocator(TaskCollection coll)
          Constructor for RegionAllocator
 
Method Summary
 java.util.List<RegionWorkloadCollection> allocateRegions()
          Appoint every task of the taskCollection of the RegionAllocator to a region and return a list of regionWorkloadCollections, which is a collection of tasks associated with a certain geographical region.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegionAllocator

public RegionAllocator(TaskCollection coll)
Constructor for RegionAllocator

Parameters:
coll - the collection of tasks to process, all the tasks of the collection are assigned to an appropriate geographical region
Method Detail

allocateRegions

public java.util.List<RegionWorkloadCollection> allocateRegions()
Appoint every task of the taskCollection of the RegionAllocator to a region and return a list of regionWorkloadCollections, which is a collection of tasks associated with a certain geographical region.

Returns:
a list of regionWorkloadCollections