public class BfrDevicePT extends org.lsst.ccs.monitor.Device implements SwitchControl
| Modifier and Type | Field and Description |
|---|---|
static int |
CHAN_24V_PDU
Constants.
|
static int |
CHAN_48V_PDU
Constants.
|
static int |
CHAN_HEATER_1
Constants.
|
static int |
CHAN_HEATER_2
Constants.
|
static int |
CHAN_HEATER_SIM
Constants.
|
| Constructor and Description |
|---|
BfrDevicePT() |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(org.lsst.ccs.monitor.Channel ch)
Checks a monitoring channel's parameters for validity.
|
protected void |
close()
Closes the connection.
|
protected String |
getGroupForChannel(org.lsst.ccs.monitor.Channel ch)
Gets the group for a channel.
|
int |
getSwitchDevice()
Gets the switch device type.
|
protected void |
initDevice()
Performs configuration.
|
void |
initialize()
Performs full initialization.
|
Boolean |
isSwitchOn(int relay)
Gets the state of a relay.
|
protected double |
readChannel(org.lsst.ccs.monitor.Channel ch)
Reads a monitored channel.
|
protected void |
readChannelGroup(String group)
Reads all monitored channels.
|
void |
switchOff(int relay)
Turns a relay off.
|
void |
switchOn(int relay)
Turns a relay on.
|
addLine, checkChannel, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initChannel, initSensors, isEnabled, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, setDisabled, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, start, testOnlinepublic static final int CHAN_HEATER_1
public static final int CHAN_HEATER_2
public static final int CHAN_24V_PDU
public static final int CHAN_48V_PDU
public static final int CHAN_HEATER_SIM
protected void initDevice()
initDevice in class org.lsst.ccs.monitor.Devicepublic void initialize()
initialize in class org.lsst.ccs.monitor.Deviceprotected void close()
close in class org.lsst.ccs.monitor.Deviceprotected int[] checkChannel(org.lsst.ccs.monitor.Channel ch)
throws Exception
checkChannel in class org.lsst.ccs.monitor.Devicech - The channel to checkException - If parameters are invalidprotected String getGroupForChannel(org.lsst.ccs.monitor.Channel ch)
getGroupForChannel in class org.lsst.ccs.monitor.Devicech - The channelprotected void readChannelGroup(String group)
readChannelGroup in class org.lsst.ccs.monitor.Devicegroup - The group to readprotected double readChannel(org.lsst.ccs.monitor.Channel ch)
readChannel in class org.lsst.ccs.monitor.Devicech - The channel to readpublic int getSwitchDevice()
getSwitchDevice in interface SwitchControlpublic void switchOn(int relay)
switchOn in interface SwitchControlrelay - The relay numberpublic void switchOff(int relay)
switchOff in interface SwitchControlrelay - The relay numberpublic Boolean isSwitchOn(int relay)
isSwitchOn in interface SwitchControlrelay - The relay numberCopyright © 2022 LSST. All rights reserved.