Package gda.device.enumpositioner
Class EpicsCurrAmpQuadController
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.scannable.ScannableBase
gda.device.enumpositioner.EnumPositionerBase
gda.device.enumpositioner.EpicsCurrAmpQuadController
- All Implemented Interfaces:
ControllerRecord,Device,EnumPositioner,Monitor,Scannable,InitializationListener,Configurable,Findable,gda.observable.IObservable
- Direct Known Subclasses:
EpicsLocum4Controller
public class EpicsCurrAmpQuadController
extends EnumPositionerBase
implements Monitor, InitializationListener, ControllerRecord
EpicsCurrAmpQuadController Class
-
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.voidvoidGets the name of the controller record, e.g.doubledoubledoubledoublestatic String[]getCurrentPositionArray(Scannable scannable) converts object to String arrayintreturns the number of elements in this monitor.String[]Returns an array of the positions which this device can be moved to.getUnit()gets the physical unit of the monitor.voidCalled when all critical channels are connected.booleanisPoll()protected voidmonitorRange(gov.aps.jca.event.MonitorEvent mev) 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.voidsetCurrent1Pv(String current1pv) voidsetCurrent2Pv(String current2pv) voidsetCurrent3Pv(String current3pv) voidsetCurrent4Pv(String current4pv) voidsetPoll(boolean poll) voidsetRangePv(String rangePV) voidsetRangeRbvPv(String rangeRBVPV) toString()Methods inherited from class gda.device.enumpositioner.EnumPositionerBase
addPosition, addPositions, checkPositionValid, clearPositions, containsPosition, createFormattedListAcceptablePositions, getNumberOfPositions, getPosition, getPositionerStatus, getPositionIndex, getPositionsList, getStatus, isBusy, isInPos, 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, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, throwExceptionIfInvalidTarget, 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, checkPositionValid, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, isBusy, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, stop, toFormattedString, waitWhileBusy
-
Constructor Details
-
EpicsCurrAmpQuadController
public EpicsCurrAmpQuadController()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
-
initializationCompleted
Description copied from interface:InitializationListenerCalled when all critical channels are connected.- Specified by:
initializationCompletedin interfaceInitializationListener- Throws:
DeviceException
-
disablePoll
public void disablePoll() -
enablePoll
public void enablePoll() -
getPositions
Description copied from interface:EnumPositionerReturns an array of the positions which this device can be moved to.- Specified by:
getPositionsin interfaceEnumPositioner- Overrides:
getPositionsin classEnumPositionerBase- Returns:
- an array of positions
- Throws:
DeviceException
-
getElementCount
Description copied from interface:Monitorreturns the number of elements in this monitor.- Specified by:
getElementCountin interfaceMonitor- Returns:
- int the element count
- Throws:
DeviceException
-
getUnit
Description copied from interface:Monitorgets the physical unit of the monitor.- Specified by:
getUnitin interfaceMonitor- Returns:
- String the physical unit
- Throws:
DeviceException
-
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:
-
monitorRange
protected void monitorRange(gov.aps.jca.event.MonitorEvent mev) -
getRangeValue
- Returns:
- range value
- Throws:
DeviceException
-
getCurrent1
- Returns:
- current1
- Throws:
DeviceException
-
getCurrent2
- Returns:
- current2
- Throws:
DeviceException
-
getCurrent3
- Returns:
- current3
- Throws:
DeviceException
-
getCurrent4
- Returns:
- current4
- Throws:
DeviceException
-
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:
-
toString
- Overrides:
toStringin classScannableBase
-
getCurrentPositionArray
converts object to String array- Parameters:
scannable-- Returns:
- position array
- Throws:
Exception
-
isPoll
public boolean isPoll() -
setPoll
public void setPoll(boolean poll) -
getCurrent1Pv
-
setCurrent1Pv
-
getCurrent2Pv
-
setCurrent2Pv
-
getCurrent3Pv
-
setCurrent3Pv
-
getCurrent4Pv
-
setCurrent4Pv
-
getRangePv
-
setRangePv
-
getRangeRbvPv
-
setRangeRbvPv
-
getControllerRecordName
Description copied from interface:ControllerRecordGets the name of the controller record, e.g. EPICS process variable name. For example, in NeXus this value can be written as the value of thecontroller_recordfield for theNXpositionerfor the scannable.- Specified by:
getControllerRecordNamein interfaceControllerRecord- Returns:
- controller record name
- See Also:
-