ucar.nc2.ft.point
Class SectionFeatureImpl

java.lang.Object
  extended by ucar.nc2.ft.point.OneNestedPointCollectionImpl
      extended by ucar.nc2.ft.point.SectionFeatureImpl
All Implemented Interfaces:
FeatureCollection, NestedPointFeatureCollection, SectionFeature

public abstract class SectionFeatureImpl
extends OneNestedPointCollectionImpl
implements SectionFeature

Abstract superclass for implementations of SectionFeature. Subclass must implement getPointFeatureCollectionIterator();

Since:
Oct 22, 2009
Author:
caron

Field Summary
protected  PointFeatureCollectionIterator localIterator
           
 
Fields inherited from class ucar.nc2.ft.point.OneNestedPointCollectionImpl
npts
 
Constructor Summary
protected SectionFeatureImpl(String name)
           
 
Method Summary
 boolean hasNext()
          Use the internal iterator to check if there is another ProfileFeature in the iteration.
 ProfileFeature next()
          Use the internal iterator to get the next ProfileFeature in the iteration.
 void resetIteration()
          Reset the internal iterator for another iteration over the ProfileFeature in this Collection.
 
Methods inherited from class ucar.nc2.ft.point.OneNestedPointCollectionImpl
flatten, getCollectionFeatureType, getName, getNestedPointFeatureCollectionIterator, isMultipleNested, setSize, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ucar.nc2.ft.SectionFeature
size
 
Methods inherited from interface ucar.nc2.ft.NestedPointFeatureCollection
flatten, getNestedPointFeatureCollectionIterator, getPointFeatureCollectionIterator, isMultipleNested, subset
 
Methods inherited from interface ucar.nc2.ft.FeatureCollection
getCollectionFeatureType, getName
 

Field Detail

localIterator

protected PointFeatureCollectionIterator localIterator
Constructor Detail

SectionFeatureImpl

protected SectionFeatureImpl(String name)
Method Detail

hasNext

public boolean hasNext()
                throws IOException
Description copied from interface: SectionFeature
Use the internal iterator to check if there is another ProfileFeature in the iteration.

Specified by:
hasNext in interface SectionFeature
Returns:
true is there is another ProfileFeature in the iteration.
Throws:
IOException - on read error

next

public ProfileFeature next()
                    throws IOException
Description copied from interface: SectionFeature
Use the internal iterator to get the next ProfileFeature in the iteration. You must call hasNext() before you call this.

Specified by:
next in interface SectionFeature
Returns:
the next ProfileFeature in the iteration
Throws:
IOException - on read error

resetIteration

public void resetIteration()
                    throws IOException
Description copied from interface: SectionFeature
Reset the internal iterator for another iteration over the ProfileFeature in this Collection.

Specified by:
resetIteration in interface SectionFeature
Throws:
IOException - on read error


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.