tassl.application.workflow.policysample
Class Budget
java.lang.Object
tassl.application.workflow.PolicyAbstract
tassl.application.workflow.policysample.Budget
public class Budget
- extends PolicyAbstract
Method Summary |
protected void |
BudgetB(int tasks,
java.util.HashMap<java.lang.Integer,TaskProperties> tasksP,
java.util.HashMap<java.lang.String,java.util.List<WorkerForScheduler>> globalSlots,
java.util.HashMap<java.lang.Integer,WorkerForScheduler> result,
double taskTime)
Calculate scheduling with Budget constraint using Branch & Bound |
protected java.util.HashMap |
BudgetConstraint(java.lang.String wkflId,
WorkflowStage stage,
java.lang.Object properties,
java.util.HashMap<java.lang.String,java.util.List<WorkerForScheduler>> globalSlots)
Create a solution within a budget limit |
java.util.HashMap |
scheduleStage(java.lang.String wkflId,
WorkflowStage stage,
java.util.HashMap<java.lang.String,java.util.List<WorkerForScheduler>> globalSlots)
|
protected java.util.HashMap |
TimeCostConstraint(java.lang.String wkflId,
WorkflowStage stage,
java.lang.Object properties,
java.util.HashMap<java.lang.String,java.util.List<WorkerForScheduler>> globalSlots)
Find scheduling solutions while changing budget |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Budget
public Budget()
scheduleStage
public java.util.HashMap scheduleStage(java.lang.String wkflId,
WorkflowStage stage,
java.util.HashMap<java.lang.String,java.util.List<WorkerForScheduler>> globalSlots)
- Specified by:
scheduleStage
in class PolicyAbstract
globalSlots
- available scheduling slots (workers)
- Returns:
- mapTasks. It will be empty if something failed
BudgetConstraint
protected java.util.HashMap BudgetConstraint(java.lang.String wkflId,
WorkflowStage stage,
java.lang.Object properties,
java.util.HashMap<java.lang.String,java.util.List<WorkerForScheduler>> globalSlots)
- Create a solution within a budget limit
- Parameters:
wkflId
- stage
- properties
- globalSlots
-
- Returns:
TimeCostConstraint
protected java.util.HashMap TimeCostConstraint(java.lang.String wkflId,
WorkflowStage stage,
java.lang.Object properties,
java.util.HashMap<java.lang.String,java.util.List<WorkerForScheduler>> globalSlots)
- Find scheduling solutions while changing budget
- Parameters:
wkflId
- stage
- properties
- globalSlots
-
- Returns:
BudgetB
protected void BudgetB(int tasks,
java.util.HashMap<java.lang.Integer,TaskProperties> tasksP,
java.util.HashMap<java.lang.String,java.util.List<WorkerForScheduler>> globalSlots,
java.util.HashMap<java.lang.Integer,WorkerForScheduler> result,
double taskTime)
- Calculate scheduling with Budget constraint using Branch & Bound
- Parameters:
tasks
- tasksP
- globalSlots
- result
- taskTime
-