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
 
- 
Field Summary
Fields inherited from class PamController.PamControlledUnit
isMixed, isViewer - 
Constructor Summary
ConstructorsConstructorDescriptionIshDetControl(String controlName, String unitName, IshDetParams ishDetParams) Initializer. - 
Method Summary
Modifier and TypeMethodDescriptioncreateDetectionMenu(Frame parentFrame, String menuString) intGet a bitmap of the active channelsabstract PamDataBlockReturn 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 IshDetFnProcessgetNewDetProcess(PamDataBlock defaultDataBlock) Create a new IshDetProcess of the appropriate type and return it.abstract PamRawDataBlockprotected voidinstallNewParams(Frame parentFrame, IshDetParams newParams) booleanisChanActive(int channelMap) Check whether a data unit should be analysed for peak and saved depending on grouped detectionvoidcalled just before data acquisition starts.voidbooleanThis is called after a settings file is read.abstract voidshowParamsDialog1(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, getUnitTaskManager, getUnitTaskManager, getUnitType, getVerboseLevel, gotoTab, isInMainConfiguration, isNetRx, isViewer, notifyModelChanged, pamClose, pamHasStopped, playViewerSound, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setModuleStatusManager, setPamConfiguration, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setToolbarComponent, setUnitTaskManager, setupControlledUnit, stopViewerSound, tellModule, terminalPrint, terminalPrintln, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface PamController.PamSettings
getSettingsReference, getSettingsVersion, getUnitTypeMethods 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:
 restoreSettingsin interfacePamSettings- Parameters:
 dummy-- 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
 
 - 
installNewParams
 - 
pamToStart
public void pamToStart()Description copied from class:PamControlledUnitcalled 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:
 pamToStartin 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.
 
 
 -