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

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

public class SchedulerResultCollection
extends java.lang.Object

This class is used to represent a collection of schedulerResults. It's the output of the allocation phase of the broker and contains the schedules tagged with time and cost information.

Author:
Vermeersch Kurt

Field Summary
static java.util.Date endDate
          The end time of the scheduling period
static java.util.Date startDate
          The start time of the scheduling period
 
Constructor Summary
SchedulerResultCollection(java.util.Date start, java.util.Date end)
          Constructor for SchedulerResultCollection
 
Method Summary
 void add(SchedulerResult schedule)
          Add a schedulerResult to the collection
 void addAll(java.util.List<SchedulerResult> schedules)
          Add a list of schedulerResults to the collection
 java.util.List<SchedulerResult> get(java.lang.String region)
          Getter for all the schedules of a certain geographical region
 java.util.Date getEndDate()
           
 java.util.Date getStartDate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startDate

public static java.util.Date startDate
The start time of the scheduling period


endDate

public static java.util.Date endDate
The end time of the scheduling period

Constructor Detail

SchedulerResultCollection

public SchedulerResultCollection(java.util.Date start,
                                 java.util.Date end)
Constructor for SchedulerResultCollection

Parameters:
start - start time of the scheduling period
end - end time of the scheduling period
Method Detail

add

public void add(SchedulerResult schedule)
Add a schedulerResult to the collection

Parameters:
schedule - the schedulerResult to add to the collection

addAll

public void addAll(java.util.List<SchedulerResult> schedules)
Add a list of schedulerResults to the collection

Parameters:
schedules - the schedulerResults to add to the collection

get

public java.util.List<SchedulerResult> get(java.lang.String region)
Getter for all the schedules of a certain geographical region

Parameters:
region - the region to get the schedules for
Returns:
the list of schedules associated with the given region

getStartDate

public java.util.Date getStartDate()
Returns:
the start time of the scheduling period

getEndDate

public java.util.Date getEndDate()
Returns:
the end time of the scheduling period