
public class SimDevice
extends org.lsst.ccs.subsystem.monitor.Device
| Constructor and Description |
|---|
SimDevice(String loadTmpChan,
String loadPwrChan)
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 |
checkHwLine(String name,
int line)
Checks an output line number.
|
protected void |
close()
Closes the connection.
|
protected void |
initChannel(int hwChan,
int type,
int subtype)
Initializes a channel.
|
protected void |
initialize()
Performs full initialization.
|
protected boolean |
isHwLineSet(int line)
Gets the set state of an output line.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
protected void |
setHwLine(int line,
boolean on)
Sets an output line on or off.
|
void |
setLoadFract(double fract)
Sets the load power fraction
|
addChannel, addConfigValues, addLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getConfigValues, getFullName, getOutputLines, initChannel, initSensors, isLineSet, isOnline, isTimeout, readChannelGroup, readSensors, setLine, setLineWarm, setOnline, setOutputLines, testOnlinegetChildren, getEnvironment, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalias, change, getCheckedValueFromConfiguration, getComponentByName, getDictionary, getName, getParent, getParentObject, getSubsystem, init, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, postStart, proceduralWalk, publish, publish, publish, publish, publish, publish, shutdownNow, start, treeWalkprotected 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 parametersprotected void initChannel(int hwChan,
int type,
int subtype)
initChannel in class org.lsst.ccs.subsystem.monitor.DevicehwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.subtype - The channel subtype returned by checkChannel.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.protected void checkHwLine(String name, int line) throws Exception
checkHwLine in class org.lsst.ccs.subsystem.monitor.Devicename - The name of the output line.line - The hardware line number of the output line.Exception - if the line number is invalid.protected void setHwLine(int line,
boolean on)
setHwLine in class org.lsst.ccs.subsystem.monitor.Deviceline - The output line number.on - The on state to set: true or falseprotected boolean isHwLineSet(int line)
isHwLineSet in class org.lsst.ccs.subsystem.monitor.Deviceline - The output line number.public void setLoadFract(double fract)
fract - The fraction of the maximum load power to useCopyright © 2016 LSST. All rights reserved.