
public class AP9630UPSSimDevice extends AP9630UPSDevice
CHAN_BATT_CHARGE, CHAN_BATT_TEMP, CHAN_BATT_VOLTAGE, CHAN_OUT_CURRENT, CHAN_OUT_POWER, CHAN_OUT_VOLTAGE, CHAN_REM_TIME, CHAN_STATUS, NUM_CHANNELS| Constructor and Description |
|---|
AP9630UPSSimDevice() |
| 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.
|
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.
|
disable, enableaddLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, dropChannel, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setDisabled, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineprotected void initDevice()
initDevice in class AP9630UPSDeviceprotected void initialize()
initialize in class AP9630UPSDeviceprotected void close()
close in class AP9630UPSDeviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class AP9630UPSDevicename - 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 AP9630UPSDevicename - 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 AP9630UPSDevicehwChan - The hardware channel numbertype - The encoded channel type@Command(name="getStatus", description="Get the UPS status") public int getStatus()
getStatus in class AP9630UPSDevice@Command(name="getRemTime", description="Get the UPS remaining time") public int getRemTime()
getRemTime in class AP9630UPSDeviceCopyright © 2021 LSST. All rights reserved.