Class DeferredScannableGroup
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.ScannableBase
gda.device.scannable.scannablegroup.ScannableGroup
gda.device.scannable.scannablegroup.CoordinatedScannableGroup
gda.device.scannable.scannablegroup.DeferredScannableGroup
- All Implemented Interfaces:
Device,Scannable,IScannableGroup,Configurable,Findable,gda.observable.IObservable,gda.observable.IObserver
- Direct Known Subclasses:
DeferredAndTrajectoryScannableGroup
Controls a collection of Motors so that they moved via the Epics deferred move mechanism.
WARNING: Extending CoordinatedScannableGroup, the individual axes will be wrapped in ICoordinatedElementScannables which will hide any methods which are not in the Scannable, ScannableMotion or ScannableMotionUnits interface.
-
Field Summary
Fields inherited from class gda.device.scannable.scannablegroup.CoordinatedScannableGroup
coordinatedScannableComponentFields inherited from class gda.device.scannable.ScannableBase
__doc__, DEFAULT_INPUT_NAME, DEFAULT_OUTPUT_FORMAT, extraNames, inputNames, level, outputFormatFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidasynchronousMoveTo(Object position) asynchronousMoveTo implemented following recommendations to check whether all moves have called back.voidHook to be used by Scan and pos commands to inform the Scannable that an exception, such as a DeviceExcpetion, has occurred.voidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.voidsetDefer(boolean deferFlag) voidsetDeferredControlPoint(ControlPoint deferredControlPoint) voidsetDeferredControlPointName(String deferredControlPointName) voidstop()stop all axes and turn off defer flagMethods inherited from class gda.device.scannable.scannablegroup.CoordinatedScannableGroup
__repr__, __str__, addChildToMove, addGroupMember, addPositionValidator, atLevelMoveStart, checkAdditionalPositionValidators, checkPositionValid, getAdditionalPositionValidators, getPositionWhileMovingContinuousely, isBusy, isTargeting, setAdditionalPositionValidators, setChildTarget, setGroupMembers, wrapScannableMethods inherited from class gda.device.scannable.scannablegroup.ScannableGroup
__getattr__, addGroupMember, atLevelEnd, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, extractPositionsFromObject, getExtraNames, getGroupMember, getGroupMemberNames, getGroupMembers, getGroupMembersAsArray, getInputNames, getOutputFormat, getPosition, getUnits, isDemandAllScannablePositions, removeGroupMemberByIndex, removeGroupMemberByScannable, setDemandAllScannablePositions, setExtraNames, setGroupMembersWithArray, setGroupMembersWithList, setInputNames, toFormattedString, toString, update, waitWhileBusyMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, externalToInternal, getLevel, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, moveTo, rawAsynchronousMoveTo, rawGetPosition, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, throwExceptionIfInvalidTarget, validateScannable, valueUnavailableString, waitWhileBusyMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
atLevelEnd, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, toFormattedString, waitWhileBusy
-
Constructor Details
-
DeferredScannableGroup
public DeferredScannableGroup()
-
-
Method Details
-
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classScannableGroup- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
asynchronousMoveTo
asynchronousMoveTo implemented following recommendations to check whether all moves have called back.- Specified by:
asynchronousMoveToin interfaceScannable- Overrides:
asynchronousMoveToin classCoordinatedScannableGroup- Parameters:
position- Position to move to should have an element for each input field.- Throws:
DeviceException
-
atCommandFailure
Description copied from class:ScannableBaseHook to be used by Scan and pos commands to inform the Scannable that an exception, such as a DeviceExcpetion, has occurred. However not called when the command is aborted using an InterruptionException. If a Scan is aborted then onlyScannable.stop()will be called by the Scan or pos command.Useful for telling Scannables which hold state during a scan for example, to reset themselves. Used for example by CoordinatedMotionScannables. This hook should be used not in the same way as the stop hook. Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.
- Specified by:
atCommandFailurein interfaceScannable- Overrides:
atCommandFailurein classCoordinatedScannableGroup- Throws:
DeviceException- See Also:
-
setDefer
- Parameters:
deferFlag-- Throws:
DeviceException
-
stop
stop all axes and turn off defer flag- Specified by:
stopin interfaceScannable- Overrides:
stopin classScannableGroup- Throws:
DeviceException- See Also:
-
getDeferredControlPoint
- Returns:
- control point
-
setDeferredControlPoint
- Parameters:
deferredControlPoint-
-
getDeferredControlPointName
- Returns:
- control point name
-
setDeferredControlPointName
- Parameters:
deferredControlPointName-
-