|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DataItems that implement the ArrayAccess interface are collections of DataItems organized in an n-dimensional array. The ArrayAccess interface contains methods to determine dimensions, obtain individual elements of the data set, to iterate over all elements in the data set, and to subdivide one ArrayAccess object into another ArrayAccess.
Method Summary | |
int[] |
getDimensions()
Returns an array of integers which has the same number of elements as the number of dimensions in the ArrayAccess and where each integer value is the the number of elements in the respective ArrayAccess dimension. |
java.lang.Object |
getItemByCoordinates(int[] coordinates)
Returns the DataItem corresponding to the given coordinates. |
void |
setItemByCoordinates(int[] coordinates,
java.lang.Object newValue)
Sets a new value for an item at the indicated coordinates in an ArrayAccess. |
ArrayAccess |
subdivide(int[] startCoordinates,
int[] endCoordinates)
Returns a subset ArrayAccess of this ArrayAccess. |
Method Detail |
public java.lang.Object getItemByCoordinates(int[] coordinates)
coordinates
- the coordinates of the desired DataItem in array formpublic void setItemByCoordinates(int[] coordinates, java.lang.Object newValue) throws InvalidDataException
coordinates
- the coordinates of the element to setnewValue
- the new value of the elementpublic ArrayAccess subdivide(int[] startCoordinates, int[] endCoordinates)
startCoordinates
- the coordinates in the original ArrayAccess
of the first item in the desired subsetendCoordinates
- the coordinates in the original ArrayAccess of
the last item in the desired subsetpublic int[] getDimensions()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |