public class WUDevice
extends org.lsst.ccs.subsystem.monitor.Device
implements org.lsst.ccs.drivers.wattsup.WattsUp.Listener
| Constructor and Description |
|---|
WUDevice(String nodeName,
String serialNo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
protected void |
close()
Closes the connection.
|
protected void |
initChannel(int chan,
int type,
int subtype)
Initializes a channel.
|
protected void |
initialize()
Performs basic initialization.
|
void |
processData(float[] data)
Receives data periodically from the WattsUp? meter.
|
protected double |
readChannel(int chan,
int type)
Reads a channel.
|
void |
setClosed()
Changes the WattsUp? meter open state.
|
void |
setPowered(boolean on)
Changes the WattsUp? meter powered state.
|
addChannel, addChildConfigValues, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, configure, dropChannel, getConfigValues, getFullName, getOutputLines, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannelGroup, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineprotected void initialize()
initialize in class org.lsst.ccs.subsystem.monitor.Deviceprotected void close()
close in class org.lsst.ccs.subsystem.monitor.Deviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.subsystem.monitor.DeviceExceptionprotected void initChannel(int chan,
int type,
int subtype)
initChannel in class org.lsst.ccs.subsystem.monitor.Deviceprotected double readChannel(int chan,
int type)
readChannel in class org.lsst.ccs.subsystem.monitor.Devicepublic 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(float[] data)
processData in interface org.lsst.ccs.drivers.wattsup.WattsUp.Listenerdata - The array of data from the meter.Copyright © 2014 LSST. All Rights Reserved.