ucar.nc2.ft
Interface StationProfileFeatureCollection

All Superinterfaces:
FeatureCollection, NestedPointFeatureCollection, StationCollection

public interface StationProfileFeatureCollection
extends NestedPointFeatureCollection, StationCollection

A collection of StationProfileFeatures

Since:
Feb 29, 2008
Author:
caron

Method Summary
 StationProfileFeature getStationProfileFeature(Station s)
          Get the StationProfileFeature for a specific Station.
 boolean hasNext()
          Use the internal iterator to check if there is another StationProfileFeature in the iteration.
 StationProfileFeature next()
          Use the internal iterator to get the next StationProfileFeature in the iteration.
 void resetIteration()
          Reset the internal iterator for another iteration over the StationProfileFeature in this Collection.
 StationProfileFeatureCollection subset(java.util.List<Station> stations)
          Get a subsetted StationProfileFeatureCollection
 
Methods inherited from interface ucar.nc2.ft.NestedPointFeatureCollection
flatten, getNestedPointFeatureCollectionIterator, getPointFeatureCollectionIterator, isMultipleNested, size, subset
 
Methods inherited from interface ucar.nc2.ft.FeatureCollection
getCollectionFeatureType, getName
 
Methods inherited from interface ucar.nc2.ft.StationCollection
getBoundingBox, getStation, getStations, getStations, getStations
 

Method Detail

hasNext

boolean hasNext()
                throws java.io.IOException
Use the internal iterator to check if there is another StationProfileFeature in the iteration.

Returns:
true is there is another StationProfileFeature in the iteration.
Throws:
java.io.IOException - on read error

next

StationProfileFeature next()
                           throws java.io.IOException
Use the internal iterator to get the next StationProfileFeature in the iteration. You must call hasNext() before you call this.

Returns:
the next StationProfileFeature in the iteration
Throws:
java.io.IOException - on read error

resetIteration

void resetIteration()
                    throws java.io.IOException
Reset the internal iterator for another iteration over the StationProfileFeature in this Collection.

Throws:
java.io.IOException - on read error

subset

StationProfileFeatureCollection subset(java.util.List<Station> stations)
                                       throws java.io.IOException
Get a subsetted StationProfileFeatureCollection

Parameters:
stations - only contain these stations
Returns:
subsetted collection
Throws:
java.io.IOException - on i/o error

getStationProfileFeature

StationProfileFeature getStationProfileFeature(Station s)
                                               throws java.io.IOException
Get the StationProfileFeature for a specific Station.

Parameters:
s - at this station
Returns:
collection of data for this Station.
Throws:
java.io.IOException - on i/o error