ucar.nc2.ft.point.standard
Class StandardProfileCollectionImpl

java.lang.Object
  extended by ucar.nc2.ft.point.OneNestedPointCollectionImpl
      extended by ucar.nc2.ft.point.standard.StandardProfileCollectionImpl
All Implemented Interfaces:
FeatureCollection, NestedPointFeatureCollection, ProfileFeatureCollection

public class StandardProfileCollectionImpl
extends OneNestedPointCollectionImpl
implements ProfileFeatureCollection

Nested Table implementation of ProfileCollection

Since:
Jan 20, 2009
Author:
caron

Field Summary
 
Fields inherited from class ucar.nc2.ft.point.OneNestedPointCollectionImpl
npts
 
Constructor Summary
protected StandardProfileCollectionImpl(String name)
           
 
Method Summary
 PointFeatureCollectionIterator getPointFeatureCollectionIterator(int bufferSize)
          Iterate through the collection, composed of PointFeatureCollection.
 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 ProfileFeatures in this Collection.
 ProfileFeatureCollection subset(LatLonRect boundingBox)
          Subset this collection by boundingBox
 
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.NestedPointFeatureCollection
flatten, getNestedPointFeatureCollectionIterator, isMultipleNested, size
 
Methods inherited from interface ucar.nc2.ft.FeatureCollection
getCollectionFeatureType, getName
 

Constructor Detail

StandardProfileCollectionImpl

protected StandardProfileCollectionImpl(String name)
Method Detail

getPointFeatureCollectionIterator

public PointFeatureCollectionIterator getPointFeatureCollectionIterator(int bufferSize)
                                                                 throws IOException
Description copied from interface: NestedPointFeatureCollection
Iterate through the collection, composed of PointFeatureCollection. Use this only if isMultipleNested() = false.

Specified by:
getPointFeatureCollectionIterator in interface NestedPointFeatureCollection
Parameters:
bufferSize - how many bytes can be used to buffer data, use -1 to use default.
Returns:
an iterator through PointFeatureCollection objects.
Throws:
IOException - on read error

hasNext

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

Specified by:
hasNext in interface ProfileFeatureCollection
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: ProfileFeatureCollection
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 ProfileFeatureCollection
Returns:
the next ProfileFeature in the iteration
Throws:
IOException - on read error

resetIteration

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

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

subset

public ProfileFeatureCollection subset(LatLonRect boundingBox)
                                throws IOException
Description copied from interface: ProfileFeatureCollection
Subset this collection by boundingBox

Specified by:
subset in interface NestedPointFeatureCollection
Specified by:
subset in interface ProfileFeatureCollection
Parameters:
boundingBox - want only profiles in this lat/lon bounding box.
Returns:
subsetted collection, may be null if empty
Throws:
IOException - on read error


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