public abstract class OfflineFileControl extends PamControlledUnit implements OfflineDataStore
Constructor and Description |
---|
OfflineFileControl(java.lang.String unitType,
java.lang.String unitName) |
Modifier and Type | Method and Description |
---|---|
javax.swing.JMenuItem |
createDetectionMenu(java.awt.Frame parentFrame)
Create a JMenu object containing MenuItems associated with PamProcesses
|
void |
createOfflineDataMap(java.awt.Window parentFrame)
Create a basic map of the data including first and
last times and some kind of data/unit time count
plus ideally some kind of start and stop time list
of where there are gaps in the data.
|
void |
detectionMenuAction(java.awt.Frame parentFrame) |
DatagramManager |
getDatagramManager() |
java.lang.String |
getDataSourceName()
Get the data source name
|
OfflineFileParams |
getFileParams() |
OfflineFileDataMap |
getOfflineFileDataMap() |
OfflineFileProcess |
getOfflineFileProcess() |
abstract boolean |
loadData(PamDataBlock dataBlock,
java.util.ArrayList<OfflineFileMapPoint> usedMapPoints,
long dataStart,
long dataEnd,
RequestCancellationObject cancellationObject,
ViewLoadObserver loadObserver)
Load data from the files and pack into appropriate datablocks.
|
boolean |
loadData(PamDataBlock dataBlock,
long dataStart,
long dataEnd,
RequestCancellationObject cancellationObject,
ViewLoadObserver loadObserver)
Load data for a given datablock between two time limits.
|
void |
notifyModelChanged(int changeType)
General notification when the PAMGAURD model changes.
|
boolean |
rewriteIndexFile(PamDataBlock dataBlock,
OfflineDataMapPoint dmp)
Moved this function over from binary data store.
|
void |
setDatagramManager(DatagramManager datagramManager) |
void |
setFileParams(OfflineFileParams fileParams) |
addOfflineTaskGroup, addOtherRelatedMenuItems, addPamProcess, addRelatedMenuItems, addXMLParameter, addXMLParameter, addXMLParameter, addXMLParameter, canClose, canPlayViewerSound, createDisplayMenu, createFileMenu, createHelpMenu, fillXMLElement, flushDataBlockBuffers, getFrameNumber, getGuiFrame, getModuleSummary, getNumOfflineTaskGroups, getNumPamProcesses, getOfflineTaskGroup, getPamController, getPamModuleInfo, getPamProcess, getPamView, getShortUnitType, getSidePanel, getTabClipCopier, getTabPanel, getTabSpecificMenuBar, getToolbarComponent, getUnitName, getUnitType, getVerboseLevel, gotoTab, isViewer, pamClose, pamHasStopped, pamToStart, playViewerSound, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setupControlledUnit, stopViewerSound, terminalPrint, terminalPrintln, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
saveData
public OfflineFileControl(java.lang.String unitType, java.lang.String unitName)
public void notifyModelChanged(int changeType)
PamControlledUnit
notifyModelChanged
in class PamControlledUnit
changeType
- type of changepublic void createOfflineDataMap(java.awt.Window parentFrame)
OfflineDataStore
createOfflineDataMap
in interface OfflineDataStore
public java.lang.String getDataSourceName()
OfflineDataStore
getDataSourceName
in interface OfflineDataStore
public javax.swing.JMenuItem createDetectionMenu(java.awt.Frame parentFrame)
PamControlledUnit
createDetectionMenu
in class PamControlledUnit
parentFrame
- The owner frame of the menuNote that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.
public void detectionMenuAction(java.awt.Frame parentFrame)
public OfflineFileDataMap getOfflineFileDataMap()
public boolean loadData(PamDataBlock dataBlock, long dataStart, long dataEnd, RequestCancellationObject cancellationObject, ViewLoadObserver loadObserver)
OfflineDataStore
loadData
in interface OfflineDataStore
dataBlock
- datablock owner of the datadataStart
- start time in millisecondsdataEnd
- end time in millisecondspublic abstract boolean loadData(PamDataBlock dataBlock, java.util.ArrayList<OfflineFileMapPoint> usedMapPoints, long dataStart, long dataEnd, RequestCancellationObject cancellationObject, ViewLoadObserver loadObserver)
dataBlock
- dataBlock for datausedMapPoints
- list of mappoints which may have data in the load timedataStart
- start of data loaddataEnd
- end of data loadcancellationObject
- cancellation object for threading loadingloadObserver
- update observer for loading data.public OfflineFileParams getFileParams()
public OfflineFileProcess getOfflineFileProcess()
public boolean rewriteIndexFile(PamDataBlock dataBlock, OfflineDataMapPoint dmp)
OfflineDataStore
rewriteIndexFile
in interface OfflineDataStore
public DatagramManager getDatagramManager()
getDatagramManager
in interface OfflineDataStore
public void setDatagramManager(DatagramManager datagramManager)
datagramManager
- the datagramManager to setpublic void setFileParams(OfflineFileParams fileParams)
fileParams
- the fileParams to set