
public class WattsUpDevice
extends org.lsst.ccs.monitor.Device
implements org.lsst.ccs.drivers.wattsup.WattsUp.Listener
| Modifier and Type | Field and Description |
|---|---|
static int |
CHAN_FREQ
Public constants.
|
static int |
CHAN_VOLTS
Public constants.
|
static int |
CHAN_WATTS
Public constants.
|
| Constructor and Description |
|---|
WattsUpDevice() |
| 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 |
initDevice()
Performs basic initialization.
|
protected void |
initialize()
Performs full initialization.
|
void |
processData(double[] 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, 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, waitpublic static final int CHAN_WATTS
public static final int CHAN_VOLTS
public static final int CHAN_FREQ
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(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.monitor.Devicename - The channel namehwChan - The hardware channel numbertype - The channel type stringsubtype - The channel subtype stringException - if any errors found in the parameters.protected void initChannel(int chan,
int type,
int subtype)
initChannel in class org.lsst.ccs.monitor.Devicechan - The hardware channel numbertype - The channel type stringsubtype - The channel subtype stringprotected double readChannel(int chan,
int type)
readChannel in class org.lsst.ccs.monitor.Devicechan - The hardware channel number.type - The encoded channel type returned by checkChannel.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 © 2019 LSST. All rights reserved.