|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.hds.ArrayStructure
public class ArrayStructure
Represents an array object within an HDS file, as understood by the Starlink ARY library. This is more than an HDS primitive array since it has an explicit (simple array) or implicit (primitive array) origin as well as a data array.
Constructor Summary | |
---|---|
ArrayStructure(HDSObject hobj)
Creates an ArrayStructure from an existing HDS object. |
|
ArrayStructure(HDSObject struct,
NDShape shape,
HDSType htype)
Creates the components of a new SIMPLE array object in a suitable structure. |
|
ArrayStructure(HDSObject parent,
String name,
HDSType htype,
NDShape shape)
Creates a new SIMPLE array object below the given parent HDS object. |
Method Summary | |
---|---|
HDSObject |
getData()
Gets the HDS object representing the data array itself. |
HDSObject |
getHDSObject()
Returns the HDS object at which this array resides. |
OrderedNDShape |
getShape()
Gets the shape of the array. |
String |
getStorage()
Gets the storage format; either "SIMPLE" or "PRIMITIVE". |
HDSType |
getType()
Returns the HDS type of the primitives in the array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayStructure(HDSObject hobj) throws HDSException
hobj
- the HDSObject at which the array object is to be found.
HDSException
- if an error occurred in traversing the HDS
tree or hobj does not represent an arraypublic ArrayStructure(HDSObject struct, NDShape shape, HDSType htype) throws HDSException
struct
- an HDS structure scalar or array element of type ARRAY.shape
- the shape of the new arrayhtype
- the HDS primitive type of the new array
HDSException
- if an error occurs manipulating the HDS treepublic ArrayStructure(HDSObject parent, String name, HDSType htype, NDShape shape) throws HDSException
parent
- the object below which the new array structure
will be createdname
- the name of the new array structurehtype
- the HDS primitive type of the new arrayshape
- the shape of the new array
HDSException
- if an error occurs manipulating the HDS treeMethod Detail |
---|
public HDSObject getData()
public OrderedNDShape getShape()
Order.COLUMN_MAJOR
.
public String getStorage()
public HDSObject getHDSObject()
public HDSType getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |