|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.ft.point.MultipleNestedPointCollectionImpl
ucar.nc2.ft.point.StationProfileCollectionImpl
public abstract class StationProfileCollectionImpl
Abstract superclass for StationProfileFeatureCollection Subclasses must implement getNestedPointFeatureCollection
Field Summary | |
---|---|
protected NestedPointFeatureCollectionIterator |
localIterator
|
protected StationHelper |
stationHelper
|
Fields inherited from class ucar.nc2.ft.point.MultipleNestedPointCollectionImpl |
---|
name |
Constructor Summary | |
---|---|
StationProfileCollectionImpl(String name)
|
Method Summary | |
---|---|
int |
compareTo(Station so)
|
LatLonRect |
getBoundingBox()
Get the bounding box including all the stations. |
PointFeatureCollectionIterator |
getPointFeatureCollectionIterator(int bufferSize)
Iterate through the collection, composed of PointFeatureCollection. |
Station |
getStation(String name)
Find a Station by name. |
StationProfileFeature |
getStationProfileFeature(Station s)
Get the StationProfileFeature for a specific Station. |
List<Station> |
getStations()
Get all the Stations in the collection. |
List<Station> |
getStations(LatLonRect boundingBox)
Get all the Stations within a bounding box. |
List<Station> |
getStations(List<String> stnNames)
Translate list of station names to list of Stations. |
boolean |
hasNext()
Use the internal iterator to check if there is another StationProfileFeature in the iteration. |
protected abstract void |
initStationHelper()
|
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. |
StationProfileCollectionImpl |
subset(LatLonRect boundingBox)
Get a subsetted NestedPointFeatureCollection based on a LatLonRect |
StationProfileCollectionImpl |
subset(List<Station> stations)
Get a subsetted StationProfileFeatureCollection |
Methods inherited from class ucar.nc2.ft.point.MultipleNestedPointCollectionImpl |
---|
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, getNestedPointFeatureCollectionIterator, isMultipleNested, size |
Methods inherited from interface ucar.nc2.ft.FeatureCollection |
---|
getCollectionFeatureType, getName |
Field Detail |
---|
protected StationHelper stationHelper
protected NestedPointFeatureCollectionIterator localIterator
Constructor Detail |
---|
public StationProfileCollectionImpl(String name)
Method Detail |
---|
protected abstract void initStationHelper()
public List<Station> getStations()
StationCollection
getStations
in interface StationCollection
public List<Station> getStations(List<String> stnNames)
StationCollection
getStations
in interface StationCollection
stnNames
- list of stnNames
public List<Station> getStations(LatLonRect boundingBox) throws IOException
StationCollection
getStations
in interface StationCollection
boundingBox
- spatial subset
IOException
- on i/o errorpublic Station getStation(String name)
StationCollection
getStation
in interface StationCollection
name
- name/id of the station
public LatLonRect getBoundingBox()
StationCollection
getBoundingBox
in interface StationCollection
public StationProfileCollectionImpl subset(List<Station> stations) throws IOException
StationProfileFeatureCollection
subset
in interface StationProfileFeatureCollection
stations
- only contain these stations
IOException
- on i/o errorpublic StationProfileCollectionImpl subset(LatLonRect boundingBox) throws IOException
NestedPointFeatureCollection
subset
in interface NestedPointFeatureCollection
boundingBox
- spatial subset
IOException
- on i/o errorpublic StationProfileFeature getStationProfileFeature(Station s) throws IOException
StationProfileFeatureCollection
getStationProfileFeature
in interface StationProfileFeatureCollection
s
- at this station
IOException
- on i/o errorpublic PointFeatureCollectionIterator getPointFeatureCollectionIterator(int bufferSize) throws IOException
NestedPointFeatureCollection
getPointFeatureCollectionIterator
in interface NestedPointFeatureCollection
getPointFeatureCollectionIterator
in class MultipleNestedPointCollectionImpl
bufferSize
- how many bytes can be used to buffer data, use -1 to use default.
IOException
- on read errorpublic boolean hasNext() throws IOException
StationProfileFeatureCollection
hasNext
in interface StationProfileFeatureCollection
IOException
- on read errorpublic StationProfileFeature next() throws IOException
StationProfileFeatureCollection
next
in interface StationProfileFeatureCollection
IOException
- on read errorpublic void resetIteration() throws IOException
StationProfileFeatureCollection
resetIteration
in interface StationProfileFeatureCollection
IOException
- on read errorpublic int compareTo(Station so)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |