
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(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 |
switchOff(int chan)
Turns a PDU channel off.
|
void |
switchOn(int chan)
Turns a PDU channel on.
|
addLine, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, 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(name="node",
category="Util",
isFinal=true)
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(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 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 © 2022 LSST. All rights reserved.