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

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

public class SchedulerResult
extends java.lang.Object

This class is used to represent the resulting schedule of the broker created during the scheduling phase of the broker process. The optimizer returns a schedulerResult, since it represents a schedule associated with a singel instance specification.

Author:
Vermeersch Kurt

Constructor Summary
SchedulerResult(InstanceSpecification spec)
          Constructor for SchedulerResults
 
Method Summary
 void addScheduledTaskCollection(ScheduledTaskCollection scheduledTasks)
          Add a schedule of subTasks on a single instance to the schedule for the given instance specification in the region being processed
 InstanceSpecification getInstanceSpecification()
           
 java.lang.String getRegion()
           
 java.util.List<ScheduledTaskCollection> getScheduledTaskCollections()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulerResult

public SchedulerResult(InstanceSpecification spec)
Constructor for SchedulerResults

Parameters:
spec - the specification of the instance this schedule is created for
Method Detail

getInstanceSpecification

public InstanceSpecification getInstanceSpecification()
Returns:
the specification of the instance the schedulerResult is created for

addScheduledTaskCollection

public void addScheduledTaskCollection(ScheduledTaskCollection scheduledTasks)
Add a schedule of subTasks on a single instance to the schedule for the given instance specification in the region being processed

Parameters:
scheduledTasks - the schedule to add to the result

getScheduledTaskCollections

public java.util.List<ScheduledTaskCollection> getScheduledTaskCollections()
Returns:
the list of schedules of separate EC2 instances

getRegion

public java.lang.String getRegion()
Returns:
the geographical region this schedule is associated with