public class VacPduDevice extends org.lsst.ccs.monitor.Device implements SwitchDevice
| Modifier and Type | Field and Description |
|---|---|
static int |
CHAN_CRYO_SCROLL
Constants.
|
static int |
CHAN_HEX_SCROLL
Constants.
|
static int |
CHAN_INST_SCROLL
Constants.
|
protected static Logger |
LOG |
protected static int |
MON_TYPE_CURRENT |
protected static int |
MON_TYPE_VOLTAGE |
protected Integer |
node
Data fields.
|
| Constructor and Description |
|---|
VacPduDevice() |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a monitoring channel's parameters for validity.
|
protected void |
close()
Closes the connection.
|
int |
getSwitchDevice()
Gets the switch device type
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Performs full initialization.
|
Boolean |
isSwitchOn(int chan)
Gets the state of a PDU channel.
|
protected double |
readChannel(int hwChan,
int type)
Reads a monitoring channel.
|
void |
setSwitch(int chan,
boolean on)
Turns a PDU channel on or off.
|
addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setDisabled, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlinepublic static final int CHAN_CRYO_SCROLL
public static final int CHAN_HEX_SCROLL
public static final int CHAN_INST_SCROLL
protected static final int MON_TYPE_VOLTAGE
protected static final int MON_TYPE_CURRENT
protected static final Logger LOG
@ConfigurationParameter(category="Vacuum",
isFinal=true)
protected volatile Integer node
protected void initDevice()
initDevice in class org.lsst.ccs.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.monitor.Deviceprotected void close()
close in class org.lsst.ccs.monitor.Deviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.monitor.Devicename - The channel namehwChan - The hardware channeltype - The channel type stringsubtype - The channel subtype stringException - If parameters are invalidprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.monitor.DevicehwChan - The hardware channel numbertype - The encoded channel typepublic int getSwitchDevice()
getSwitchDevice in interface SwitchDevicepublic void setSwitch(int chan,
boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
setSwitch in interface SwitchDevicechan - The channel numberon - Whether to turn on or offorg.lsst.ccs.drivers.commons.DriverExceptionpublic Boolean isSwitchOn(int chan)
isSwitchOn in interface SwitchDevicechan - The channel numberCopyright © 2021 LSST. All rights reserved.