Package gda.device.currentamplifier
Class StanfordScannable
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.ScannableBase
gda.device.currentamplifier.CurrentAmplifierBase
gda.device.currentamplifier.StanfordScannable
- All Implemented Interfaces:
CurrentAmplifier,StanfordAmplifier,Device,Scannable,Configurable,Findable,gda.observable.IObservable
@ServiceInterface(StanfordAmplifier.class)
public class StanfordScannable
extends CurrentAmplifierBase
implements StanfordAmplifier
Scannable to drive Stanford current amplifier, originally written for B18 and
moved from a B18 specific plugin to uk.ac.gda.epics.
To facilitate exporting from server to client over RMI, it has been modified to implement the
StanfordAmplifier interface and to extend CurrentAmplifierBase.
See also DummyStanfordScannable
- Since:
- 12/10/2016
-
Nested Class Summary
Nested classes/interfaces inherited from interface gda.device.CurrentAmplifier
CurrentAmplifier.Status -
Field Summary
FieldsFields inherited from class gda.device.currentamplifier.CurrentAmplifierBase
gainPositions, gainUnits, modePositionsFields 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 TypeMethodDescriptionString[]doublereturns the current valuegetGain()returns the current gain positionreturns the current gain unitString[]Returns an array of all possible gain units which this device can be moved to.getMode()gets the amplifier's mode of operationintintString[]Returns the current position of the Scannable.intintReturns the overload statusbooleanisBusy()Check if the Scannable is moving/operating.booleanvoidreturns a parsed list of gains available for this amplifier.voidrawAsynchronousMoveTo(Object position) [Consider abstract] Trigger a move/operation to an internal/hardware position and return immediately.[Consider abstract] Read the position in its internal (user) representation.voidsetBase_pv(String basePv) voidMoves amplifier's gain to the named position.voidsetGainUnit(String unit) Moves amplifier's gain unit to the named unit.voidsets the amplifier's mode of operationvoidsetOffset(int offset) voidsetOffsetCurrentOn(boolean switchOn) voidsetOffsetUnit(int unit) voidsetSensitivity(int sensitivityValue) voidsetSensitivityUnit(int unit) Methods inherited from class gda.device.currentamplifier.CurrentAmplifierBase
asynchronousMoveTo, checkPositionValid, getGainPositions, getModePositionsMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, externalToInternal, getExtraNames, getInputNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, throwExceptionIfInvalidTarget, toFormattedString, 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
configure, 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
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.CurrentAmplifier
getGainPositions, getModePositionsMethods 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, checkPositionValid, getExtraNames, getInputNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, toFormattedString, waitWhileBusy
-
Field Details
-
currentOffsetUnits
-
-
Constructor Details
-
StanfordScannable
public StanfordScannable()
-
-
Method Details
-
rawAsynchronousMoveTo
Description copied from class:ScannableBase[Consider abstract] Trigger a move/operation to an internal/hardware position and return immediately.- Overrides:
rawAsynchronousMoveToin classScannableBase- Parameters:
position- Position in its internal/hardware representation. e.g. with units and offsets removed- Throws:
DeviceException- See Also:
-
rawGetPosition
Description copied from class:ScannableBase[Consider abstract] Read the position in its internal (user) representation.- Overrides:
rawGetPositionin classScannableBase- Returns:
- the value represented by this Scannable
- Throws:
DeviceException- See Also:
-
getPosition
Description copied from class:ScannableBaseReturns the current position of the Scannable. Called by ConcurentScan at the end of the point. Reads an internal (hardware) position from rawGetPosition, converts this to an external (user) position and returns it.- Specified by:
getPositionin interfaceScannable- Overrides:
getPositionin classCurrentAmplifierBase- Returns:
- Current position with an element for each input and extra field. null if their are no fields.
- Throws:
DeviceException
-
setSensitivity
- Specified by:
setSensitivityin interfaceStanfordAmplifier- Throws:
DeviceException
-
getSensitivity
- Specified by:
getSensitivityin interfaceStanfordAmplifier- Throws:
DeviceException
-
setSensitivityUnit
- Specified by:
setSensitivityUnitin interfaceStanfordAmplifier- Throws:
DeviceException
-
getSensitivityUnit
- Specified by:
getSensitivityUnitin interfaceStanfordAmplifier- Throws:
DeviceException
-
setOffsetCurrentOn
- Specified by:
setOffsetCurrentOnin interfaceStanfordAmplifier- Throws:
DeviceException
-
isOffsetCurrentOn
- Specified by:
isOffsetCurrentOnin interfaceStanfordAmplifier- Throws:
DeviceException
-
setOffset
- Specified by:
setOffsetin interfaceStanfordAmplifier- Throws:
DeviceException
-
getOffset
- Specified by:
getOffsetin interfaceStanfordAmplifier- Throws:
DeviceException
-
setOffsetUnit
- Specified by:
setOffsetUnitin interfaceStanfordAmplifier- Throws:
DeviceException
-
getOffsetUnit
- Specified by:
getOffsetUnitin interfaceStanfordAmplifier- Throws:
DeviceException
-
getOffsetUnits
- Specified by:
getOffsetUnitsin interfaceStanfordAmplifier
-
getAllowedPositions
- Specified by:
getAllowedPositionsin interfaceStanfordAmplifier
-
getGainUnits
Description copied from interface:CurrentAmplifierReturns an array of all possible gain units which this device can be moved to.- Specified by:
getGainUnitsin interfaceCurrentAmplifier- Specified by:
getGainUnitsin interfaceStanfordAmplifier- Overrides:
getGainUnitsin classCurrentAmplifierBase- Returns:
- an array of gain units
-
isBusy
public boolean isBusy()Description copied from interface:ScannableCheck if the Scannable is moving/operating.- Specified by:
isBusyin interfaceScannable- Overrides:
isBusyin classCurrentAmplifierBase- Returns:
- true - if operation carried out by moveTo has not completed yet
-
setBase_pv
-
listGains
Description copied from interface:CurrentAmplifierreturns a parsed list of gains available for this amplifier.- Specified by:
listGainsin interfaceCurrentAmplifier- Throws:
DeviceException
-
getCurrent
Description copied from interface:CurrentAmplifierreturns the current value- Specified by:
getCurrentin interfaceCurrentAmplifier- Returns:
- current
- Throws:
DeviceException
-
setGain
Description copied from interface:CurrentAmplifierMoves amplifier's gain to the named position.- Specified by:
setGainin interfaceCurrentAmplifier- Parameters:
position-- Throws:
DeviceException
-
getGain
Description copied from interface:CurrentAmplifierreturns the current gain position- Specified by:
getGainin interfaceCurrentAmplifier- Returns:
- gain position
- Throws:
DeviceException
-
setGainUnit
Description copied from interface:CurrentAmplifierMoves amplifier's gain unit to the named unit.- Specified by:
setGainUnitin interfaceCurrentAmplifier- Parameters:
unit-- Throws:
DeviceException
-
getGainUnit
Description copied from interface:CurrentAmplifierreturns the current gain unit- Specified by:
getGainUnitin interfaceCurrentAmplifier- Returns:
- gain unit
- Throws:
DeviceException
-
setMode
Description copied from interface:CurrentAmplifiersets the amplifier's mode of operation- Specified by:
setModein interfaceCurrentAmplifier- Parameters:
mode-- Throws:
DeviceException
-
getMode
Description copied from interface:CurrentAmplifiergets the amplifier's mode of operation- Specified by:
getModein interfaceCurrentAmplifier- Returns:
- mode
- Throws:
DeviceException
-
getStatus
Description copied from interface:CurrentAmplifierReturns the overload status- Specified by:
getStatusin interfaceCurrentAmplifier- Returns:
- the status
- Throws:
DeviceException
-