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 DsgFeatureCollection
dsg
protected EarthLocation
location
protected double
nomTime
protected double
obsTime
protected CalendarDateUnit
timeUnit
-
Constructor Summary
Constructors Modifier Constructor Description protected
PointFeatureImpl(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 int
compareTo(PointFeature other)
String
getDescription()
DsgFeatureCollection
getFeatureCollection()
Get the containing DsgFeatureCollectionEarthLocation
getLocation()
Location of this observationdouble
getNominalTime()
Nominal time of this observation.CalendarDate
getNominalTimeAsCalendarDate()
Nominal time of this observation, as a CalendarDate.double
getObservationTime()
Actual time of this observation.CalendarDate
getObservationTimeAsCalendarDate()
Actual time of this observation, as a CalendarDate.String
toString()
-
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:PointFeature
Get the containing DsgFeatureCollection- Specified by:
getFeatureCollection
in interfacePointFeature
-
getLocation
@Nonnull public EarthLocation getLocation()
Description copied from interface:PointFeature
Location of this observation- Specified by:
getLocation
in interfacePointFeature
- Returns:
- the location of this observation
-
getNominalTime
public double getNominalTime()
Description copied from interface:PointFeature
Nominal 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:
getNominalTime
in interfacePointFeature
- Returns:
- Nominal time of this observation.
-
getObservationTime
public double getObservationTime()
Description copied from interface:PointFeature
Actual time of this observation. Convert to CalendarDate with getFeatureCollection().getTimeUnit().makeDate()- Specified by:
getObservationTime
in interfacePointFeature
- Returns:
- actual time of this observation.
-
getDescription
public String getDescription()
-
getObservationTimeAsCalendarDate
@Nonnull public CalendarDate getObservationTimeAsCalendarDate()
Description copied from interface:PointFeature
Actual time of this observation, as a CalendarDate.- Specified by:
getObservationTimeAsCalendarDate
in interfacePointFeature
- Returns:
- actual time of this observation, as a CalendarDate.
-
getNominalTimeAsCalendarDate
@Nonnull public CalendarDate getNominalTimeAsCalendarDate()
Description copied from interface:PointFeature
Nominal time of this observation, as a CalendarDate. Will be equal to the observation date if not exists independently.- Specified by:
getNominalTimeAsCalendarDate
in interfacePointFeature
- Returns:
- Nominal time of this observation, as a CalendarDate.
-
compareTo
public int compareTo(@Nonnull PointFeature other)
- Specified by:
compareTo
in interfaceComparable<PointFeature>
-
-