public class IonPumpDevice extends org.lsst.ccs.monitor.Device implements SwitchDevice
| Modifier and Type | Field and Description |
|---|---|
static int |
CHAN_CIP1
Constants.
|
static int |
CHAN_CIP2
Constants.
|
static int |
CHAN_CIP3
Constants.
|
static int |
CHAN_CIP4
Constants.
|
static int |
CHAN_CIP5
Constants.
|
static int |
CHAN_CIP6
Constants.
|
static int |
CHAN_HIP1
Constants.
|
static int |
CHAN_HIP2
Constants.
|
static int |
CHAN_OIP
Constants.
|
| Constructor and Description |
|---|
IonPumpDevice()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a monitoring channel's parameters for validity.
|
protected void |
close()
Closes the connection.
|
List<String> |
getChannelNames()
Gets the list of defined channel names.
|
List<Integer> |
getChannelNumbers()
Gets the list of defined channel numbers.
|
int |
getSwitchDevice()
Gets the switch device ID.
|
Set<String> |
getUsageChannelNames()
Command to get the set of usage monitoring channel names.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Performs full initialization.
|
protected Boolean |
isChannelOn(int chan)
Gets the on state of a channel.
|
Boolean |
isSwitchOn(int sw)
Gets whether a switch is on.
|
void |
postStart()
Post start phase
|
protected double |
readChannel(int hwChan,
int type)
Reads a monitoring channel.
|
protected void |
setChannelOn(int chan,
boolean on)
Turns a channel on or off
|
void |
setSwitch(int sw,
boolean on)
Turns a switch on or off.
|
void |
setUsageValue(String chanName,
double usage)
Command to set the value for a usage monitoring channel.
|
addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setDisabled, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlinepublic static final int CHAN_HIP1
public static final int CHAN_HIP2
public static final int CHAN_OIP
public static final int CHAN_CIP1
public static final int CHAN_CIP2
public static final int CHAN_CIP3
public static final int CHAN_CIP4
public static final int CHAN_CIP5
public static final int CHAN_CIP6
public void postStart()
postStart in interface org.lsst.ccs.framework.HasLifecycleprotected 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 channeltype - The channel type stringsubtype - The channel subtype stringException - If parameters are invalidprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.monitor.DevicehwChan - The hardware channel numbertype - The encoded channel type@Command(type=QUERY,
level=0,
description="Get the set of usage channel names")
public Set<String> getUsageChannelNames()
@Command(description="Set the value for a usage monitoring channel",
level=50)
public void setUsageValue(@Argument(description="Channel name")
String chanName,
@Argument(description="Usage value")
double usage)
throws VacuumException
chanName - The channel nameusage - The usage valueVacuumExceptionprotected void setChannelOn(int chan,
boolean on)
chan - The hardware channel numberon - Whether to set on or offprotected Boolean isChannelOn(int chan)
chan - The hardware channel numberpublic List<String> getChannelNames()
public List<Integer> getChannelNumbers()
public int getSwitchDevice()
getSwitchDevice in interface SwitchDevicepublic void setSwitch(int sw,
boolean on)
setSwitch in interface SwitchDevicesw - The switch IDon - Whether to turn on or offpublic Boolean isSwitchOn(int sw)
isSwitchOn in interface SwitchDevicesw - The switch IDCopyright © 2022 LSST. All rights reserved.