public class MCCDevice
extends org.lsst.ccs.monitor.Device
| Constructor and Description |
|---|
MCCDevice() |
MCCDevice(String dName,
String serialNo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(org.lsst.ccs.monitor.Channel ch)
Checks a channel's parameters for validity.
|
protected void |
checkHwLine(String name,
int line)
Checks an output line number.
|
protected void |
close()
Closes the connection.
|
protected void |
initChannel(org.lsst.ccs.monitor.Channel ch)
Initializes a channel.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Performs full initialization.
|
protected Boolean |
isHwLineSet(int line)
Gets the set state of an output line.
|
protected double |
readChannel(org.lsst.ccs.monitor.Channel ch)
Reads a channel.
|
protected void |
setHwLine(int line,
boolean on)
Sets an output line on or off.
|
addLine, checkChannel, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isEnabled, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setDisabled, setLine, setLineWarm, setOnline, setOutputLines, start, testOnlinepublic MCCDevice(String dName, String serialNo)
dName - The MCC device nameserialNo - The USB serial numberpublic MCCDevice()
protected 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 any errors found in the parameters.protected void initChannel(org.lsst.ccs.monitor.Channel ch)
initChannel in class org.lsst.ccs.monitor.Devicech - The Channel to initialize.protected double readChannel(org.lsst.ccs.monitor.Channel ch)
readChannel in class org.lsst.ccs.monitor.Devicech - The Channel to read.protected void checkHwLine(String name, int line) throws Exception
checkHwLine in class org.lsst.ccs.monitor.Devicename - The name of the output line.line - The hardware line number of the output line.Exception - If line invalidprotected void setHwLine(int line,
boolean on)
setHwLine in class org.lsst.ccs.monitor.Deviceline - The output line number.on - The on state to set: true or falseprotected Boolean isHwLineSet(int line)
isHwLineSet in class org.lsst.ccs.monitor.Deviceline - The output line number.Copyright © 2022 LSST. All rights reserved.