public class BfrComCamDevice extends org.lsst.ccs.monitor.Device implements SwitchControl
| Constructor and Description |
|---|
BfrComCamDevice() |
| 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.
|
void |
initialize()
Performs full initialization.
|
Boolean |
isSwitchOn(int relay)
Gets the state of a relay.
|
protected double |
readChannel(int hwChan,
int type)
Reads a monitored channel.
|
protected void |
readChannelGroup()
Reads all monitored channels.
|
void |
switchOff(int relay)
Turns a relay off.
|
void |
switchOn(int relay)
Turns a relay on.
|
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, readChannelNow, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineprotected 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(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 readChannelGroup()
readChannelGroup in class org.lsst.ccs.monitor.Deviceprotected 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 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 © 2020 LSST. All rights reserved.