public class PduCommonDevice extends org.lsst.ccs.monitor.Device implements SwitchControl
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOG
Constants.
|
protected static int |
MON_TYPE_CURRENT |
protected static int |
MON_TYPE_VOLTAGE |
protected Integer |
node
Data fields.
|
| Constructor and Description |
|---|
PduCommonDevice(org.lsst.ccs.drivers.auxelex.PduCommon pdu,
String pduType,
int swDevc)
Constructor.
|
| 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.
|
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(org.lsst.ccs.monitor.Channel ch)
Reads a monitoring channel.
|
void |
switchOff(int chan)
Turns a PDU channel off.
|
void |
switchOn(int chan)
Turns a PDU channel on.
|
addLine, checkChannel, checkHwLine, checkLine, checkTimeout, configure, disable, dropChannel, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initChannel, initSensors, isEnabled, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setDisabled, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, start, testOnlineprotected static final Logger LOG
protected static final int MON_TYPE_VOLTAGE
protected static final int MON_TYPE_CURRENT
@ConfigurationParameter(category="Util",
isFinal=true,
name="node",
units="unitless",
description="PDU node number")
protected volatile Integer node
public PduCommonDevice(org.lsst.ccs.drivers.auxelex.PduCommon pdu,
String pduType,
int swDevc)
pdu - The PDU driver objectpduType - The PDU type descriptionswDevc - The switch device IDprotected 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(org.lsst.ccs.monitor.Channel ch)
throws Exception
checkChannel in class org.lsst.ccs.monitor.Devicech - The Channel to checkException - If parameters are invalidprotected 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 chan)
switchOn in interface SwitchControlchan - The channel numberpublic void switchOff(int chan)
switchOff in interface SwitchControlchan - The channel numberpublic Boolean isSwitchOn(int chan)
isSwitchOn in interface SwitchControlchan - The channel numberCopyright © 2024 LSST. All rights reserved.