Package ucar.nc2.ft
Interface FeatureDatasetFactory
-
- All Known Implementing Classes:
AbstractRadialAdapter
,BufrFeatureDatasetFactory
,CFRadialAdapter
,Dorade2RadialAdapter
,GridDatasetStandardFactory
,Nexrad2RadialAdapter
,NidsRadialAdapter
,NsslRadialAdapter
,PointDatasetStandardFactory
,RadialDatasetStandardFactory
,SimpleGeometryStandardFactory
,UF2RadialAdapter
public interface FeatureDatasetFactory
Interface for factories that wrap a NetcdfDataset with a FeatureDataset. Class must have a no-arg Constructor. Implementations must be thread-safe- Since:
- Mar 19, 2008
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FeatureType[]
getFeatureTypes()
This Factory can open these types of Feature datasets.Object
isMine(FeatureType wantFeatureType, NetcdfDataset ncd, Formatter errlog)
Determine if the factory can open this dataset as an instance of the given feature typeFeatureDataset
open(FeatureType ftype, NetcdfDataset ncd, Object analysis, CancelTask task, Formatter errlog)
Open a NetcdfDataset as a FeatureDataset.
-
-
-
Method Detail
-
isMine
Object isMine(FeatureType wantFeatureType, NetcdfDataset ncd, Formatter errlog) throws IOException
Determine if the factory can open this dataset as an instance of the given feature type- Parameters:
wantFeatureType
- can factory open as this feature type? If null, can factory open as any feature type?ncd
- examine this NetcdfDataset.errlog
- place errors here- Returns:
- "analysis object" - null if cannot open, else an Object that is passed back into FeatureDatasetFactory.open(). This allows expensive analysis results to be reused
- Throws:
IOException
- on read error
-
open
FeatureDataset open(FeatureType ftype, NetcdfDataset ncd, Object analysis, CancelTask task, Formatter errlog) throws IOException
Open a NetcdfDataset as a FeatureDataset. Should only be called if isMine() returns non-null.- Parameters:
ftype
- open as this feature type. If null, open as any feature type.ncd
- an already opened NetcdfDataset.analysis
- the object returned from isMine(). Likely given to a different instance of FeatureDatasetFactorytask
- user may cancel, may be nullerrlog
- write error messages here, may be null- Returns:
- a subclass of FeatureDataset
- Throws:
IOException
- on error
-
getFeatureTypes
FeatureType[] getFeatureTypes()
This Factory can open these types of Feature datasets.- Returns:
- array of FeatureType
-
-