Package gda.device.evaporator
Class Evaporator
java.lang.Object
gda.factory.FindableBase
gda.device.evaporator.Evaporator
- All Implemented Interfaces:
Findable
GDA user facing device to control a multi-pocket evaporator
This is independent of the underlying hardware and relies on an
EvaporatorController to communicate with the device.
This class just needs a name (to be Findable) and a controller.
<bean id="ebe" class="gda.device.evaporator.Evaporator">
<property name="controller" ref="ebe_controller"/>
</bean>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription__getattr__(String name) Convenience method for access from Jython
Allows direct access to pockets eg__getitem__(int pocket) Convenience method for access from Jython
Allows direct access to pockets egvoidClear any error state of the devicevoiddisable()voidenable()doubleGet voltagegetPocket(int pocket) Get a specific pocket from the evaporator.Get the current shutter positionGet the name of the current shutter positionGet a list of valid shutter positions.voidhvOff()Switch high voltage offvoidhvOn()Switch high voltage onbooleanbooleanCheck if high voltage is on or offbooleanisRemote()Check if this device is controllable from GDAvoidDisable remote control of the devicevoidremoteOn()Enable remote control of the device
With remote disabled, the device is not accessible from GDAvoidsetController(EvaporatorController controller) voidsetHighVoltage(double hv) Set voltagevoidsetShutter(int shutter) Set the shutter position by indexvoidsetShutter(String pos) Set the shutter position by nametoString()Methods inherited from class gda.factory.FindableBase
equals, getName, hashCode, setName
-
Constructor Details
-
Evaporator
public Evaporator()
-
-
Method Details
-
enable
- Throws:
DeviceException
-
disable
- Throws:
DeviceException
-
isEnabled
- Throws:
DeviceException
-
remoteOn
Enable remote control of the device
With remote disabled, the device is not accessible from GDA- Throws:
DeviceException
-
remoteOff
Disable remote control of the device- Throws:
DeviceException- See Also:
-
isRemote
Check if this device is controllable from GDA- Throws:
DeviceException- See Also:
-
hvOn
Switch high voltage on- Throws:
DeviceException
-
hvOff
Switch high voltage off- Throws:
DeviceException
-
isHvEnabled
Check if high voltage is on or off- Throws:
DeviceException
-
getHighVoltage
Get voltage- Throws:
DeviceException
-
setHighVoltage
Set voltage- Throws:
DeviceException
-
getShutter
Get the current shutter position- Returns:
- the current shutter position name
- Throws:
DeviceException- if the device is unreachable
-
setShutter
Set the shutter position by name- Parameters:
pos- must be one of the valid shutter positions for this device- Throws:
DeviceException- if the device is unreachable
-
setShutter
Set the shutter position by index- Parameters:
shutter- The index of the required shutter position- Throws:
DeviceException- if the device is unreachable
-
clearError
Clear any error state of the device- Throws:
DeviceException
-
getShutterPositions
Get a list of valid shutter positions.- Returns:
- Unmodifiable list of valid shutter positions
- Throws:
DeviceException- if the device is unreachable
-
getShutterPosition
Get the name of the current shutter position- Returns:
- The current shutter position
- Throws:
DeviceException- if the device is unreachable
-
getPocket
Get a specific pocket from the evaporator. Pockets are 1-indexed.- Parameters:
pocket- 1-indexed pocket number- Returns:
- EvaporatorPocket
-
__getitem__
Convenience method for access from Jython
Allows direct access to pockets eg>>> ebe[1]
is equivalent to>>> ebe.getPocket(1)
This should not be used from Java -
__getattr__
Convenience method for access from Jython
Allows direct access to pockets eg>>> ebe.p1
is equivalent to>>> ebe.getPocket(1)
This should not be used from Java -
setController
-
toString
-