Package gda.device.currentamplifier
Class EpicsCurrAmpSingle
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.ScannableBase
gda.device.currentamplifier.CurrentAmplifierBase
gda.device.currentamplifier.EpicsCurrAmpSingle
- All Implemented Interfaces:
CurrentAmplifier,Device,Scannable,InitializationListener,Configurable,Findable,gda.observable.IObservable
EPICS template interface class for Single Channel Current Amplifier device.
-
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 TypeMethodDescriptionvoidConfigures the class with the PV information from the gda-interface.xml file.voidvoiddoublereturns 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 operationString[]Returns an array of all possible mode positions which this device can be set to.Returns the overload statusvoidCalled when all critical channels are connected.booleanbooleanbooleanisPoll()voidreturns a parsed list of gains available for this amplifier.voidsetAcdcAvailable(boolean acdcAvailable) voidsetEnableValueMonitoring(boolean enableValueMonitoring) 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 operationvoidsetPoll(boolean poll) voidReturns a string representation of the Scannable and its current position/value/statusMethods inherited from class gda.device.currentamplifier.CurrentAmplifierBase
asynchronousMoveTo, checkPositionValid, getGainUnits, 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
-
EpicsCurrAmpSingle
public EpicsCurrAmpSingle()Constructor
-
-
Method Details
-
configure
Configures the class with the PV information from the gda-interface.xml file. Vendor and model are available through EPICS but are currently not supported in GDA.- 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- See Also:
-
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
-
getModePositions
Description copied from interface:CurrentAmplifierReturns an array of all possible mode positions which this device can be set to.- Specified by:
getModePositionsin interfaceCurrentAmplifier- Overrides:
getModePositionsin classCurrentAmplifierBase- Returns:
- an array of mode positions
- Throws:
DeviceException
-
listGains
returns a parsed list of gains available for this amplifier.- Specified by:
listGainsin interfaceCurrentAmplifier- Throws:
DeviceException
-
getStatus
Description copied from interface:CurrentAmplifierReturns the overload status- Specified by:
getStatusin interfaceCurrentAmplifier- Returns:
- the status
- 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
-
getCurrent
Description copied from interface:CurrentAmplifierreturns the current value- Specified by:
getCurrentin interfaceCurrentAmplifier- Returns:
- current
- Throws:
DeviceException
-
getMode
Description copied from interface:CurrentAmplifiergets the amplifier's mode of operation- Specified by:
getModein interfaceCurrentAmplifier- Returns:
- mode
- Throws:
DeviceException
-
setMode
Description copied from interface:CurrentAmplifiersets the amplifier's mode of operation- Specified by:
setModein interfaceCurrentAmplifier- Parameters:
mode-- Throws:
DeviceException
-
initializationCompleted
public void initializationCompleted()Description copied from interface:InitializationListenerCalled when all critical channels are connected.- Specified by:
initializationCompletedin interfaceInitializationListener
-
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- Specified by:
getGainUnitin interfaceCurrentAmplifier- Returns:
- gain unit
- Throws:
DeviceException
-
setGainUnit
Description copied from interface:CurrentAmplifierMoves amplifier's gain unit to the named unit.- Specified by:
setGainUnitin interfaceCurrentAmplifier- Parameters:
unit-- Throws:
DeviceException
-
isEnableValueMonitoring
public boolean isEnableValueMonitoring() -
setEnableValueMonitoring
public void setEnableValueMonitoring(boolean enableValueMonitoring) -
enableValueMonitoring
public void enableValueMonitoring() -
disableValueMonitoring
public void disableValueMonitoring() -
isPoll
public boolean isPoll() -
setPoll
public void setPoll(boolean poll) -
getPvName
-
setPvName
-
isAcdcAvailable
public boolean isAcdcAvailable() -
setAcdcAvailable
public void setAcdcAvailable(boolean acdcAvailable)
-