CostFunctionpublic class AStarCostFunction extends java.lang.Object implements CostFunction
log| Constructor | Description |
|---|---|
AStarCostFunction(ScheduleGrph input) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
applyCost(PartialScheduleGrph g,
int addedVertex,
int numProcessors) |
Applies this cost function to the specified schedule graph, setting its score
|
void |
applyCostParallel(PartialScheduleGrph g,
int addedVertex,
int numProcessors) |
Apply the cost function to a graph while running on multiple cores in parallel
|
int |
getComputationalBottomLevel(int addedVertex) |
Gets the max Computational bottom level value for specified vertex
|
int |
getDRT(int addedVertex,
PartialScheduleGrph g,
int processor) |
Get the Data Ready Time of the graph
|
int |
getIdleTimeFit(PartialScheduleGrph sched,
int numProcessors,
int addedVertex) |
Returns the FIT(s) function representing the idle time bound of a partial
schedule.
|
public AStarCostFunction(ScheduleGrph input)
input - public void applyCost(PartialScheduleGrph g, int addedVertex, int numProcessors)
CostFunctionapplyCost in interface CostFunctiong - The graph to apply the cost function toaddedVertex - The most recently added tasknumProcessors - The number of processors available to assign tasks topublic int getComputationalBottomLevel(int addedVertex)
addedVertex - The vertex to calculate bottom level onpublic int getIdleTimeFit(PartialScheduleGrph sched, int numProcessors, int addedVertex)
schedThe - partial schedule whose bound is to be calculatednumProcessors - The number of processors being used for task allocationaddedVertex - The most recently added taskpublic int getDRT(int addedVertex,
PartialScheduleGrph g,
int processor)
addedVertex - The most recently added taskg - The graph to calculate DRT forprocessor - The processor to calculate DRT onpublic void applyCostParallel(PartialScheduleGrph g, int addedVertex, int numProcessors)
g - The graph to apply the cost function toaddedVertex - The most recently added tasknumProcessors - The number of processors available to assign tasks to