Package d3
Class D3Control
- All Implemented Interfaces:
OfflineDataStore
,SettingsNameProvider
-
Field Summary
FieldsFields inherited from class fileOfflineData.OfflineFileControl
fileParams
Fields inherited from class PamController.PamControlledUnit
isMixed, isViewer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PamDataBlock
createOfflineDataBlock
(OfflineFileProcess offlineFileProcess) Get the datablock - need to be abstract so that it can be created for specific types in the concrete classes.int
findSensorIndex
(int sensorId) Find sensor information corresponding to a specific id.int
findSensorIndex
(String sensorName) Find a sensor by the name of it's cal field.findSensorInfo
(int sensorId) Find sensor information corresponding to a specific id.findSensorInfo
(String calName) Find sensor information corresponding to a specific id.Get the file type for the files to be listedboolean
loadData
(PamDataBlock dataBlock, ArrayList<OfflineFileMapPoint> usedMapPoints, OfflineDataLoadInfo offlineDataLoadInfo, ViewLoadObserver loadObserver) Load data from the files and pack into appropriate datablocks.protected void
processMapFile
(File aFile, int fileIndex) Called for each file when making the data map.boolean
saveData
(PamDataBlock dataBlock) Save data previously loaded from the store during offline viewing.Methods inherited from class fileOfflineData.OfflineFileControl
createDetectionMenu, createOfflineDataMap, detectionMenuAction, getDatagramManager, getDataLocation, getDataSourceName, getFileParams, getOfflineFileDataMap, getOfflineFileProcess, loadData, notifyModelChanged, rewriteIndexFile, setDatagramManager, setFileParams
Methods inherited from class PamController.PamControlledUnit
addOfflineTaskGroup, addOtherRelatedMenuItems, addPamProcess, addPamProcess, addRelatedMenuItems, canClose, canPlayViewerSound, createDisplayMenu, createFileMenu, createHelpMenu, flushDataBlockBuffers, getBackupInformation, getFrameNumber, getGUI, getGuiFrame, getInstanceIndex, getModuleStatus, getModuleStatusManager, getModuleSummary, getModuleSummary, getNumOfflineTaskGroups, getNumPamProcesses, getOfflineState, getOfflineTaskGroup, getPamConfiguration, getPamController, getPamModuleInfo, getPamProcess, getPamView, getPlugin, getShortUnitType, getSidePanel, getTabClipCopier, getTabPanel, getTabSpecificMenuBar, getToolbarComponent, getUnitName, getUnitTaskManager, getUnitTaskManager, getUnitType, getVerboseLevel, gotoTab, isInMainConfiguration, isNetRx, isViewer, pamClose, pamHasStopped, pamToStart, playViewerSound, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setModuleStatusManager, setPamConfiguration, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setToolbarComponent, setUnitTaskManager, setupControlledUnit, stopViewerSound, tellModule, terminalPrint, terminalPrintln, toString
-
Field Details
-
Constructor Details
-
Method Details
-
processMapFile
Description copied from class:OfflineFileControl
Called for each file when making the data map. Concrete class should examine the file and create a datamap point for whatever is in there.- Specified by:
processMapFile
in classOfflineFileControl
- Parameters:
aFile
-fileIndex
-
-
getOfflineFileType
Description copied from class:OfflineFileControl
Get the file type for the files to be listed- Specified by:
getOfflineFileType
in classOfflineFileControl
- Returns:
- file type (e.g. xml)
-
createOfflineDataBlock
Description copied from class:OfflineFileControl
Get the datablock - need to be abstract so that it can be created for specific types in the concrete classes.- Specified by:
createOfflineDataBlock
in classOfflineFileControl
- Returns:
-
loadData
public boolean loadData(PamDataBlock dataBlock, ArrayList<OfflineFileMapPoint> usedMapPoints, OfflineDataLoadInfo offlineDataLoadInfo, ViewLoadObserver loadObserver) Description copied from class:OfflineFileControl
Load data from the files and pack into appropriate datablocks.- Specified by:
loadData
in classOfflineFileControl
- Parameters:
dataBlock
- dataBlock for datausedMapPoints
- list of mappoints which may have data in the load timeloadObserver
- update observer for loading data.- Returns:
- true hopefully !
-
saveData
Description copied from interface:OfflineDataStore
Save data previously loaded from the store during offline viewing.- Parameters:
dataBlock
- datablock owner of the data- Returns:
- true if saved or save not needed. False if an error prevents saving.
-
getD3DataBlock
- Returns:
- the d3DataBlock
-
findSensorInfo
Find sensor information corresponding to a specific id.- Parameters:
sensorId
- integer sensor id- Returns:
- sensor information.
-
findSensorInfo
Find sensor information corresponding to a specific id.- Parameters:
sensorId
- integer sensor id- Returns:
- sensor information.
-
findSensorIndex
public int findSensorIndex(int sensorId) Find sensor information corresponding to a specific id.- Parameters:
sensorId
- integer sensor id- Returns:
- sensor index.
-
findSensorIndex
Find a sensor by the name of it's cal field.- Parameters:
sensorName
-- Returns:
-
getD3SensorInfos
- Returns:
- the d3SensorInfos
-
getD3DataPlotProvider
- Returns:
- the d3DataPlotProvider
-