|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.ft.point.OneNestedPointCollectionImpl
ucar.nc2.ft.point.StationTimeSeriesCollectionImpl
public abstract class StationTimeSeriesCollectionImpl
Abstract superclass for implementations of StationFeatureCollection. Subclass must supply getPointFeatureCollectionIterator().
| Field Summary | |
|---|---|
protected PointFeatureCollectionIterator |
localIterator
|
protected StationHelper |
stationHelper
|
| Constructor Summary | |
|---|---|
StationTimeSeriesCollectionImpl(java.lang.String name)
|
|
| Method Summary | |
|---|---|
LatLonRect |
getBoundingBox()
Get the bounding box including all the stations. |
NestedPointFeatureCollectionIterator |
getNestedPointFeatureCollectionIterator(int bufferSize)
Iterate through the collection, composed of NestedPointFeatureCollection. |
Station |
getStation(java.lang.String name)
Find a Station by name. |
StationTimeSeriesFeature |
getStationFeature(Station s)
Get the collection of data for this Station. |
java.util.List<Station> |
getStations()
Get all the Stations in the collection. |
java.util.List<Station> |
getStations(LatLonRect boundingBox)
Get all the Stations within a bounding box. |
boolean |
hasNext()
Use the internal iterator to check if there is another StationTimeSeriesFeature in the iteration. |
StationTimeSeriesFeature |
next()
Use the internal iterator to get the next StationTimeSeriesFeature in the iteration. |
void |
resetIteration()
Reset the internal iterator for another iteration over the StationTimeSeriesFeatures in this Collection. |
protected void |
setStationHelper(StationHelper stationHelper)
|
StationTimeSeriesFeatureCollection |
subset(java.util.List<Station> stations)
Get a subsetted StationCollection |
| Methods inherited from class ucar.nc2.ft.point.OneNestedPointCollectionImpl |
|---|
flatten, getCollectionFeatureType, getName, 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, getPointFeatureCollectionIterator, isMultipleNested, size |
| Methods inherited from interface ucar.nc2.ft.FeatureCollection |
|---|
getCollectionFeatureType, getName |
| Field Detail |
|---|
protected StationHelper stationHelper
protected PointFeatureCollectionIterator localIterator
| Constructor Detail |
|---|
public StationTimeSeriesCollectionImpl(java.lang.String name)
| Method Detail |
|---|
protected void setStationHelper(StationHelper stationHelper)
public java.util.List<Station> getStations()
StationCollection
getStations in interface StationCollection
public java.util.List<Station> getStations(LatLonRect boundingBox)
throws java.io.IOException
StationCollection
getStations in interface StationCollectionboundingBox - spatial subset
java.io.IOException - on i/o errorpublic Station getStation(java.lang.String name)
StationCollection
getStation in interface StationCollectionname - name/id of the station
public LatLonRect getBoundingBox()
StationCollection
getBoundingBox in interface StationCollection
public StationTimeSeriesFeatureCollection subset(java.util.List<Station> stations)
throws java.io.IOException
StationTimeSeriesFeatureCollection
subset in interface StationTimeSeriesFeatureCollectionstations - only contain these stations
java.io.IOException - on i/o error
public StationTimeSeriesFeature getStationFeature(Station s)
throws java.io.IOException
StationTimeSeriesFeatureCollection
getStationFeature in interface StationTimeSeriesFeatureCollections - at this station
java.io.IOException - on i/o error
public NestedPointFeatureCollectionIterator getNestedPointFeatureCollectionIterator(int bufferSize)
throws java.io.IOException
NestedPointFeatureCollection
getNestedPointFeatureCollectionIterator in interface NestedPointFeatureCollectiongetNestedPointFeatureCollectionIterator in class OneNestedPointCollectionImplbufferSize - how many bytes can be used to buffer data, use -1 to use default.
java.io.IOException - on read error
public boolean hasNext()
throws java.io.IOException
StationTimeSeriesFeatureCollection
hasNext in interface StationTimeSeriesFeatureCollectionjava.io.IOException - on read error
public StationTimeSeriesFeature next()
throws java.io.IOException
StationTimeSeriesFeatureCollection
next in interface StationTimeSeriesFeatureCollectionjava.io.IOException - on read error
public void resetIteration()
throws java.io.IOException
StationTimeSeriesFeatureCollection
resetIteration in interface StationTimeSeriesFeatureCollectionjava.io.IOException - on read error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||