jasext.paw
Interface PawArray
- All Known Subinterfaces:
- PawBooleanArray, PawDoubleArray, PawIntegerArray, PawStringArray
- public interface PawArray
Interface for accessing arrays stored in PAW ntuples.
Subclasses of PawArray can be used for accessing different types (Double, Integer etc).
Arrays of arbitrary dimension are supported.
Note for compatibility with Fortran/PAW all arrays are indexed from 1
|
Method Summary |
int |
getDimension(int index)
Get the size of a particular dimension of the array. |
int |
getNDimensions()
Get the number of dimensions of the array. |
getNDimensions
public int getNDimensions()
- Get the number of dimensions of the array.
For a PAW array declared Integer(100,200) this method will return 2
getDimension
public int getDimension(int index)
- Get the size of a particular dimension of the array.
For a PAW array declare Integer(100,200) getDimension(0) will return 100
- Parameters:
index - The index of the array (0 based)- Returns:
- The size of the dimension corresponding to index