|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.array.DefaultArrayDescription
public class DefaultArrayDescription
Straightforward immutable implementation of the ArrayDescription interface. Doesn't do anything clever - just provided for convenience when implementing subinterfaces of ArrayDescription.
Field Summary | |
---|---|
protected long[] |
arrayDims
Array dimensions; equal to arrayShape.getDims() . |
protected BadHandler |
arrayHandler
The array bad value handler as returned by the getBadHandler method. |
protected boolean |
arrayIsRandom
The array random access availability as returned by the isRandom method. |
protected boolean |
arrayIsReadable
The array readability as returned by the isReadable method. |
protected boolean |
arrayIsWritable
The array writability as returned by teh isWritable method. |
protected long |
arrayNdim
Number of dimensions; equal to arrayShape.getNumDims() . |
protected long |
arrayNpix
Number of pixels; equal to arrayShape.getNumPixels() . |
protected Order |
arrayOrder
Pixel ordering scheme; equal to arrayShape.getOrder() . |
protected long[] |
arrayOrigin
Array origin; equal to arrayShape.getOrigin() . |
protected OrderedNDShape |
arrayShape
The array shape as returned by the getShape method. |
protected Type |
arrayType
The array type as returned by the getType method. |
Constructor Summary | |
---|---|
DefaultArrayDescription(ArrayDescription descrip)
Constructs an ArrayDescription object with attributes copied from an existing one. |
|
DefaultArrayDescription(ArrayDescription desc,
Requirements req)
Constructs an ArrayDescription object with attributes copied from an existing one except as overridden by the requirements of a Requirements object. |
|
DefaultArrayDescription(OrderedNDShape oshape,
Type type,
BadHandler badHandler,
boolean isRandom,
boolean isReadable,
boolean isWritable)
Constructs an ArrayDescription object with all its attributes specified explicitly. |
Method Summary | |
---|---|
BadHandler |
getBadHandler()
Gets an object capable of handling bad pixel values for this array. |
OrderedNDShape |
getShape()
Gets the OrderedNDShape object which describes the origin, dimensions and pixel ordering scheme of this array. |
Type |
getType()
Returns the type of the primitive data in this array. |
boolean |
isRandom()
Indicates whether random access is available. |
boolean |
isReadable()
Indicates whether the pixels of this array may be read. |
boolean |
isWritable()
Indicates whether the pixels of this array may be written. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final OrderedNDShape arrayShape
protected final Type arrayType
protected final BadHandler arrayHandler
protected final boolean arrayIsRandom
protected final boolean arrayIsReadable
protected final boolean arrayIsWritable
protected final Order arrayOrder
arrayShape.getOrder()
.
protected final long arrayNpix
arrayShape.getNumPixels()
.
protected final long arrayNdim
arrayShape.getNumDims()
.
protected final long[] arrayDims
arrayShape.getDims()
.
protected final long[] arrayOrigin
arrayShape.getOrigin()
.
Constructor Detail |
---|
public DefaultArrayDescription(OrderedNDShape oshape, Type type, BadHandler badHandler, boolean isRandom, boolean isReadable, boolean isWritable)
oshape
- array shapetype
- array typebadHandler
- array bad value handlerisRandom
- whether random access is providedisReadable
- whether read access is providedisWritable
- whether write access is providedpublic DefaultArrayDescription(ArrayDescription descrip)
descrip
- an existing ArrayDescription object whose properties
this one is to inheritpublic DefaultArrayDescription(ArrayDescription desc, Requirements req)
desc
- an existing ArrayDescription objectreq
- a Requirements objectMethod Detail |
---|
public OrderedNDShape getShape()
ArrayDescription
getShape
in interface ArrayDescription
public Type getType()
ArrayDescription
getType
in interface ArrayDescription
public BadHandler getBadHandler()
ArrayDescription
getBadHandler
in interface ArrayDescription
public boolean isRandom()
ArrayDescription
isRandom
in interface ArrayDescription
public boolean isReadable()
ArrayDescription
isReadable
in interface ArrayDescription
public boolean isWritable()
ArrayDescription
isWritable
in interface ArrayDescription
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |