Package gda.device.enumpositioner
Class NameMappedEpicsPneumaticCallback
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.ScannableBase
gda.device.enumpositioner.EnumPositionerBase
gda.device.enumpositioner.EpicsPneumaticCallback
gda.device.enumpositioner.NameMappedEpicsPneumaticCallback
- All Implemented Interfaces:
ControllerRecord,Device,EnumPositioner,Scannable,InitializationListener,Configurable,Findable,gda.observable.IObservable
Version of EpicsPneumaticCallback in which the EPICS names are mapped to different names at the GDA level.
For situations where 'Open' and 'Close' are 'too confusing'...
- See Also:
-
Field Summary
Fields inherited from class gda.device.enumpositioner.EpicsPneumaticCallback
statuspositions, statusPvIndicatesPositionOnlyFields 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 TypeMethodDescriptioncheckPositionValid(Object position) This default behaviour should be extended by most subclasses! This default behaviour should be extended by most subclasses! Tests if the given object is meaningful to this Scannable and so could be used by one of the move commands.gets the current status position of this device.String[]gets the available positions from this device.voidrawAsynchronousMoveTo(Object position) [Consider abstract] Trigger a move/operation to an internal/hardware position and return immediately.voidsetControlValues(Map<String, String> values) Mapinvalid input: '<'String, String> - means invalid input: '<'GDA name, EPICS name>voidsetStatusValues(Map<String, String> statusValues) Returns a string representation of the Scannable and its current position/value/statusMethods inherited from class gda.device.enumpositioner.EpicsPneumaticCallback
configure, getControllerRecordName, getControlPv, getPvBase, getStatusPositions, getStatusPv, initializationCompleted, isAllPVsSet, isReadOnly, isStatusPvIndicatesPositionOnly, setAllPVsSet, setControlPv, setPvBase, setReadOnly, setStatusPv, setStatusPvIndicatesPositionOnly, stopMethods inherited from class gda.device.enumpositioner.EnumPositionerBase
addPosition, addPositions, clearPositions, containsPosition, createFormattedListAcceptablePositions, getNumberOfPositions, getPosition, getPositionerStatus, getPositionIndex, getPositionsList, getStatus, isBusy, isInPos, setPositionerStatus, setPositionsInternalMethods 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, moveTo, 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.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
asynchronousMoveTo, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, getExtraNames, getInputNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, waitWhileBusy
-
Constructor Details
-
NameMappedEpicsPneumaticCallback
public NameMappedEpicsPneumaticCallback()
-
-
Method Details
-
getControlValues
- Returns:
- Returns the values.
-
setControlValues
Mapinvalid input: '<'String, String> - means invalid input: '<'GDA name, EPICS name>- Parameters:
values- The values to set.
-
getStatusValues
-
setStatusValues
-
getPositions
Description copied from class:EpicsPneumaticCallbackgets the available positions from this device.- Specified by:
getPositionsin interfaceEnumPositioner- Overrides:
getPositionsin classEpicsPneumaticCallback- Returns:
- the available positions from this device.
- Throws:
DeviceException
-
toFormattedString
Description copied from interface:ScannableReturns a string representation of the Scannable and its current position/value/statusTypically should return:
name : position
or for detectors, name : status
If the position/status cannot be determined, the function should return
Scannable.VALUE_UNAVAILABLEin its place.- Specified by:
toFormattedStringin interfaceScannable- Overrides:
toFormattedStringin classEnumPositionerBase- Returns:
- string as defined above
-
getPosition
Description copied from class:EpicsPneumaticCallbackgets the current status position of this device.- Specified by:
getPositionin interfaceScannable- Overrides:
getPositionin classEpicsPneumaticCallback- Returns:
- position in String
- Throws:
DeviceException
-
rawAsynchronousMoveTo
Description copied from class:ScannableBase[Consider abstract] Trigger a move/operation to an internal/hardware position and return immediately.- Overrides:
rawAsynchronousMoveToin classEpicsPneumaticCallback- Parameters:
position- Position in its internal/hardware representation. e.g. with units and offsets removed- Throws:
DeviceException- See Also:
-
checkPositionValid
Description copied from class:ScannableBaseThis default behaviour should be extended by most subclasses! Tests if the given object is meaningful to this Scannable and so could be used by one of the move commands. May check limits and other things too. This is the method called by scans on all points before the scan is run.- Specified by:
checkPositionValidin interfaceScannable- Overrides:
checkPositionValidin classEnumPositionerBase- Parameters:
position-- Returns:
- null if position is valid, or returns a description if not.
- See Also:
-