Package qa
Class QAControl
java.lang.Object
PamController.PamControlledUnit
qa.QAControl
- All Implemented Interfaces:
 PamSettings,SettingsNameProvider,QANotifyable
- 
Field Summary
FieldsFields inherited from class PamController.PamControlledUnit
isMixed, isViewerFields 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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotifyable(QANotifyable notifyable) Add something that can receive notifications from QA ControlvoidCalled whenever a test ends.voidcheckDatabase(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 rangelongGets a reference to a small panel to be displayed along the left hand edge of the main tab panel.booleanQuick access to an is running functionvoidnotifyModelChanged(int changeType) General notification when the PAMGAURD model changes.voidCalled for all controlled units after Pam acquisition has stoppedvoidcalled just before data acquisition starts.voidSomething changed inQA module ...booleanremoveNotifyable(QANotifyable notifyable) Add something that can receive notifications from QA ControlbooleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) voidsetNewRangeFactor(double newRangeFactor) Called when the range factor has been changed in the main control panel.voidStart a set of quick tests for all selected sequences.voidtellNotifyables(int noteCode) Send out notification messages to all registered components with a null objectvoidtellNotifyables(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, getUnitTaskManager, getUnitTaskManager, getUnitType, getVerboseLevel, gotoTab, isInMainConfiguration, isNetRx, isViewer, pamClose, 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
getUnitTypeMethods 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:PamControlledUnitGeneral notification when the PAMGAURD model changes.- Overrides:
 notifyModelChangedin classPamControlledUnit- Parameters:
 changeType- type of change
 - 
getSettingsReference
- Specified by:
 getSettingsReferencein interfacePamSettings- Returns:
 - The serialisable object that will be stored
 
 - 
getSettingsVersion
public long getSettingsVersion()- Specified by:
 getSettingsVersionin interfacePamSettings- Returns:
 - An integer version number for the settings
 
 - 
restoreSettings
- Specified by:
 restoreSettingsin interfacePamSettings- Parameters:
 pamControlledUnitSettings-- 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: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
 - 
pamHasStopped
public void pamHasStopped()Description copied from class:PamControlledUnitCalled for all controlled units after Pam acquisition has stopped- Overrides:
 pamHasStoppedin 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:QANotifyableSomething changed inQA module ...- Specified by:
 qaNotifyin interfaceQANotifyable- Parameters:
 noteCode-noteObject-
 - 
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:PamControlledUnitGets 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:
 getSidePanelin 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-
 
 -