Package gda.device
Interface DetectorSnapper
- All Known Implementing Classes:
AndorZylaDetector,Cam4Detector,IPPserver,MirrorCommissioningDetector,NXDetectorSnapper,NXDetectorSnappingDecorator
public interface DetectorSnapper
An interface to control detectors from outside a scan. The file template used to determine the path for detector
files is determined by the implementation. AreaDetector's NDFilePlugin
(http://cars.uchicago.edu/software/epics/NDPluginFile.html) will always apply arguments to the template in the order
filepath, filename, filenumber. Here the filepath and filename are configurable, and the filenumber is determined by
the implementation.
-
Method Summary
Modifier and TypeMethodDescriptionString[]acquire()Trigger an acquisition and block until complete.doubleReturn the acquisition period resulting from the last configured collection time.doubleReturn the acquisition time resulting from the last configured collection time.voidprepareForAcquisition(double collectionTime) Sets the collection time for the next collection (implicitly a single image collection).
-
Method Details
-
prepareForAcquisition
Sets the collection time for the next collection (implicitly a single image collection).- Parameters:
collectionTime-- Throws:
Exception
-
getAcquireTime
Return the acquisition time resulting from the last configured collection time. This will depend on the collection strategy.- Returns:
- acquisition time in seconds
- Throws:
Exception
-
getAcquirePeriod
Return the acquisition period resulting from the last configured collection time. This will depend on the collection strategy.- Returns:
- acquisition time in seconds
- Throws:
Exception
-
acquire
Trigger an acquisition and block until complete.- Returns:
- list of all resulting files.
- Throws:
InterruptedExceptionIllegalStateException- if the detector was already acquiringException
-