|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectappl.parallel.spmd.MultiDataInfo
public class MultiDataInfo
Instances of this class encapsulate information about multiple objects of the same type, e.g. lists of grids. In contrast to the MultiDataObject there are no objects stored, but only the IDs of the objects. That simplifies the the synchronization of multidata information over a network.
Field Summary | |
---|---|
static String |
MULTISPLITCONSTANT
This constant is used as a divider for adding multiple data associated with the same name. |
Constructor Summary | |
---|---|
MultiDataInfo(int[] ids,
String name)
|
Method Summary | |
---|---|
String |
addElement(int id)
Adds a new Element with the specified id. |
int |
getCount()
|
static int |
getIndexFromNameWithIdx(String identificationName)
Extracts the the the index out of a identification |
int |
getMultiID(int idx)
|
String |
getName()
|
static String |
getNameWithIdx(int idx,
String name)
Generates a identification String based only on the given name and the given idx. |
int |
getNewIDForIndex(int idx)
Generates a new id for a given index, based on the id of the first element in the multidata. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MULTISPLITCONSTANT
Constructor Detail |
---|
public MultiDataInfo(int[] ids, String name)
Method Detail |
---|
public String addElement(int id)
id
- The ID of the new element.
public int getMultiID(int idx)
public static String getNameWithIdx(int idx, String name)
idx
- the index of the element in the multidataname
- the name of the element
getIndexFromNameWithIdx(String)
public static int getIndexFromNameWithIdx(String identificationName)
identificationName
- the identification
getNameWithIdx(int, String)
public int getNewIDForIndex(int idx)
idx
- the index for which a new id should be generated
public int getCount()
public String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |