Package gda.scan
Class CentroidScan
java.lang.Object
gda.scan.ScanBase
gda.scan.CentroidScan
- All Implemented Interfaces:
NestableScan,Scan,ScanChild,Serializable
Wrapper for the ConcurrentScan, except it takes centroid, width, step as arguments.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class gda.scan.ScanBase
ScanBase.ParentScanComponentNested classes/interfaces inherited from interface gda.scan.Scan
Scan.ScanStatus -
Field Summary
Fields inherited from class gda.scan.ScanBase
allDetectors, allScannables, callCollectDataOnDetectors, child, command, currentPointCount, GDA_SCANBASE_FIRST_SCAN_NUMBER_FOR_TEST, GDA_SCANBASE_PRINT_TIMESTAMP_TO_TERMINAL, instrument, isChild, name, numberOfChildScans, parent, parentComponent, permissionLevel, scanDataPointPipeline, stepId, totalNumberOfPoints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThe method in which the work of the scan is performed.protected voidendScan()This should be called by all scans when they have finished, including when an exception has been raised.Returns the list of Detector objects which form part of the scan.Returns the list of all the Scannable objects which are part of this scanvoidThis should called by all scans just before they start to collect data.static voidCreates and runs a scan.Methods inherited from class gda.scan.ScanBase
callAtCommandFailureHooks, callDetectorsEndCollection, callScannablesAtScanEnd, callScannablesAtScanLineEnd, callScannablesAtScanLineStart, callScannablesAtScanStart, cancelReadoutAndPublishCompletion, checkStartStopStep, checkThreadInterrupted, collectData, createScanDataPoint, createScanDataPointPipeline, createScanDataPointPipeline, generateRandomName, getChild, getDataWriter, getDimension, getDimensions, getName, getNumberOfChildScans, getParent, getPositionCallableThreadPoolSize, getScanDataPointPipeline, getScanDataPointQueueLength, getScanInformation, getScanNumber, getScanPlotSettings, getStatus, getStepId, getStepIds, getTotalNumberOfPoints, isChild, isFinishEarlyRequested, isLineScanNeedsDoing, notifyServer, notifyServer, numberOfScannablesThatCanProvidePositionCallables, pause, prepareDevicesForCollection, prepareScanForCollection, prepareScanNumber, prepareStaticVariables, readDevicesAndPublishScanDataPoint, readoutDetectorsAndPublish, reorderScannables, representThrowable, requestFinishEarly, resume, run, runScan, scanRunning, sendScanEvent, setChild, setDataWriter, setDetectors, setIsChild, setLineScanNeedsDoing, setNumberOfChildScans, setParent, setPositionCallableThreadPoolSize, setScanDataPointPipeline, setScanDataPointQueueLength, setScanIdentifierInScanDataPoint, setScannables, setScanNumber, setScanPlotSettings, setStatus, setStepId, setUp, shutdownScandataPipeline, signalScanComplete, signalScanStarted, sortArguments, waitForDetectorReadoutAndPublishCompletion, waitIfPaused, wasScanExplicitlyHalted, wrappedException
-
Constructor Details
-
CentroidScan
Expect arguments in the format:scannbleObject1 centroid [width step] scannbleObject2 centroid [width step] scannbleObject3 centroid [width step]
If width defined, then step must be defined, else an error is thrown.
The number of steps for each scannable must be the same, or an error will be thrwon.
- Parameters:
args- Object[]- Throws:
IllegalArgumentException
-
-
Method Details
-
getDetectors
Description copied from interface:ScanReturns the list of Detector objects which form part of the scan.- Specified by:
getDetectorsin interfaceScan- Overrides:
getDetectorsin classScanBase- Returns:
- Vector of Detectors
-
getScannables
Description copied from interface:ScanReturns the list of all the Scannable objects which are part of this scan- Specified by:
getScannablesin interfaceScan- Overrides:
getScannablesin classScanBase- Returns:
- Vector of Scannables
-
runScan
Creates and runs a scan.- Parameters:
args- String[]- Throws:
InterruptedExceptionException
-
prepareForCollection
Description copied from class:ScanBaseThis should called by all scans just before they start to collect data. It resets the static variable which the scan classes use and creates a dataHandler if one has not been created yet.- Specified by:
prepareForCollectionin interfaceScan- Overrides:
prepareForCollectionin classScanBase- Throws:
Exception
-
doCollection
Description copied from interface:ScanThe method in which the work of the scan is performed. This method assumes that the data handler has already been created and the baton claimed.- Specified by:
doCollectionin interfaceScan- Specified by:
doCollectionin classScanBase- Throws:
Exception
-
endScan
Description copied from class:ScanBaseThis should be called by all scans when they have finished, including when an exception has been raised.- Overrides:
endScanin classScanBase- Throws:
DeviceExceptionInterruptedException
-