Package gda.px
Class PersistentAperturePositioner
- All Implemented Interfaces:
Device,EditableEnumPositioner,EnumPositioner,Scannable,Configurable,Findable,gda.observable.IObservable,AperturePositioner
@ServiceInterface(AperturePositioner.class)
public class PersistentAperturePositioner
extends DummyEnumPositioner
implements AperturePositioner
Positioner whose positions correspond to the codes of each available
aperture.
The positioner's positions are the codes of the available apertures.
moveTo(Object) must be called with an aperture's code, and
DummyEnumPositioner.getPosition() returns an aperture code.
If the positioner's position is changed, an ApertureChangedEvent
is sent as an event to observers.
-
Field Summary
Fields 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 TypeMethodDescriptionvoidDefault 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.Gets the currently selected aperture's code.voidTrigger a move/operation and block until completion.voidsetApertureCode(String code) Sets the currently selected aperture.voidsetPositions(String[] positions) Sets the positions of this positioner.Methods inherited from class gda.device.enumpositioner.DummyEnumPositioner
addPosition, getPosition, getStatus, getTimeToMove, isInPos, isPosChangeEventFlag, rawAsynchronousMoveTo, setPosChangeEventFlag, setPosition, setTimeToMove, stopMethods inherited from class gda.device.enumpositioner.EditableEnumPositionerBase
setPositionsMethods inherited from class gda.device.enumpositioner.EnumPositionerBase
addPositions, checkPositionValid, clearPositions, containsPosition, createFormattedListAcceptablePositions, getNumberOfPositions, getPosition, getPositionerStatus, getPositionIndex, getPositions, getPositionsList, isBusy, setPositionerStatus, setPositionsInternal, toFormattedStringMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, asynchronousMoveTo, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, externalToInternal, getExtraNames, getInputNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, rawGetPosition, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, throwExceptionIfInvalidTarget, toString, validateScannable, valueUnavailableString, waitWhileBusy, 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.device.EnumPositioner
getPositions, getPositionsList, getStatus, isInPosMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
asynchronousMoveTo, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, checkPositionValid, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, isBusy, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, toFormattedString, waitWhileBusy
-
Constructor Details
-
PersistentAperturePositioner
public PersistentAperturePositioner()
-
-
Method Details
-
setPositions
Description copied from interface:EditableEnumPositionerSets the positions of this positioner.- Specified by:
setPositionsin interfaceEditableEnumPositioner- Overrides:
setPositionsin classEditableEnumPositionerBase- Parameters:
positions- the positions
-
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 classDummyEnumPositioner- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
moveTo
Description copied from class:ScannableBaseTrigger a move/operation and block until completion. If this is overridden, asynchronousMoveTo must also be valid, and the externalToInternal conversion must be applied.- Specified by:
moveToin interfaceScannable- Overrides:
moveToin classDummyEnumPositioner- Parameters:
position-- Throws:
DeviceException
-
setApertureCode
Description copied from interface:AperturePositionerSets the currently selected aperture.- Specified by:
setApertureCodein interfaceAperturePositioner
-
getApertureCode
Description copied from interface:AperturePositionerGets the currently selected aperture's code.- Specified by:
getApertureCodein interfaceAperturePositioner
-