public class MMRDevice
extends org.lsst.ccs.subsystem.monitor.Device
implements org.lsst.ccs.drivers.mmr.Mmr.Listener
| Constructor and Description |
|---|
MMRDevice(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)
Configures the device parameters.
|
protected void |
initialize()
Performs full initialization.
|
void |
processData(double[] data)
Receives data periodically from the MMR controller.
|
protected double |
readChannel(int chan,
int type)
Reads a channel.
|
void |
setClosed(Exception e)
Changes the MMR controller open state.
|
void |
setPowered(boolean on)
Changes the MMR controller powered state.
|
addChannel, addChildConfigValues, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, dropChannel, getConfigValues, getFullName, getOutputLines, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannelGroup, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineprotected 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 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.mmr.Mmr.Listeneron - Whether the controller is powered on or notpublic void setClosed(Exception e)
setClosed in interface org.lsst.ccs.drivers.mmr.Mmr.Listenerpublic void processData(double[] data)
processData in interface org.lsst.ccs.drivers.mmr.Mmr.Listenerdata - The array of data from the meter.Copyright © 2014 LSST. All Rights Reserved.