Package ucar.nc2.ft.point
Class PointFeatureImpl
- java.lang.Object
-
- ucar.nc2.ft.point.PointFeatureImpl
-
- All Implemented Interfaces:
Comparable<PointFeature>,PointFeature
public abstract class PointFeatureImpl extends Object implements PointFeature, Comparable<PointFeature>
Abstract superclass for implementations of PointFeature. Concrete subclass must implement getFeatureData() and getDataAll();- Since:
- Feb 29, 2008
-
-
Field Summary
Fields Modifier and Type Field Description protected DsgFeatureCollectiondsgprotected EarthLocationlocationprotected doublenomTimeprotected doubleobsTimeprotected CalendarDateUnittimeUnit
-
Constructor Summary
Constructors Modifier Constructor Description protectedPointFeatureImpl(DsgFeatureCollection dsg, CalendarDateUnit timeUnit)PointFeatureImpl(DsgFeatureCollection dsg, EarthLocation location, double obsTime, double nomTime, CalendarDateUnit timeUnit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PointFeature other)StringgetDescription()DsgFeatureCollectiongetFeatureCollection()Get the containing DsgFeatureCollectionEarthLocationgetLocation()Location of this observationdoublegetNominalTime()Nominal time of this observation.CalendarDategetNominalTimeAsCalendarDate()Nominal time of this observation, as a CalendarDate.doublegetObservationTime()Actual time of this observation.CalendarDategetObservationTimeAsCalendarDate()Actual time of this observation, as a CalendarDate.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ucar.nc2.ft.PointFeature
getDataAll, getFeatureData
-
-
-
-
Field Detail
-
dsg
protected DsgFeatureCollection dsg
-
location
protected EarthLocation location
-
obsTime
protected double obsTime
-
nomTime
protected double nomTime
-
timeUnit
protected CalendarDateUnit timeUnit
-
-
Constructor Detail
-
PointFeatureImpl
protected PointFeatureImpl(DsgFeatureCollection dsg, CalendarDateUnit timeUnit)
-
PointFeatureImpl
public PointFeatureImpl(DsgFeatureCollection dsg, EarthLocation location, double obsTime, double nomTime, CalendarDateUnit timeUnit)
-
-
Method Detail
-
getFeatureCollection
@Nonnull public DsgFeatureCollection getFeatureCollection()
Description copied from interface:PointFeatureGet the containing DsgFeatureCollection- Specified by:
getFeatureCollectionin interfacePointFeature
-
getLocation
@Nonnull public EarthLocation getLocation()
Description copied from interface:PointFeatureLocation of this observation- Specified by:
getLocationin interfacePointFeature- Returns:
- the location of this observation
-
getNominalTime
public double getNominalTime()
Description copied from interface:PointFeatureNominal time of this observation. Convert to Date with getTimeUnit().makeDate(). When the nominal time is not given in the data, it is usually set to the observational time.- Specified by:
getNominalTimein interfacePointFeature- Returns:
- Nominal time of this observation.
-
getObservationTime
public double getObservationTime()
Description copied from interface:PointFeatureActual time of this observation. Convert to CalendarDate with getFeatureCollection().getTimeUnit().makeDate()- Specified by:
getObservationTimein interfacePointFeature- Returns:
- actual time of this observation.
-
getDescription
public String getDescription()
-
getObservationTimeAsCalendarDate
@Nonnull public CalendarDate getObservationTimeAsCalendarDate()
Description copied from interface:PointFeatureActual time of this observation, as a CalendarDate.- Specified by:
getObservationTimeAsCalendarDatein interfacePointFeature- Returns:
- actual time of this observation, as a CalendarDate.
-
getNominalTimeAsCalendarDate
@Nonnull public CalendarDate getNominalTimeAsCalendarDate()
Description copied from interface:PointFeatureNominal time of this observation, as a CalendarDate. Will be equal to the observation date if not exists independently.- Specified by:
getNominalTimeAsCalendarDatein interfacePointFeature- Returns:
- Nominal time of this observation, as a CalendarDate.
-
compareTo
public int compareTo(@Nonnull PointFeature other)- Specified by:
compareToin interfaceComparable<PointFeature>
-
-