Package uk.ac.rdg.resc.edal.dataset.vtk
Class HydromodelVtkUnstructuredDataset.OnDemandVtkMeshDataSource
- java.lang.Object
-
- uk.ac.rdg.resc.edal.dataset.vtk.OnDemandVtkDataSource
-
- uk.ac.rdg.resc.edal.dataset.vtk.HydromodelVtkUnstructuredDataset.OnDemandVtkMeshDataSource
-
- All Implemented Interfaces:
AutoCloseable,DataSource,HZTDataSource
- Enclosing class:
- HydromodelVtkUnstructuredDataset
public static class HydromodelVtkUnstructuredDataset.OnDemandVtkMeshDataSource extends OnDemandVtkDataSource implements HZTDataSource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface uk.ac.rdg.resc.edal.dataset.HZTDataSource
HZTDataSource.MeshCoordinates3D
-
-
Constructor Summary
Constructors Constructor Description OnDemandVtkMeshDataSource(HydromodelVtkDatasetFactory.TimestepInfo[] timesteps, Number[] zVals)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close all resources associated with the underlying data.List<Number>read(String variableId, List<HZTDataSource.MeshCoordinates3D> coordsToRead)Read the underlying data-
Methods inherited from class uk.ac.rdg.resc.edal.dataset.vtk.OnDemandVtkDataSource
getData1D
-
-
-
-
Constructor Detail
-
OnDemandVtkMeshDataSource
public OnDemandVtkMeshDataSource(HydromodelVtkDatasetFactory.TimestepInfo[] timesteps, Number[] zVals)
-
-
Method Detail
-
read
public List<Number> read(String variableId, List<HZTDataSource.MeshCoordinates3D> coordsToRead) throws DataReadingException
Description copied from interface:HZTDataSourceRead the underlying data- Specified by:
readin interfaceHZTDataSource- Parameters:
variableId- The variable to readcoordsToRead- AListof co-ordinates to read- Returns:
- A
Listof data corresponding to the provided coordinates - Throws:
DataReadingException- If there is a problem reading the underlying data
-
close
public void close() throws DataReadingExceptionDescription copied from interface:DataSourceClose all resources associated with the underlying data.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceDataSource- Overrides:
closein classOnDemandVtkDataSource- Throws:
DataReadingException- If the underlying data cannot be closed for some reason
-
-