Package ucar.nc2.ft.point
Class DsgCollectionImpl
- java.lang.Object
-
- ucar.nc2.ft.point.DsgCollectionImpl
-
- All Implemented Interfaces:
DsgFeatureCollection
- Direct Known Subclasses:
PointCollectionImpl,PointFeatureCCCImpl,PointFeatureCCImpl
public abstract class DsgCollectionImpl extends Object implements DsgFeatureCollection
Common methods for DsgFeatureCollection.- Since:
- 9/25/2015.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDsgCollectionImpl(String name, CalendarDateUnit timeUnit, String altUnits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAltUnits()The altitude unit string if it exists.LatLonRectgetBoundingBox()The boundingBox for the FeatureCollection.CalendarDateRangegetCalendarDateRange()Calendar date range for the FeatureCollection.List<Variable>getExtraVariables()CollectionInfogetInfo()StringgetName()Get the name of this feature collection.intgetNobs()CalendarDateUnitgetTimeUnit()The time unit.intsize()The number of Features in the collection.-
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
getCollectionFeatureType
-
-
-
-
Field Detail
-
name
protected String name
-
timeUnit
protected CalendarDateUnit timeUnit
-
altUnits
protected String altUnits
-
info
protected CollectionInfo info
-
-
Constructor Detail
-
DsgCollectionImpl
protected DsgCollectionImpl(String name, CalendarDateUnit timeUnit, String altUnits)
-
-
Method Detail
-
getName
@Nonnull public String getName()
Description copied from interface:DsgFeatureCollectionGet the name of this feature collection.- Specified by:
getNamein interfaceDsgFeatureCollection- Returns:
- the name of this feature collection
-
getTimeUnit
@Nonnull public CalendarDateUnit getTimeUnit()
Description copied from interface:DsgFeatureCollectionThe time unit.- Specified by:
getTimeUnitin interfaceDsgFeatureCollection- Returns:
- time unit, may not be null
-
getAltUnits
@Nullable public String getAltUnits()
Description copied from interface:DsgFeatureCollectionThe altitude unit string if it exists.- Specified by:
getAltUnitsin interfaceDsgFeatureCollection- Returns:
- altitude unit string, may be null
-
getExtraVariables
@Nonnull public List<Variable> getExtraVariables()
- Specified by:
getExtraVariablesin interfaceDsgFeatureCollection
-
size
public int size()
Description copied from interface:DsgFeatureCollectionThe number of Features in the collection. May not be known until after iterating through the collection.- Specified by:
sizein interfaceDsgFeatureCollection- Returns:
- number of elements in the collection, or -1 if not known.
-
getNobs
public int getNobs()
-
getCalendarDateRange
@Nullable public CalendarDateRange getCalendarDateRange()
Description copied from interface:DsgFeatureCollectionCalendar date range for the FeatureCollection. May not be known until after iterating through the collection.- Specified by:
getCalendarDateRangein interfaceDsgFeatureCollection- Returns:
- the calendar date range for the entire collection, or null if unknown
-
getBoundingBox
@Nullable public LatLonRect getBoundingBox()
Description copied from interface:DsgFeatureCollectionThe boundingBox for the FeatureCollection. May not be known until after iterating through the collection.- Specified by:
getBoundingBoxin interfaceDsgFeatureCollection- Returns:
- the lat/lon boundingBox for the entire collection, or null if unknown.
-
getInfo
@Nonnull public CollectionInfo getInfo()
-
-