public class DecimatorControl extends PamControlledUnit implements PamSettings, OfflineRawDataStore
Needs a control dialog
Constructor and Description |
---|
DecimatorControl(java.lang.String name) |
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.
|
DatagramManager |
getDatagramManager() |
java.lang.String |
getDataSourceName()
Get the data source name
|
OfflineFileServer |
getOfflineFileServer() |
PamProcess |
getParentProcess() |
PamRawDataBlock |
getRawDataBlock() |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
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 |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
boolean |
rewriteIndexFile(PamDataBlock dataBlock,
OfflineDataMapPoint dmp)
Moved this function over from binary data store.
|
boolean |
saveData(PamDataBlock dataBlock)
Save data previously loaded from the store during
offline viewing.
|
void |
setupControlledUnit()
called for all PamControlledUnits after all units have been created.
|
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, stopViewerSound, terminalPrint, terminalPrintln, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUnitName, getUnitType
getUnitName
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 notifyModelChanged(int changeType)
PamControlledUnit
notifyModelChanged
in class PamControlledUnit
changeType
- type of changepublic java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings
public void setupControlledUnit()
PamControlledUnit
setupControlledUnit
in class PamControlledUnit
public void createOfflineDataMap(java.awt.Window parentFrame)
OfflineDataStore
createOfflineDataMap
in interface OfflineDataStore
public java.lang.String getDataSourceName()
OfflineDataStore
getDataSourceName
in interface OfflineDataStore
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 boolean saveData(PamDataBlock dataBlock)
OfflineDataStore
saveData
in interface OfflineDataStore
dataBlock
- datablock owner of the datapublic OfflineFileServer getOfflineFileServer()
getOfflineFileServer
in interface OfflineRawDataStore
public PamProcess getParentProcess()
getParentProcess
in interface OfflineRawDataStore
public PamRawDataBlock getRawDataBlock()
getRawDataBlock
in interface OfflineRawDataStore
public boolean rewriteIndexFile(PamDataBlock dataBlock, OfflineDataMapPoint dmp)
OfflineDataStore
rewriteIndexFile
in interface OfflineDataStore
public DatagramManager getDatagramManager()
getDatagramManager
in interface OfflineDataStore