|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlbg.peer.workflow.TemporalTasksGrouping
public class TemporalTasksGrouping
Implementation of the TemporalTasksGrouping heuristic, ordering Tasks of a Bag Of Tasks as sets of Tasks sharing the same input data.
| Constructor Summary | |
|---|---|
TemporalTasksGrouping()
|
|
| Method Summary | |
|---|---|
static boolean |
areDataEqual(MetaGridData[] ds1,
MetaGridData[] ds2)
Data-Equality test between target Tasks data sets. |
static long |
distance(MetaGridData[] ds1,
MetaGridData[] ds2)
Distance between target Tasks data sets, defined as the Storage Affinity of ds2 relative to ds1. |
Task[] |
groupTasks(Task[] tasks)
Reorders a given set of Tasks with the TemporalTasksGrouping heuristic. |
Task[] |
groupTasksWithSingleData(Task[] tasks)
Deprecated. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TemporalTasksGrouping()
throws GridException
GridException| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
@Deprecated
public Task[] groupTasksWithSingleData(Task[] tasks)
throws GridException
Precondition: only 1 data per Task
Note: groupTasksWithSingleData() updates the ordering inside target Tasks array.
GridException
public Task[] groupTasks(Task[] tasks)
throws GridException
Note: groupTasks() updates the ordering inside target Tasks array.
GridException
public static boolean areDataEqual(MetaGridData[] ds1,
MetaGridData[] ds2)
throws GridException
ds1 - 1st target data setds2 - 2nd target data set
GridException - if a parameter is illegal
public static long distance(MetaGridData[] ds1,
MetaGridData[] ds2)
throws GridException
Note: distance(ds1,ds2) is usually not equal to distance(ds2,ds1)
GridException
|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.