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 protectedStandardTrajectoryCollectionImpl(String name, List<CoordinateAxis> coords)protectedStandardTrajectoryCollectionImpl(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.PointFeatureCollectionIteratorgetPointFeatureCollectionIterator()booleanhasNext()Use the internal iterator to check if there is another TrajectoryFeature in the iteration.Iterator<TrajectoryFeature>iterator()TrajectoryFeaturenext()Use the internal iterator to get the next TrajectoryFeature in the iteration.voidresetIteration()Reset the internal iterator for another iteration over the TrajectoryFeatures in this Collection.TrajectoryFeatureCollectionsubset(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:
subsetin interfaceTrajectoryFeatureCollection
-
iterator
public Iterator<TrajectoryFeature> iterator()
- Specified by:
iteratorin interfaceIterable<TrajectoryFeature>
-
getPointFeatureCollectionIterator
public PointFeatureCollectionIterator getPointFeatureCollectionIterator() throws IOException
- Specified by:
getPointFeatureCollectionIteratorin interfaceTrajectoryFeatureCollection- Throws:
IOException
-
getCollectionIterator
public IOIterator<PointFeatureCollection> getCollectionIterator() throws IOException
Description copied from interface:PointFeatureCCGeneral way to handle iterations on all classes that implement this interface. Generally, one uses class specific foreach- Specified by:
getCollectionIteratorin interfacePointFeatureCC- Returns:
- Iterator over PointFeatureCollection which may throw an IOException
- Throws:
IOException
-
hasNext
public boolean hasNext() throws IOExceptionDescription copied from interface:TrajectoryFeatureCollectionUse the internal iterator to check if there is another TrajectoryFeature in the iteration.- Specified by:
hasNextin interfaceTrajectoryFeatureCollection- Returns:
- true is there is another TrajectoryFeature in the iteration.
- Throws:
IOException- on read error
-
next
public TrajectoryFeature next()
Description copied from interface:TrajectoryFeatureCollectionUse the internal iterator to get the next TrajectoryFeature in the iteration. You must call hasNext() before you call this.- Specified by:
nextin interfaceTrajectoryFeatureCollection- Returns:
- the next TrajectoryFeature in the iteration
-
resetIteration
public void resetIteration() throws IOExceptionDescription copied from interface:TrajectoryFeatureCollectionReset the internal iterator for another iteration over the TrajectoryFeatures in this Collection.- Specified by:
resetIterationin interfaceTrajectoryFeatureCollection- Throws:
IOException- on read error
-
-