|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.ft.FeatureDatasetImpl
public abstract class FeatureDatasetImpl
Abstract superclass for implementations of FeatureDataset. Subclass must implement getFeatureClass(), and add specific functionality.
Constructor Summary | |
---|---|
FeatureDatasetImpl()
No-arg constuctor |
|
FeatureDatasetImpl(NetcdfDataset ncfile)
Constructor when theres a NetcdfFile underneath |
|
FeatureDatasetImpl(java.lang.String title,
java.lang.String description,
java.lang.String location)
Constructor when theres no NetcdfFile underneath. |
Method Summary | |
---|---|
void |
close()
Close all resources associated with this dataset. |
Attribute |
findGlobalAttributeIgnoreCase(java.lang.String name)
Return the global attribute with the given name, ignoring case. |
LatLonRect |
getBoundingBox()
The boundingBox for the entire dataset. |
VariableSimpleIF |
getDataVariable(java.lang.String shortName)
Get the named data Variable. |
java.util.List<VariableSimpleIF> |
getDataVariables()
The data Variables available in this dataset. |
DateRange |
getDateRange()
Date range for the entire dataset. |
java.lang.String |
getDescription()
Text information about this dataset. |
void |
getDetailInfo(java.util.Formatter sf)
Show debug / underlying implementation details |
java.util.Date |
getEndDate()
Ending date for the entire dataset. |
java.util.List<Attribute> |
getGlobalAttributes()
List of global attributes. |
java.lang.String |
getImplementationName()
Show who is implementing |
java.lang.String |
getLocation()
The URI location of the dataset |
NetcdfFile |
getNetcdfFile()
Return underlying NetcdfFile, or null if none. |
java.util.Date |
getStartDate()
Starting date for the entire dataset. |
java.lang.String |
getTitle()
Title of the dataset. |
void |
setFileCache(ucar.nc2.util.cache.FileCache fileCache)
FileCacheable must store the FileCache and call it on close(): |
boolean |
sync()
Sync() is called when the FileCacheable is found in the cache, before returning the object to the application. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ucar.nc2.ft.FeatureDataset |
---|
calcBounds, getFeatureType |
Constructor Detail |
---|
public FeatureDatasetImpl()
public FeatureDatasetImpl(java.lang.String title, java.lang.String description, java.lang.String location)
title
- title of the dataset.description
- description of the dataset.location
- URI of the datasetpublic FeatureDatasetImpl(NetcdfDataset ncfile)
ncfile
- adapt this NetcdfDatasetMethod Detail |
---|
public NetcdfFile getNetcdfFile()
FeatureDataset
getNetcdfFile
in interface FeatureDataset
public java.lang.String getTitle()
FeatureDataset
getTitle
in interface FeatureDataset
public java.lang.String getDescription()
FeatureDataset
getDescription
in interface FeatureDataset
public java.lang.String getLocation()
FeatureDataset
getLocation
in interface FeatureDataset
getLocation
in interface ucar.nc2.util.cache.FileCacheable
public java.util.List<Attribute> getGlobalAttributes()
FeatureDataset
getGlobalAttributes
in interface FeatureDataset
public Attribute findGlobalAttributeIgnoreCase(java.lang.String name)
FeatureDataset
findGlobalAttributeIgnoreCase
in interface FeatureDataset
name
- attribute name
public void getDetailInfo(java.util.Formatter sf)
FeatureDataset
getDetailInfo
in interface FeatureDataset
sf
- append info herepublic DateRange getDateRange()
FeatureDataset
getDateRange
in interface FeatureDataset
public java.util.Date getStartDate()
FeatureDataset
getStartDate
in interface FeatureDataset
public java.util.Date getEndDate()
FeatureDataset
getEndDate
in interface FeatureDataset
public LatLonRect getBoundingBox()
FeatureDataset
getBoundingBox
in interface FeatureDataset
public java.util.List<VariableSimpleIF> getDataVariables()
FeatureDataset
getDataVariables
in interface FeatureDataset
public VariableSimpleIF getDataVariable(java.lang.String shortName)
FeatureDataset
getDataVariable
in interface FeatureDataset
shortName
- of data Variable.
public java.lang.String getImplementationName()
FeatureDataset
getImplementationName
in interface FeatureDataset
public void close() throws java.io.IOException
FeatureDataset
close
in interface FeatureDataset
close
in interface ucar.nc2.util.cache.FileCacheable
java.io.IOException
public boolean sync() throws java.io.IOException
ucar.nc2.util.cache.FileCacheable
sync
in interface ucar.nc2.util.cache.FileCacheable
java.io.IOException
- on i/o error.public void setFileCache(ucar.nc2.util.cache.FileCache fileCache)
ucar.nc2.util.cache.FileCacheable
public synchronized void close() throws java.io.IOException { if (isClosed) return; if (cache != null) { cache.release(this); } else { reallyClose(); } isClosed = true;
setFileCache
in interface ucar.nc2.util.cache.FileCacheable
fileCache
- must store this, use it on close as above.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |