
public class PduCommonDevice extends org.lsst.ccs.monitor.Device implements SwitchControl
| Modifier and Type | Field and Description |
|---|---|
protected org.lsst.ccs.drivers.auxelex.Srp.BoardType |
boardType |
protected static int |
MON_TYPE_CURRENT
Constants.
|
protected static int |
MON_TYPE_VOLTAGE
Constants.
|
protected Integer |
node |
protected org.lsst.ccs.drivers.auxelex.PduCommon |
pdu |
protected int |
switchDevice |
protected int |
validChans |
| Constructor and Description |
|---|
PduCommonDevice() |
| 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 |
initChannel(String name,
int id,
int hwChan,
int type,
int subtype)
Initializes a monitoring channel.
|
protected void |
initDevice()
Performs configuration.
|
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.
|
addChannel, addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getFullName, getName, getOutputLines, init, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected static final int MON_TYPE_VOLTAGE
protected static final int MON_TYPE_CURRENT
@ConfigurationParameter(name="node",
category="Quadbox",
isFinal=true)
protected Integer node
protected int switchDevice
protected org.lsst.ccs.drivers.auxelex.Srp.BoardType boardType
protected int validChans
protected org.lsst.ccs.drivers.auxelex.PduCommon pdu
protected void initDevice()
initDevice in class org.lsst.ccs.monitor.Devicepublic void initialize()
initialize in interface SwitchControlinitialize 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 void initChannel(String name, int id, int hwChan, int type, int subtype)
initChannel in class org.lsst.ccs.monitor.Devicename - The channel nameid - The channel IDhwChan - The hardware channeltype - The channel type stringsubtype - The channel subtype stringprotected 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 © 2018 LSST. All rights reserved.