visad.data.netcdf.in
Class Strategy
- java.lang.Object
-
- visad.data.netcdf.in.Strategy
-
- Direct Known Subclasses:
- CompositeStrategy, FileStrategy, InMemoryStrategy
public abstract class Strategy extends java.lang.ObjectA strategy for importing a netCDF dataset.
-
-
Field Summary
Fields Modifier and Type Field and Description static StrategyDEFAULTThe default import strategy.static StrategyIN_MEMORYAn import strategy that first tries theInMemoryStrategystrategy and then tries theMERGED_FILE_FLAT_FIELDSstrategy.static StrategyMERGED_FILE_FLAT_FIELDSAn import strategy that first tries theFileStrategystrategy and then tries theUNMERGED_FILE_FLAT_FIELDSstrategy.static StrategyUNMERGED_FILE_FLAT_FIELDSAn import strategy that only tries theMaxFileFieldStrategystrategy.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description abstract DataImplgetData(NetcdfAdapter adapter)Returns a VisAD data object corresponding to the netCDF dataset.
-
-
-
Field Detail
-
UNMERGED_FILE_FLAT_FIELDS
public static final Strategy UNMERGED_FILE_FLAT_FIELDS
An import strategy that only tries theMaxFileFieldStrategystrategy.
-
MERGED_FILE_FLAT_FIELDS
public static final Strategy MERGED_FILE_FLAT_FIELDS
An import strategy that first tries theFileStrategystrategy and then tries theUNMERGED_FILE_FLAT_FIELDSstrategy.
-
IN_MEMORY
public static final Strategy IN_MEMORY
An import strategy that first tries theInMemoryStrategystrategy and then tries theMERGED_FILE_FLAT_FIELDSstrategy.
-
DEFAULT
public static final Strategy DEFAULT
The default import strategy. The details of this strategy are unspecified and subject to change. Currently, it is identical to theMERGED_FILE_FLAT_FIELDSstrategy.
-
-
Method Detail
-
getData
public abstract DataImpl getData(NetcdfAdapter adapter) throws java.io.IOException, VisADException, java.rmi.RemoteException, BadFormException, java.lang.OutOfMemoryError
Returns a VisAD data object corresponding to the netCDF dataset.
- Parameters:
adapter- The netCDF-to-VisAD adapter.- Returns:
- The top-level, VisAD data object of the netCDF dataset.
- Throws:
VisADException- if a problem occurs in core VisAD -- probably because a VisAD object couldn't be created.java.io.IOException- if a data access I/O failure occurs.BadFormException- if the netCDF dataset doesn't conform to conventions implicit in constructing View.java.lang.OutOfMemoryError- if the netCDF dataset couldn't be imported into memory.java.rmi.RemoteException- if a Java RMI failure occurs.
-
-
DMelt 3.0 © DataMelt by jWork.ORG