|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ua.broker.scheduling.workload.ScheduledTaskCollection
public class ScheduledTaskCollection
This class represents a schedule generated for a single instance, it contains a list of subTasks. During the allocation phase of the broker a pricing model will be associated with the scheduledTaskCollection.
Constructor Summary | |
---|---|
ScheduledTaskCollection()
|
Method Summary | |
---|---|
void |
add(SubTask subT)
Add a subtask to the scheduledTaskCollection |
void |
fillInTimeStampsSubTasks(java.util.Date start)
Associate time stamps with all the subTasks by providing a start time and using every subTask in the list as a one hour long time frame. |
ScheduledTaskCollection |
getNonSpotEnabledSubTasks()
|
int |
getNumberOfSubTasks()
|
int |
getNumberOfTaskHours()
Getter for the number of actual task hours, which equals the size of the list with subtasks minus the amount of dummy subTasks in the list |
java.lang.String |
getPricingModel()
|
ScheduledTaskCollection |
getSpotEnabledSubTasks()
|
java.util.List<SubTask> |
getSubTasks()
|
void |
merge(ScheduledTaskCollection newPart)
Merge the provided scheduledTaskCollection with this scheduledTaskCollection, |
boolean |
onlyNonSpotEnabledTasks()
|
boolean |
onlySpotEnabledSubTasks()
|
void |
postFill(int postFillAmount)
Add a given number of dummySubTasks after the subtasks already in the collection |
void |
preFill(int preFillAmount)
Add a given number of dummySubTasks in front of the subtasks already in the collection |
void |
setPricesSubTasks(Price price)
Setter for the price of all the subTasks of the scheduledTaskCollection, this can be used for the on-demand and reserved pricing models since all subtasks hold the same price in that case. |
void |
setPricingModel(java.lang.String model)
Setter for the pricing model appointed to the instance associated with the scheduledTaskCollection ] |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScheduledTaskCollection()
Method Detail |
---|
public java.util.List<SubTask> getSubTasks()
public void add(SubTask subT)
subT
- the subTask to add to the collectionpublic void merge(ScheduledTaskCollection newPart)
newPart
- the scheduledTaskCollection to merge with the current onepublic int getNumberOfSubTasks()
public void postFill(int postFillAmount)
postFillAmount
- the number of dummySubTasks to post appendpublic void preFill(int preFillAmount)
preFillAmount
- the number of dummySubTasks to pre append to the collectionpublic ScheduledTaskCollection getSpotEnabledSubTasks()
public ScheduledTaskCollection getNonSpotEnabledSubTasks()
public boolean onlySpotEnabledSubTasks()
public boolean onlyNonSpotEnabledTasks()
public java.lang.String getPricingModel()
public void setPricingModel(java.lang.String model)
model
- the pricing model that has to be usedpublic int getNumberOfTaskHours()
public void setPricesSubTasks(Price price)
price
- the price to set for all subtasks of the
scheduledTaskCollectionpublic void fillInTimeStampsSubTasks(java.util.Date start)
start
- the start time of the scheduling period
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |