Package gda.device
Class EpicsTca
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.EpicsTca
- All Implemented Interfaces:
Device,InitializationListener,Configurable,Findable,gda.observable.IObservable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enum -
Field Summary
FieldsFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
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.getAttribute(String attributeName) Get the value of the specified attributevoidCalled when all critical channels are connected.voidsetAttribute(String attributeName, Object value) Set any attribute the implementing classes may providevoidsetCalibrationName(String calibrationName) voidsetPolarity(EpicsTca.polarityEnum value) voidsetPurAmp(EpicsTca.purAmpEnum value) voidvoidvoidsetScalerCAL(double value) voidvoidsetScalerGate(int scalerNo, EpicsTca.scalerGateEnum value) voidsetScalerHigh(int scalerNo, double value) voidsetScalerLow(int scalerNo, double value) voidsetScalerPur(int scalerNo, EpicsTca.scalerPurEnum value) voidsetScalerROIEnable(boolean value) voidsetStatus(EpicsTca.statusEnum value) voidsetTcaRecordName(String tcaRecordName) voidvoidMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, 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, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigured, reconfigure
-
Field Details
-
channelToEnergyPrefix
- See Also:
-
energyToChannelPrefix
- See Also:
-
-
Constructor Details
-
EpicsTca
public EpicsTca()
-
-
Method Details
-
setTcaRecordName
-
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
-
getAttribute
Description copied from interface:DeviceGet the value of the specified attribute- Specified by:
getAttributein interfaceDevice- Overrides:
getAttributein classDeviceBase- Parameters:
attributeName- is the name of the attribute- Returns:
- the value of the attribute as an Object type
- Throws:
DeviceException- if an attribute cannot be retrieved
-
setAttribute
Description copied from interface:DeviceSet any attribute the implementing classes may provide- Specified by:
setAttributein interfaceDevice- Overrides:
setAttributein classDeviceBase- Parameters:
attributeName- is the name of the attributevalue- is the value of the attribute- Throws:
DeviceException- if an attribute cannot be set
-
setScalerHigh
public void setScalerHigh(int scalerNo, double value) throws gov.aps.jca.CAException, InterruptedException - Parameters:
scalerNo-value-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
setScalerLow
public void setScalerLow(int scalerNo, double value) throws gov.aps.jca.CAException, InterruptedException - Parameters:
scalerNo-value-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
setPurEnable
public void setPurEnable(EpicsTca.purEnableEnum value) throws gov.aps.jca.CAException, InterruptedException - Parameters:
value-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
setThreshold
public void setThreshold(EpicsTca.thresholdEnum value) throws gov.aps.jca.CAException, InterruptedException - Parameters:
value-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
setRoiScaEnable
public void setRoiScaEnable(EpicsTca.roiScaEnableEnum value) throws gov.aps.jca.CAException, InterruptedException - Parameters:
value-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
setScalerGate
public void setScalerGate(int scalerNo, EpicsTca.scalerGateEnum value) throws gov.aps.jca.CAException, InterruptedException - Parameters:
scalerNo-value-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
setScalerPur
public void setScalerPur(int scalerNo, EpicsTca.scalerPurEnum value) throws gov.aps.jca.CAException, InterruptedException - Parameters:
scalerNo-value-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
setScalerEnable
public void setScalerEnable(EpicsTca.scalerEnableEnum value) throws gov.aps.jca.CAException, InterruptedException - Parameters:
value-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
setTcaSelect
public void setTcaSelect(EpicsTca.tcaSelectEnum value) throws gov.aps.jca.CAException, InterruptedException - Parameters:
value-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
setScalerCAL
- Parameters:
value-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
setScalerROIEnable
public void setScalerROIEnable(boolean value) - Parameters:
value-
-
setStatus
public void setStatus(EpicsTca.statusEnum value) throws gov.aps.jca.CAException, InterruptedException - Parameters:
value-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
setPolarity
public void setPolarity(EpicsTca.polarityEnum value) throws gov.aps.jca.CAException, InterruptedException - Parameters:
value-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
setPurAmp
public void setPurAmp(EpicsTca.purAmpEnum value) throws gov.aps.jca.CAException, InterruptedException - Parameters:
value-- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
initializationCompleted
public void initializationCompleted()Description copied from interface:InitializationListenerCalled when all critical channels are connected.- Specified by:
initializationCompletedin interfaceInitializationListener
-
getCalibrationName
- Returns:
- converter name
-
setCalibrationName
- Parameters:
calibrationName-
-