ucar.nc2.iosp
Class SegmentedLayout

java.lang.Object
  extended by ucar.nc2.iosp.Indexer
      extended by ucar.nc2.iosp.SegmentedLayout

Deprecated. use LayoutSegmented

public class SegmentedLayout
extends Indexer

SegmentedLayout has data stored in segments.

Since:
Dec 31, 2007
Author:
caron

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.nc2.iosp.Indexer
Indexer.Chunk
 
Constructor Summary
SegmentedLayout(long[] segPos, int[] segSize, int elemSize, int[] varShape, Section wantSection)
          Deprecated. Constructor.
 
Method Summary
 int getElemSize()
          Deprecated.  
 long getTotalNelems()
          Deprecated.  
 boolean hasNext()
          Deprecated.  
 Indexer.Chunk next()
          Deprecated. Get the next chunk
 Indexer.Chunk nextOuter()
          Deprecated.  
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class ucar.nc2.iosp.Indexer
printa, printa
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SegmentedLayout

public SegmentedLayout(long[] segPos,
                       int[] segSize,
                       int elemSize,
                       int[] varShape,
                       Section wantSection)
                throws InvalidRangeException
Deprecated. 
Constructor.

Parameters:
segPos - starting address of each segment.
segSize - number of bytes in each segment.
elemSize - size of an element in bytes.
varShape - shape of the entire data array.
wantSection - the wanted section of data
Throws:
InvalidRangeException - if ranges are misformed
Method Detail

getTotalNelems

public long getTotalNelems()
Deprecated. 
Specified by:
getTotalNelems in class Indexer
Returns:
total number of elements in the wanted subset.

getElemSize

public int getElemSize()
Deprecated. 
Specified by:
getElemSize in class Indexer
Returns:
size of each element in bytes.

hasNext

public boolean hasNext()
Deprecated. 
Specified by:
hasNext in class Indexer
Returns:
true if theres more to do

next

public Indexer.Chunk next()
Deprecated. 
Description copied from class: Indexer
Get the next chunk

Specified by:
next in class Indexer
Returns:
next chunk, or null if !hasNext()

nextOuter

public Indexer.Chunk nextOuter()
Deprecated. 

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object