
public class MMRDevice
extends org.lsst.ccs.subsystem.monitor.Device
implements org.lsst.ccs.drivers.mmr.Mmr.Listener
| Constructor and Description |
|---|
MMRDevice() |
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 hwChan,
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, addConfigValues, addLine, checkHwLine, checkLine, checkOnline, checkTimeout, disable, dropChannel, enable, getConfigValues, getFullName, getOutputLines, initChannel, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlinegetChildren, getEnvironment, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getCheckedValueFromConfiguration, getComponentByName, getName, getParent, getParentObject, getSubmittedChanges, getSubsystem, init, isParameterConfigurable, notifyChange, notifyChangeWithoutPreliminaryChecks, postStart, printConfigurableParameters, setBulkParameter, shutdownNow, start, submitChange, submitChanges, validateBulkChangepublic MMRDevice(String cType, String id)
cType - The connection type: ftdi or serialid - The device ID: USB serial no. or serial device namepublic MMRDevice()
protected void configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
configure in class org.lsst.ccs.subsystem.monitor.Devicemon - The associated monitorprotected 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.Devicename - The name of the channel.hwChan - The hardware channel number.type - The channel type string.subtype - The channel subtype string.Exception - if any errors found in the parameters.protected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.subsystem.monitor.DevicehwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.public 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.Listenere - The exception causing closurepublic void processData(double[] data)
processData in interface org.lsst.ccs.drivers.mmr.Mmr.Listenerdata - The array of data from the meter.Copyright © 2016 LSST. All rights reserved.