Package IshmaelDetector
Class IshDetControl
java.lang.Object
PamController.PamControlledUnit
IshmaelDetector.IshDetControl
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
- Direct Known Subclasses:
EnergySumControl
,MatchFiltControl
,SgramCorrControl
Control for the Ishmael Detector modules.
- Author:
- Hisham Qayum and Dave Mellinger
-
Constructor Summary
ConstructorDescriptionIshDetControl
(String controlName, String unitName, IshDetParams ishDetParams) Initializer. -
Method Summary
Modifier and TypeMethodDescriptioncreateDetectionMenu
(Frame parentFrame, String menuString) int
Get a bitmap of the active channelsabstract PamDataBlock
Return any old data block of the right type so that the detection process's input can get hooked up to something from the get-go.Get the Ishmael Fn process - this creates the detector output but does not perform the binary classification.Get the Ishmael peak process.abstract IshDetFnProcess
getNewDetProcess
(PamDataBlock defaultDataBlock) Create a new IshDetProcess of the appropriate type and return it.abstract PamRawDataBlock
boolean
isChanActive
(int channelMap) Check whether a data unit should be analysed for peak and saved depending on grouped detectionvoid
called just before data acquisition starts.void
boolean
This is called after a settings file is read.abstract void
showParamsDialog1
(Frame parentFrame) Methods inherited from class PamController.PamControlledUnit
addOfflineTaskGroup, addOtherRelatedMenuItems, addPamProcess, addPamProcess, addRelatedMenuItems, canClose, canPlayViewerSound, createDetectionMenu, 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, getUnitType, getVerboseLevel, gotoTab, isInMainConfiguration, isNetRx, isViewer, notifyModelChanged, pamClose, pamHasStopped, playViewerSound, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setModuleStatusManager, setPamConfiguration, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setToolbarComponent, setupControlledUnit, stopViewerSound, tellModule, terminalPrint, terminalPrintln, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface PamController.PamSettings
getSettingsReference, getSettingsVersion, getUnitType
Methods inherited from interface PamController.SettingsNameProvider
getUnitName
-
Constructor Details
-
IshDetControl
Initializer.IMPORTANT: The subclass initializer should construct the ishDetParams to pass here. See EnergySumControl for an example.
-
-
Method Details
-
getIshDetFnProcess
Get the Ishmael Fn process - this creates the detector output but does not perform the binary classification. -
getDefaultInputDataBlock
Return any old data block of the right type so that the detection process's input can get hooked up to something from the get-go. The input is typically re-hooked when the settings file is read.- Returns:
- PamDataBlock
-
getNewDetProcess
Create a new IshDetProcess of the appropriate type and return it. For example, EnergySumControl returns an EnergySumProcess. -
getRawInputDataBlock
-
prepareNonDetProcesses
public void prepareNonDetProcesses() -
createDetectionMenu
-
showParamsDialog1
-
restoreSettings
This is called after a settings file is read. The subclass should get newParams and clone it as ishDetParams before calling here.- Specified by:
restoreSettings
in interfacePamSettings
- Returns:
- true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
-
pamToStart
public void pamToStart()Description copied from class:PamControlledUnit
called just before data acquisition starts. Note that PamObservers get a call to setSampleRate anyway so this mainly needs to be used for display elements that may need their scales adjusted before startup.- Overrides:
pamToStart
in classPamControlledUnit
-
getOutputDataBlock
-
getIshDetectionParams
-
getActiveChannels
public int getActiveChannels()Get a bitmap of the active channelsIf the channel is selected and there is no grouping then channel data unit is analysed. If there are groups then the only the first channel in the group is analysed.
- Returns:
- bitmap of active channels
-
isChanActive
public boolean isChanActive(int channelMap) Check whether a data unit should be analysed for peak and saved depending on grouped detectionIf the channel is selected and there is no grouping then channel data unit is analysed. If there are groups then the only the first channel in the group is analysed.
- Parameters:
ishFnDataUnit
- - the Ishamel raw data unit.- Returns:
-
getIshPeakProcess
Get the Ishmael peak process. The peak process selects handles binary classification of the detector output.- Returns:
- the Ishamel peak process.
-