Package gda.device.attenuator
Class BinaryFilterSetAttenuators
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.attenuator.EpicsAttenuatorBase
gda.device.attenuator.BinaryFilterSetAttenuators
- All Implemented Interfaces:
Attenuator,InitializationListener,Configurable,Findable,gov.aps.jca.event.MonitorListener,EventListener
@ServiceInterface(Attenuator.class)
public final class BinaryFilterSetAttenuators
extends EpicsAttenuatorBase
Attenuators as used in certain mx beamlines, I04-1 and phase 1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected gov.aps.jca.Channel[]protected gov.aps.jca.Channel[]Fields inherited from class gda.device.attenuator.EpicsAttenuatorBase
actualEnergy, actualTransmission, change, channelManager, controller, desiredEnergy, desiredTransmission, useCurrentEnergy -
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.boolean[]Returns array (indexing over filter elements) answering the question:
"Is this filter required to be in the beam (to achieve the closest match transmission)?",
as per the requested transmission most recently supplied to theAttenuator.getClosestMatchTransmission(double)method.String[]Names available filtersboolean[]Returns array (indexing over filter elements) answering the question:
"Is filter (presently) in the beam?".intCounts the filters availablevoidsetPvPrefix(String pvPrefix) Methods inherited from class gda.device.attenuator.EpicsAttenuatorBase
getClosestMatchEnergy, getClosestMatchTransmission, getClosestMatchTransmission, getDesiredEnergy, getDesiredTransmission, getTransmission, initializationCompleted, isReady, monitorChanged, setTransmissionMethods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, 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
isConfigureAtStartup, isConfigured, reconfigure
-
Field Details
-
filterChannels
protected gov.aps.jca.Channel[] filterChannels -
calculatedChannels
protected gov.aps.jca.Channel[] calculatedChannels
-
-
Constructor Details
-
BinaryFilterSetAttenuators
-
-
Method Details
-
setPvPrefix
-
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
-
getFilterPositions
Description copied from interface:AttenuatorReturns array (indexing over filter elements) answering the question:
"Is filter (presently) in the beam?".- Throws:
DeviceException
-
getDesiredFilterPositions
Description copied from interface:AttenuatorReturns array (indexing over filter elements) answering the question:
"Is this filter required to be in the beam (to achieve the closest match transmission)?",
as per the requested transmission most recently supplied to theAttenuator.getClosestMatchTransmission(double)method.- Throws:
DeviceException
-
getNumberFilters
Description copied from interface:AttenuatorCounts the filters available- Returns:
- the number of filters in this attenuator
- Throws:
DeviceException
-
getFilterNames
Description copied from interface:AttenuatorNames available filters- Returns:
- the names of the filters in this attenuator
- Throws:
DeviceException
-