|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectappl.parallel.spmd.MultiDataObject
public class MultiDataObject
A multi data object stores multiple elements of the same type.
While the related MultiDataInfo
stores only Information about
multi-data and is used by Xulu / V for transfer of metadata, this class
is a actual user object. The user can retrieve a multidata object e.g. via the
SPMDServerController
and work with it (e.g. add elements)
SPMDServerInterface.getMultiData(String)
,
MultiDataInfo
Constructor Summary | |
---|---|
MultiDataObject(MultiDataInfo info,
DataServer dataServer)
Construct a new Multidata object |
Method Summary | |
---|---|
int |
addElement()
Adds an element to MultiDataObjects. |
int |
addElement(int id)
Adds an element with the specified ID. |
void |
deleteElement(int idx)
removes the element with the specified index from the dataServer |
int |
getCount()
|
Object |
getElement(int idx)
|
MultiDataInfo |
getMultiInfo()
|
String |
getName()
|
void |
setManagedGrid(MultiGrid toManageMultiGrid)
Manages a multigrid, which means that when a new element is added to the multiObject, then the same element is also added to the managed multiGrid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiDataObject(MultiDataInfo info, DataServer dataServer)
info
- a MultiDataInfo
object with the identification of the objectsdataServer
- a dataServer which is responsible for the actual loading of the dataMethod Detail |
---|
public Object getElement(int idx)
idx
- the position of the element
public int getCount()
public int addElement()
public int addElement(int id)
id
- the id of the element to add
public void setManagedGrid(MultiGrid toManageMultiGrid)
toManageMultiGrid
- the grid to be managed. Only one grid will be
managed at a time.public MultiDataInfo getMultiInfo()
MultiDataInfo
public String getName()
public void deleteElement(int idx)
idx
- the element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |