public class AP9630UPSDevice
extends org.lsst.ccs.monitor.Device
| Modifier and Type | Field and Description |
|---|---|
static int |
CHAN_BATT_CHARGE |
static int |
CHAN_BATT_TEMP |
static int |
CHAN_BATT_VOLTAGE |
static int |
CHAN_OUT_CURRENT |
static int |
CHAN_OUT_POWER |
static int |
CHAN_OUT_VOLTAGE |
static int |
CHAN_REM_TIME |
static int |
CHAN_STATUS |
static int |
NUM_CHANNELS |
| Constructor and Description |
|---|
AP9630UPSDevice() |
| 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.
|
void |
disable()
Disables the UPS.
|
void |
enable()
Enables the UPS.
|
int |
getRemTime()
Gets the UPS battery time remaining.
|
int |
getStatus()
Gets the UPS status.
|
protected void |
initChannel(String name,
int id,
int hwChan,
int type,
int subtype)
Initializes a channel.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Initializes the device.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
addChannel, addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, dropChannel, getFullName, getName, getOutputLines, init, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final int CHAN_OUT_VOLTAGE
public static final int CHAN_OUT_CURRENT
public static final int CHAN_OUT_POWER
public static final int CHAN_BATT_TEMP
public static final int CHAN_BATT_VOLTAGE
public static final int CHAN_BATT_CHARGE
public static final int CHAN_STATUS
public static final int CHAN_REM_TIME
public static final int NUM_CHANNELS
protected 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 void initChannel(String name, int id, int hwChan, int type, int subtype)
initChannel in class org.lsst.ccs.monitor.Devicename - The channel nameid - The channel IDhwChan - The hardware channeltype - The encoded channel typesubtype - The encoded channel subtypeprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.monitor.DevicehwChan - The hardware channel numbertype - The encoded channel type@Command(name="getStatus",
description="Get the UPS status")
public int getStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="getRemTime",
description="Get the UPS remaining time")
public int getRemTime()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="disable",
description="Disable the connection to the UPS")
public void disable()
disable in class org.lsst.ccs.monitor.Device@Command(name="enable",
description="Enable the connection to the UPS")
public void enable()
enable in class org.lsst.ccs.monitor.DeviceCopyright © 2019 LSST. All rights reserved.