public class WUDevice
extends org.lsst.ccs.monitor.Device
implements org.lsst.ccs.drivers.wattsup.WattsUp.Listener
| Constructor and Description |
|---|
WUDevice() |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(org.lsst.ccs.monitor.Channel ch)
Checks a channel's parameters for validity.
|
protected void |
close()
Closes the connection.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Performs basic initialization.
|
void |
processData(double[] data)
Receives data periodically from the WattsUp? meter.
|
protected double |
readChannel(org.lsst.ccs.monitor.Channel ch)
Reads a channel.
|
void |
setClosed()
Changes the WattsUp? meter open state.
|
void |
setPowered(boolean on)
Changes the WattsUp? meter powered state.
|
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 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 readException - if any errors found in the parameters.protected double readChannel(org.lsst.ccs.monitor.Channel ch)
readChannel in class org.lsst.ccs.monitor.Devicech - The Channel to read.public void setPowered(boolean on)
setPowered in interface org.lsst.ccs.drivers.wattsup.WattsUp.Listeneron - Whether the meter is powered on or notpublic void setClosed()
setClosed in interface org.lsst.ccs.drivers.wattsup.WattsUp.Listenerpublic void processData(double[] data)
processData in interface org.lsst.ccs.drivers.wattsup.WattsUp.Listenerdata - The array of data from the meter.Copyright © 2024 LSST. All rights reserved.