|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.ims.tasks.engines.SumTaskData
Minimal example of TaskData implementation. Here we store an array of integers.
| Field Summary | |
int[] |
data
|
| Constructor Summary | |
SumTaskData()
|
|
| Method Summary | |
boolean |
canMerge()
Does this instance support the merge operation? |
boolean |
canSplit()
Does this instance support the split operation? |
TaskData |
merge(java.util.Collection task_data)
Returns the merging of independent task_data in one instance. |
long |
size()
Returns a number proportional to the number of data represented by this instance. |
java.util.Collection |
split(int numpieces)
Splits the data contained in this instance into several pieces. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int[] data
| Constructor Detail |
public SumTaskData()
| Method Detail |
public boolean canSplit()
TaskData
canSplit in interface TaskDatapublic long size()
TaskData
size in interface TaskDatapublic java.util.Collection split(int numpieces)
TaskData
split in interface TaskDatapublic boolean canMerge()
TaskData
canMerge in interface TaskDatapublic TaskData merge(java.util.Collection task_data)
TaskData
merge in interface TaskData
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||