Package Acquisition.offlineFuncs
Class OfflineWavFileServer
- All Implemented Interfaces:
OfflineDataStore
,PamSettings
,SettingsNameProvider
- Direct Known Subclasses:
RonaOfflineFileServer
This has been split off from OfflineFileServer so that OfflineFileServer can be used with
other file types.
- Author:
- Doug Gillespie
-
Constructor Summary
ConstructorDescriptionOfflineWavFileServer
(OfflineFileDataStore offlineRawDataStore, FileDate fileDate) -
Method Summary
Modifier and TypeMethodDescriptioncreateDataMap
(OfflineFileServer<FileDataMapPoint> offlineFileServer, PamDataBlock pamDataBlock) createMapPoint
(File file, long startTime, long endTime) Create the type specific data map point.Get a file filter for the types of files in use.long[]
getFileStartandEndTime
(File file) Get the file start and end times through whatever means are required.boolean
loadData
(PamDataBlock dataBlock, OfflineDataLoadInfo offlineLoadDataInfo, ViewLoadObserver loadObserver) Load data for a given datablock between two time limits.void
Get the end times of map points.Methods inherited from class dataMap.filemaps.OfflineFileServer
createOfflineDataMap, createOfflineDataMap, findFirstMapPoint, getDatagramManager, getDataLocation, getDataMap, getDataSourceName, getOfflineFileParameters, getOfflineRawDataStore, getRawDataBlock, getSettingsReference, getSettingsVersion, getUnitName, getUnitType, loadSerialisedMap, restoreSettings, rewriteIndexFile, saveData, saveSerialisedMap, setOfflineFileParameters
-
Constructor Details
-
OfflineWavFileServer
-
-
Method Details
-
getFileDate
-
getFileStartandEndTime
Description copied from class:OfflineFileServer
Get the file start and end times through whatever means are required.- Specified by:
getFileStartandEndTime
in classOfflineFileServer<FileDataMapPoint>
- Returns:
- 2 element of times. Fill with 0 if no times available.
-
createMapPoint
Description copied from class:OfflineFileServer
Create the type specific data map point.- Specified by:
createMapPoint
in classOfflineFileServer<FileDataMapPoint>
- Returns:
-
createDataMap
public OfflineDataMap<FileDataMapPoint> createDataMap(OfflineFileServer<FileDataMapPoint> offlineFileServer, PamDataBlock pamDataBlock) - Specified by:
createDataMap
in classOfflineFileServer<FileDataMapPoint>
-
getFileFilter
Description copied from class:OfflineFileServer
Get a file filter for the types of files in use.- Specified by:
getFileFilter
in classOfflineFileServer<FileDataMapPoint>
- Returns:
- file filter.
-
sortMapEndTimes
public void sortMapEndTimes()Description copied from class:OfflineFileServer
Get the end times of map points. In most cases the data will have come back from the serialised file, so will already have this information so it can be skipped.- Specified by:
sortMapEndTimes
in classOfflineFileServer<FileDataMapPoint>
-
loadData
public boolean loadData(PamDataBlock dataBlock, OfflineDataLoadInfo offlineLoadDataInfo, ViewLoadObserver loadObserver) Description copied from interface:OfflineDataStore
Load data for a given datablock between two time limits.- Parameters:
dataBlock
- datablock owner of the data- Returns:
- true if load successful.
-