public class TestAP9630UPS extends Object
| Constructor and Description |
|---|
TestAP9630UPS() |
| Modifier and Type | Method and Description |
|---|---|
double |
batteryCharge() |
double |
batteryVoltage() |
void |
close() |
void |
open(org.lsst.ccs.drivers.ascii.Session.ConnType connType,
String devcId) |
void |
open(org.lsst.ccs.drivers.ascii.Session.ConnType connType,
String devcId,
String userName,
String password) |
double |
outputCurrent() |
double |
outputPower() |
double |
outputVoltage() |
String |
product() |
int |
runTime() |
void |
setCharTimeout(int timeout) |
void |
setTimeout(int timeout) |
String |
status() |
void |
talk() |
double |
temperature() |
String |
version() |
@Command(description="Open connection to a UPS")
public void open(@Argument(name="conntype",description="Connection type")
org.lsst.ccs.drivers.ascii.Session.ConnType connType,
@Argument(name="devcid",description="Device ID")
String devcId,
@Argument(name="username",description="User name")
String userName,
@Argument(name="password",description="Password")
String password)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Open connection to a UPS")
public void open(@Argument(name="conntype",description="Connection type")
org.lsst.ccs.drivers.ascii.Session.ConnType connType,
@Argument(name="devcid",description="Device ID")
String devcId)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Set the response overall timeout")
public void setTimeout(@Argument(description="Timeout (ms)")
int timeout)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Set the response inter-character timeout")
public void setCharTimeout(@Argument(description="Timeout (ms)")
int timeout)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Close the connection")
public void close()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the product name") public String product() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the firmware version") public String version() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the UPS status") public String status() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the output voltage")
public double outputVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the output current")
public double outputCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the output power")
public double outputPower()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the battery temperature")
public double temperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the battery voltage")
public double batteryVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the battery charge")
public double batteryCharge()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the remaining run time")
public int runTime()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="talk",
description="Talk to the UPS interactively")
public void talk()
throws org.lsst.ccs.drivers.commons.DriverException,
IOException
org.lsst.ccs.drivers.commons.DriverExceptionIOExceptionCopyright © 2021 LSST. All rights reserved.