Package ucar.nc2.ft.point.standard
Class StandardTrajectoryCollectionImpl
- java.lang.Object
-
- ucar.nc2.ft.point.DsgCollectionImpl
-
- ucar.nc2.ft.point.PointFeatureCCImpl
-
- ucar.nc2.ft.point.standard.StandardTrajectoryCollectionImpl
-
- All Implemented Interfaces:
Iterable<TrajectoryFeature>
,DsgFeatureCollection
,PointFeatureCC
,TrajectoryFeatureCollection
public class StandardTrajectoryCollectionImpl extends PointFeatureCCImpl implements TrajectoryFeatureCollection
TrajectoryFeatureCollection using nested tables.- Since:
- Dec 31, 2008
-
-
Field Summary
-
Fields inherited from class ucar.nc2.ft.point.PointFeatureCCImpl
collectionFeatureType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StandardTrajectoryCollectionImpl(String name, List<CoordinateAxis> coords)
protected
StandardTrajectoryCollectionImpl(String name, CalendarDateUnit timeUnit, String altUnits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IOIterator<PointFeatureCollection>
getCollectionIterator()
General way to handle iterations on all classes that implement this interface.PointFeatureCollectionIterator
getPointFeatureCollectionIterator()
boolean
hasNext()
Use the internal iterator to check if there is another TrajectoryFeature in the iteration.Iterator<TrajectoryFeature>
iterator()
TrajectoryFeature
next()
Use the internal iterator to get the next TrajectoryFeature in the iteration.void
resetIteration()
Reset the internal iterator for another iteration over the TrajectoryFeatures in this Collection.TrajectoryFeatureCollection
subset(LatLonRect boundingBox)
-
Methods inherited from class ucar.nc2.ft.point.PointFeatureCCImpl
getCollectionFeatureType
-
Methods inherited from class ucar.nc2.ft.point.DsgCollectionImpl
getAltName, getAltUnits, getBoundingBox, getCalendarDateRange, getCoordinateVariables, getExtraVariables, getInfo, getName, getNobs, getTimeName, getTimeUnit, 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.DsgFeatureCollection
getAltName, getAltUnits, getBoundingBox, getCalendarDateRange, getCollectionFeatureType, getCoordinateVariables, getExtraVariables, getName, getTimeName, getTimeUnit, size
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
StandardTrajectoryCollectionImpl
protected StandardTrajectoryCollectionImpl(String name, CalendarDateUnit timeUnit, String altUnits)
-
StandardTrajectoryCollectionImpl
protected StandardTrajectoryCollectionImpl(String name, List<CoordinateAxis> coords)
-
-
Method Detail
-
subset
public TrajectoryFeatureCollection subset(LatLonRect boundingBox)
- Specified by:
subset
in interfaceTrajectoryFeatureCollection
-
iterator
public Iterator<TrajectoryFeature> iterator()
- Specified by:
iterator
in interfaceIterable<TrajectoryFeature>
-
getPointFeatureCollectionIterator
public PointFeatureCollectionIterator getPointFeatureCollectionIterator() throws IOException
- Specified by:
getPointFeatureCollectionIterator
in interfaceTrajectoryFeatureCollection
- Throws:
IOException
-
getCollectionIterator
public IOIterator<PointFeatureCollection> getCollectionIterator() throws IOException
Description copied from interface:PointFeatureCC
General way to handle iterations on all classes that implement this interface. Generally, one uses class specific foreach- Specified by:
getCollectionIterator
in interfacePointFeatureCC
- Returns:
- Iterator over PointFeatureCollection which may throw an IOException
- Throws:
IOException
-
hasNext
public boolean hasNext() throws IOException
Description copied from interface:TrajectoryFeatureCollection
Use the internal iterator to check if there is another TrajectoryFeature in the iteration.- Specified by:
hasNext
in interfaceTrajectoryFeatureCollection
- Returns:
- true is there is another TrajectoryFeature in the iteration.
- Throws:
IOException
- on read error
-
next
public TrajectoryFeature next()
Description copied from interface:TrajectoryFeatureCollection
Use the internal iterator to get the next TrajectoryFeature in the iteration. You must call hasNext() before you call this.- Specified by:
next
in interfaceTrajectoryFeatureCollection
- Returns:
- the next TrajectoryFeature in the iteration
-
resetIteration
public void resetIteration() throws IOException
Description copied from interface:TrajectoryFeatureCollection
Reset the internal iterator for another iteration over the TrajectoryFeatures in this Collection.- Specified by:
resetIteration
in interfaceTrajectoryFeatureCollection
- Throws:
IOException
- on read error
-
-