|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.ft.point.PointCollectionImpl
public abstract class PointCollectionImpl
Abstract superclass for PointFeatureCollection Subclass must supply getPointFeatureIterator().
| Field Summary | |
|---|---|
protected LatLonRect |
boundingBox
|
protected DateRange |
dateRange
|
protected PointFeatureIterator |
localIterator
|
protected java.lang.String |
name
|
protected int |
npts
|
| Constructor Summary | |
|---|---|
protected |
PointCollectionImpl(java.lang.String name)
|
protected |
PointCollectionImpl(java.lang.String name,
LatLonRect boundingBox,
DateRange dateRange,
int npts)
|
| Method Summary | |
|---|---|
FeatureType |
getCollectionFeatureType()
All features in this collection have this feature type |
java.lang.String |
getName()
Get the name of this feature collection. |
boolean |
hasNext()
Use the internal iterator to check if there is another PointFeature in the iteration. |
PointFeature |
next()
Use the internal iterator to get the next PointFeature in the iteration. |
void |
resetIteration()
Reset the internal iterator for another iteration over the PointFeatures in this Collection. |
protected void |
setSize(int npts)
|
int |
size()
The number of points in the collection. |
PointFeatureCollection |
subset(LatLonRect boundingBox,
DateRange dateRange)
Subset this collection by boundingBox and/or dateRange |
| 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.PointFeatureCollection |
|---|
getPointFeatureIterator |
| Field Detail |
|---|
protected java.lang.String name
protected LatLonRect boundingBox
protected DateRange dateRange
protected int npts
protected PointFeatureIterator localIterator
| Constructor Detail |
|---|
protected PointCollectionImpl(java.lang.String name)
protected PointCollectionImpl(java.lang.String name,
LatLonRect boundingBox,
DateRange dateRange,
int npts)
| Method Detail |
|---|
public java.lang.String getName()
FeatureCollection
getName in interface FeatureCollection
public boolean hasNext()
throws java.io.IOException
PointFeatureCollection
hasNext in interface PointFeatureCollectionjava.io.IOException - on read error
public PointFeature next()
throws java.io.IOException
PointFeatureCollection
next in interface PointFeatureCollectionjava.io.IOException - on read error
public void resetIteration()
throws java.io.IOException
PointFeatureCollection
resetIteration in interface PointFeatureCollectionjava.io.IOException - on read errorpublic int size()
PointFeatureCollection
size in interface PointFeatureCollectionprotected void setSize(int npts)
public FeatureType getCollectionFeatureType()
FeatureCollection
getCollectionFeatureType in interface FeatureCollection
public PointFeatureCollection subset(LatLonRect boundingBox,
DateRange dateRange)
throws java.io.IOException
PointFeatureCollection
subset in interface PointFeatureCollectionboundingBox - only points in this lat/lon bounding box. may be null.dateRange - only points in this date range. may be null.
java.io.IOException - on read error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||