Package gda.device.scannable
Class RestrictedScannableManager.RestrictedScannable
java.lang.Object
gda.device.scannable.PassthroughScannableDecorator
gda.device.scannable.RestrictedScannableManager.RestrictedScannable
- All Implemented Interfaces:
Device,Scannable,Configurable,Findable,gda.observable.IObservable
- Enclosing class:
RestrictedScannableManager
public final class RestrictedScannableManager.RestrictedScannable
extends PassthroughScannableDecorator
-
Field Summary
Fields inherited from class gda.device.scannable.PassthroughScannableDecorator
delegateFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLE -
Method Summary
Modifier and TypeMethodDescription__call__()org.python.core.PyObject__call__(org.python.core.PyObject position) voidasynchronousMoveTo(Object position) Trigger a move/operation and return immediately.booleanisBusy()Check if the Scannable is moving/operating.voidTrigger a move/operation and block until completion.toString()voidReturns when operation carried out by moveTo has completedMethods inherited from class gda.device.scannable.PassthroughScannableDecorator
addIObserver, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, checkPositionValid, close, configure, deleteIObserver, deleteIObservers, getAttribute, getDelegate, getExtraNames, getInputNames, getLevel, getName, getOutputFormat, getPosition, getProtectionLevel, isAt, isConfigureAtStartup, isConfigured, reconfigure, setAttribute, setExtraNames, setInputNames, setLevel, setName, setOutputFormat, setProtectionLevel, stop, toFormattedStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.device.Scannable
getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, setScanMetadataAttribute, setScanMetadataAttributes
-
Method Details
-
moveTo
Description copied from interface:ScannableTrigger a move/operation and block until completion.- Specified by:
moveToin interfaceScannable- Overrides:
moveToin classPassthroughScannableDecorator- Parameters:
position-- Throws:
DeviceException
-
asynchronousMoveTo
Description copied from interface:ScannableTrigger a move/operation and return immediately. Implementations of this method should be non-blocking to allow concurrent motion; the isBusy method will be used to determine when the move has completed.- Specified by:
asynchronousMoveToin interfaceScannable- Overrides:
asynchronousMoveToin classPassthroughScannableDecorator- Parameters:
position- Position to move to should have an element for each input field.- Throws:
DeviceException
-
waitWhileBusy
Description copied from interface:ScannableReturns when operation carried out by moveTo has completed- Specified by:
waitWhileBusyin interfaceScannable- Overrides:
waitWhileBusyin classPassthroughScannableDecorator- Throws:
DeviceExceptionInterruptedException
-
toString
- Overrides:
toStringin classPassthroughScannableDecorator
-
isBusy
Description copied from interface:ScannableCheck if the Scannable is moving/operating.- Specified by:
isBusyin interfaceScannable- Overrides:
isBusyin classPassthroughScannableDecorator- Returns:
- true - if operation carried out by moveTo has not completed yet
- Throws:
DeviceException
-
__call__
- Throws:
DeviceException
-
__call__
- Throws:
DeviceException
-