Class NullNXPlugin
java.lang.Object
gda.device.detector.nxdetector.plugin.NullNXPlugin
- All Implemented Interfaces:
NXPlugin,NXPluginBase,PositionInputStream<NXDetectorDataAppender>
- Direct Known Subclasses:
ADNDAttributesPlugin,ADPilatusFreerunControllerPlugin,ADRectangularROIPlugin,ADRoiCountsI0,FlatAndDarkFieldPlugin,MerlinThresholdSweepConfigurer,NXForceCallbacks,PVArrayPlugin,XBufferPlugin,XmapReadbackHdf5NXPlugin
A null NXPlugin implementation. It can be used but will do nothing. Useful as a base class, but
best used only if not overriding the bulk of these methods anyway.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidgetName()voidprepareForCollection(int numberImagesPerCollection, ScanInformation scanInfo) voidread(int maxToRead) Return at least one element, but no more than maxToRead, waiting until able to do so.voidvoidstop()boolean
-
Constructor Details
-
NullNXPlugin
public NullNXPlugin()
-
-
Method Details
-
setName
-
getName
- Specified by:
getNamein interfaceNXPluginBase
-
willRequireCallbacks
public boolean willRequireCallbacks()- Specified by:
willRequireCallbacksin interfaceNXPluginBase
-
prepareForCollection
public void prepareForCollection(int numberImagesPerCollection, ScanInformation scanInfo) throws Exception - Specified by:
prepareForCollectionin interfaceNXPluginBase- Throws:
Exception
-
prepareForLine
- Specified by:
prepareForLinein interfaceNXPluginBase- Throws:
Exception
-
completeLine
- Specified by:
completeLinein interfaceNXPluginBase- Throws:
Exception
-
completeCollection
- Specified by:
completeCollectionin interfaceNXPluginBase- Throws:
Exception
-
atCommandFailure
- Specified by:
atCommandFailurein interfaceNXPluginBase- Throws:
Exception
-
stop
- Specified by:
stopin interfaceNXPluginBase- Throws:
Exception
-
getInputStreamNames
- Specified by:
getInputStreamNamesin interfaceNXPluginBase
-
getInputStreamFormats
- Specified by:
getInputStreamFormatsin interfaceNXPluginBase
-
read
public List<NXDetectorDataAppender> read(int maxToRead) throws NoSuchElementException, InterruptedException, DeviceException Description copied from interface:PositionInputStreamReturn at least one element, but no more than maxToRead, waiting until able to do so. The parameter maxToRead is there to protect the caller from potentially receiving too much data in call, not to meet the needs of the detector.- Specified by:
readin interfacePositionInputStream<NXDetectorDataAppender>- Parameters:
maxToRead- the maximum number of elements to read. Must be one or more.- Returns:
- at least one element from the head of the stream, oldest on the left
- Throws:
NoSuchElementException- if the stream will have nothing to returnInterruptedExceptionDeviceException
-