public class DcsDevice extends org.lsst.ccs.subsystem.monitor.Device implements PowerDevice
| Constructor and Description |
|---|
DcsDevice(String cType,
String id)
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 |
configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
Performs configuration.
|
boolean |
getOutput(int chan)
Gets the output state.
|
protected void |
initialize()
Performs full initialization.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
protected void |
readChannelGroup()
Reads all channels as a group.
|
double |
readCurrent(int chan)
Reads the current.
|
double |
readVoltage(int chan)
Reads the voltage.
|
void |
setCurrent(int chan,
double value)
Sets the current.
|
void |
setOutput(int chan,
boolean value)
Sets the output state.
|
void |
setVoltage(int chan,
double value)
Sets the voltage.
|
addChannel, addChildConfigValues, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, dropChannel, getConfigValues, getFullName, getOutputLines, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlinealias, change, getDictionary, getEnvironment, getName, getParent, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisOnlineprotected void configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
configure in class org.lsst.ccs.subsystem.monitor.Deviceprotected 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 readChannelGroup()
readChannelGroup in class org.lsst.ccs.subsystem.monitor.Deviceprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.subsystem.monitor.Devicepublic void setOutput(int chan,
boolean value)
setOutput in interface PowerDevicepublic boolean getOutput(int chan)
getOutput in interface PowerDevicepublic void setVoltage(int chan,
double value)
setVoltage in interface PowerDevicepublic double readVoltage(int chan)
readVoltage in interface PowerDevicepublic void setCurrent(int chan,
double value)
setCurrent in interface PowerDevicepublic double readCurrent(int chan)
readCurrent in interface PowerDeviceCopyright © 2014 LSST. All Rights Reserved.