Package gda.device.currentamplifier
Class DummyEpicsCurrAmpSingle
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.ScannableBase
gda.device.currentamplifier.CurrentAmplifierBase
gda.device.currentamplifier.DummyEpicsCurrAmpSingle
- All Implemented Interfaces:
CurrentAmplifier,Device,Scannable,Configurable,Findable,gda.observable.IObservable
simulation for a single Channel Current Amplifier device, provide controls for gain and mode, and reading for current value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface gda.device.CurrentAmplifier
CurrentAmplifier.Status -
Field Summary
Fields 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 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.doublereturns the current valuegetGain()returns the current gain positionString[]Returns an array of all possible gain positions which this device can be moved to.returns the current gain unitgetMode()gets the amplifier's mode of operationReturns the overload statusvoidreturns a parsed list of gains available for this amplifier.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 operationReturns a string representation of the Scannable and its current position/value/statusMethods inherited from class gda.device.currentamplifier.CurrentAmplifierBase
asynchronousMoveTo, checkPositionValid, getGainUnits, getModePositions, getPosition, isBusyMethods 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, rawAsynchronousMoveTo, rawGetPosition, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, 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
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, stop, waitWhileBusy
-
Constructor Details
-
DummyEpicsCurrAmpSingle
public DummyEpicsCurrAmpSingle()Constructor
-
-
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 classConfigurableBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
getGainPositions
Description copied from interface:CurrentAmplifierReturns an array of all possible gain positions which this device can be moved to.- Specified by:
getGainPositionsin interfaceCurrentAmplifier- Overrides:
getGainPositionsin classCurrentAmplifierBase- Returns:
- an array of gain positions
- Throws:
DeviceException
-
listGains
returns a parsed list of gains available for this amplifier.- Throws:
DeviceException
-
getStatus
Description copied from interface:CurrentAmplifierReturns the overload status- Returns:
- the status
- Throws:
DeviceException
-
setGain
Description copied from interface:CurrentAmplifierMoves amplifier's gain to the named position.- Parameters:
position-- Throws:
DeviceException
-
getGain
Description copied from interface:CurrentAmplifierreturns the current gain position- Returns:
- gain position
-
getCurrent
public double getCurrent()Description copied from interface:CurrentAmplifierreturns the current value- Returns:
- current
-
getMode
Description copied from interface:CurrentAmplifiergets the amplifier's mode of operation- Returns:
- mode
-
setMode
Description copied from interface:CurrentAmplifiersets the amplifier's mode of operation- Parameters:
mode-- 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 classScannableBase- Returns:
- string as defined above
-
getGainUnit
Description copied from interface:CurrentAmplifierreturns the current gain unit- Returns:
- gain unit
-
setGainUnit
Description copied from interface:CurrentAmplifierMoves amplifier's gain unit to the named unit.- Parameters:
unit-- Throws:
DeviceException
-