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 void
close()
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:HZTDataSource
Read the underlying data- Specified by:
read
in interfaceHZTDataSource
- Parameters:
variableId
- The variable to readcoordsToRead
- AList
of co-ordinates to read- Returns:
- A
List
of data corresponding to the provided coordinates - Throws:
DataReadingException
- If there is a problem reading the underlying data
-
close
public void close() throws DataReadingException
Description copied from interface:DataSource
Close all resources associated with the underlying data.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceDataSource
- Overrides:
close
in classOnDemandVtkDataSource
- Throws:
DataReadingException
- If the underlying data cannot be closed for some reason
-
-