Package uk.ac.diamond.daq.scanning
Class JythonScannableNexusWrapper<N extends NXobject>
java.lang.Object
org.eclipse.scanning.api.AbstractNameable
org.eclipse.scanning.api.AbstractNameableTimeoutable
org.eclipse.scanning.api.AbstractScannable<Object>
uk.ac.diamond.daq.scanning.ScannableNexusWrapper<N>
uk.ac.diamond.daq.scanning.JythonScannableNexusWrapper<N>
- All Implemented Interfaces:
INexusDevice<N>,IActivatable,IBoundable<Object>,ILevel,INameable,IScanAttributeContainer,IScannable<Object>,ITimeoutable,ITolerable<Object>,IPositionListenable
-
Field Summary
Fields inherited from class org.eclipse.scanning.api.AbstractScannable
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Jython scannable for the name set in this wrappervoidJython scannables cannot be renamed, as we cannot update the name in the jython namespacevoidsetScannable(Scannable scannable) Overriden to throwUnsupportedOperationException.voidsetScannableName(String scannableName) Set the scannable name to that given.toString()Methods inherited from class uk.ac.diamond.daq.scanning.ScannableNexusWrapper
abort, addPositionListener, canReadPosition, getCustomNexusModification, getLevel, getMaximum, getMinimum, getName, getNexusProvider, getNexusProviders, getPermittedValues, getPosition, getUnit, removePositionListener, scanFinally, setLevel, setPosition, setPosition, updateMethods inherited from class org.eclipse.scanning.api.AbstractScannable
getDeviceInformation, getModel, getScanAttribute, getScanAttributeNames, getTolerance, isActivated, register, setActivated, setMaximum, setMinimum, setModel, setPublisher, setScanAttribute, setToleranceMethods inherited from class org.eclipse.scanning.api.AbstractNameableTimeoutable
equals, getTimeout, hashCode, setTimeoutMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.dawnsci.nexus.INexusDevice
registerMethods inherited from interface org.eclipse.scanning.api.scan.event.IPositionListenable
getPositioner, setPositionerMethods inherited from interface org.eclipse.scanning.api.ITimeoutable
getTimeout, setTimeout
-
Constructor Details
-
JythonScannableNexusWrapper
-
-
Method Details
-
setScannableName
Set the scannable name to that given. This should only be used to set up theJythonScannableNexusWrapper, e.g. from Spring.- Parameters:
scannableName-
-
getScannable
Returns the Jython scannable for the name set in this wrapper- Overrides:
getScannablein classScannableNexusWrapper<N extends NXobject>- Throws:
NullPointerException- if no such scannable exists
-
setScannable
Overriden to throwUnsupportedOperationException. As aJythonScannableNexusWrappergets the scannable with a given name each time it is required, usesetScannableName(String)instead.- Overrides:
setScannablein classScannableNexusWrapper<N extends NXobject>- Parameters:
scannable-- Throws:
UnsupportedOperationException- always
-
setName
Jython scannables cannot be renamed, as we cannot update the name in the jython namespace -
toString
- Overrides:
toStringin classScannableNexusWrapper<N extends NXobject>
-