uk.ac.starlink.treeview
Class CollapseArrayImpl

java.lang.Object
  extended by uk.ac.starlink.array.WrapperArrayImpl
      extended by uk.ac.starlink.treeview.CollapseArrayImpl
All Implemented Interfaces:
uk.ac.starlink.array.ArrayImpl

public class CollapseArrayImpl
extends uk.ac.starlink.array.WrapperArrayImpl

Wraps an NDArray to provide another with fewer dimensions.

Author:
Mark Taylor (Starlink)

Constructor Summary
CollapseArrayImpl(uk.ac.starlink.array.NDArray nda, int collAxis)
          Constructs a new CollapseArrayImpl from an underlying NDArray over the whole of a given axis.
CollapseArrayImpl(uk.ac.starlink.array.NDArray nda, int collAxis, long collOrigin, long collDim)
          Constructs a new CollapseArrayImpl from an underlying NDArray over a given interval along a given axis.
 
Method Summary
 uk.ac.starlink.array.AccessImpl getAccess()
           
 uk.ac.starlink.array.BadHandler getBadHandler()
           
 uk.ac.starlink.array.OrderedNDShape getShape()
           
 uk.ac.starlink.array.Type getType()
           
 boolean isWritable()
           
 
Methods inherited from class uk.ac.starlink.array.WrapperArrayImpl
canMap, close, getBadValue, getMapped, getWrapped, isRandom, isReadable, multipleAccess, open, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollapseArrayImpl

public CollapseArrayImpl(uk.ac.starlink.array.NDArray nda,
                         int collAxis)
Constructs a new CollapseArrayImpl from an underlying NDArray over the whole of a given axis.


CollapseArrayImpl

public CollapseArrayImpl(uk.ac.starlink.array.NDArray nda,
                         int collAxis,
                         long collOrigin,
                         long collDim)
Constructs a new CollapseArrayImpl from an underlying NDArray over a given interval along a given axis.

Method Detail

getShape

public uk.ac.starlink.array.OrderedNDShape getShape()
Specified by:
getShape in interface uk.ac.starlink.array.ArrayImpl
Overrides:
getShape in class uk.ac.starlink.array.WrapperArrayImpl

getType

public uk.ac.starlink.array.Type getType()
Specified by:
getType in interface uk.ac.starlink.array.ArrayImpl
Overrides:
getType in class uk.ac.starlink.array.WrapperArrayImpl

getBadHandler

public uk.ac.starlink.array.BadHandler getBadHandler()

isWritable

public boolean isWritable()
Specified by:
isWritable in interface uk.ac.starlink.array.ArrayImpl
Overrides:
isWritable in class uk.ac.starlink.array.WrapperArrayImpl

getAccess

public uk.ac.starlink.array.AccessImpl getAccess()
                                          throws IOException
Specified by:
getAccess in interface uk.ac.starlink.array.ArrayImpl
Overrides:
getAccess in class uk.ac.starlink.array.WrapperArrayImpl
Throws:
IOException


Copyright © 2002-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.