Package qa
Class QAControl
java.lang.Object
PamController.PamControlledUnit
qa.QAControl
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
,QANotifyable
-
Field Summary
Fields inherited from interface qa.QANotifyable
OPS_STATUS_CHANGE, PAM_START, PAM_STOP, PARAMETER_CHANGE, SEQUENCE_END, SEQUENCE_START, TEST_END, TEST_SELECT_CHANGED, TEST_START
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNotifyable
(QANotifyable notifyable) Add something that can receive notifications from QA Controlvoid
Called whenever a test ends.void
checkDatabase
(ArrayList<PamDataBlock> allDetectors) Called during setup to make sure that the database tables are all in place.findCluster
(String clusterName) find a cluster from it's name.getClusterPrimaryDetector
(QACluster qaCluster) Get the primary detection data block for a cluster.double[]
getRangeLimits
(double nominalRange) Get min and max testing ranges as factors below and above nominal rangelong
Gets a reference to a small panel to be displayed along the left hand edge of the main tab panel.boolean
Quick access to an is running functionvoid
notifyModelChanged
(int changeType) General notification when the PAMGAURD model changes.void
Called for all controlled units after Pam acquisition has stoppedvoid
called just before data acquisition starts.void
Something changed inQA module ...boolean
removeNotifyable
(QANotifyable notifyable) Add something that can receive notifications from QA Controlboolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) void
setNewRangeFactor
(double newRangeFactor) Called when the range factor has been changed in the main control panel.void
Start a set of quick tests for all selected sequences.void
tellNotifyables
(int noteCode) Send out notification messages to all registered components with a null objectvoid
tellNotifyables
(int noteCode, Object noteObject) Send out notification messages to all registered componentsMethods 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, getTabClipCopier, getTabPanel, getTabSpecificMenuBar, getToolbarComponent, getUnitName, getUnitType, getVerboseLevel, gotoTab, isInMainConfiguration, isNetRx, isViewer, pamClose, 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
getUnitType
Methods inherited from interface PamController.SettingsNameProvider
getUnitName
-
Field Details
-
quickTestName
- See Also:
-
randomTestName
- See Also:
-
-
Constructor Details
-
QAControl
-
-
Method Details
-
getPositionReference
- Returns:
- the positionReference
-
notifyModelChanged
public void notifyModelChanged(int changeType) Description copied from class:PamControlledUnit
General notification when the PAMGAURD model changes.- Overrides:
notifyModelChanged
in classPamControlledUnit
- Parameters:
changeType
- type of change
-
getSettingsReference
- Specified by:
getSettingsReference
in interfacePamSettings
- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Specified by:
getSettingsVersion
in interfacePamSettings
- Returns:
- An integer version number for the settings
-
restoreSettings
- 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
-
getQaParameters
- Returns:
- the qaParameters
-
getQaGeneratorProcess
- Returns:
- the qaGeneratorProcess
-
getQaMonitorProcess
- Returns:
- the qaMonitorProcess
-
checkDatabase
Called during setup to make sure that the database tables are all in place.- Parameters:
allDetectors
-
-
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
-
pamHasStopped
public void pamHasStopped()Description copied from class:PamControlledUnit
Called for all controlled units after Pam acquisition has stopped- Overrides:
pamHasStopped
in classPamControlledUnit
-
isRunning
public boolean isRunning()Quick access to an is running function- Returns:
- true if PAMGuard is running
-
getQaAnalyser
- Returns:
- the qaAnalyser
-
getAvailableClusters
- Returns:
- the availableClusters
-
startQuickTests
public void startQuickTests()Start a set of quick tests for all selected sequences. -
getRangeLimits
public double[] getRangeLimits(double nominalRange) Get min and max testing ranges as factors below and above nominal range- Parameters:
nominalRange
- nominal range for a cluster- Returns:
- min and max ranges as 2 element array.
-
checkCurrentQuickTests
public void checkCurrentQuickTests()Called whenever a test ends. Check the quick tests and see if we want to report. -
getQaOperationsStatus
- Returns:
- the qaOperationsStatus
-
addNotifyable
Add something that can receive notifications from QA Control- Parameters:
notifyable
-
-
removeNotifyable
Add something that can receive notifications from QA Control- Parameters:
notifyable
-- Returns:
-
tellNotifyables
Send out notification messages to all registered components- Parameters:
noteCode
- notification code, will include all standard PAMController ones, use -ve numbers for module specific ones.noteObject
- Object to go with the code.
-
qaNotify
Description copied from interface:QANotifyable
Something changed inQA module ...- Specified by:
qaNotify
in interfaceQANotifyable
-
tellNotifyables
public void tellNotifyables(int noteCode) Send out notification messages to all registered components with a null object- Parameters:
noteCode
- notification code, will include all standard PAMController ones, use -ve numbers for module specific ones.
-
findCluster
find a cluster from it's name.- Parameters:
clusterName
-- Returns:
- found cluster or null.
-
getSidePanel
Description copied from class:PamControlledUnit
Gets a reference to a small panel to be displayed along the left hand edge of the main tab panel. Side panels should be small since they are always visible and any space they take will be taken from the main tab panel.It is possible for a PamControlled unit to have a side panel without having a pamTabPanel.
- Overrides:
getSidePanel
in classPamControlledUnit
- Returns:
- a pamSidePanel object.
- See Also:
-
getClusterPrimaryDetector
Get the primary detection data block for a cluster. Will try to use a user defined one, otherwise try to find a default.- Parameters:
qaCluster
- cluster- Returns:
- suitable primary datablock, or null.
-
setNewRangeFactor
public void setNewRangeFactor(double newRangeFactor) Called when the range factor has been changed in the main control panel. Need to put in params and also tell all random tests to update their range limits.- Parameters:
newRangeFactor
-
-