public class APC7900SimDevice extends APC7900Device
CHAN_CURRENT, CHAN_POWER, TYPE_OUTLET, TYPE_POWER| Constructor and Description |
|---|
APC7900SimDevice() |
| 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 |
forceOutletOff(String name)
Forces an outlet to turn off.
|
void |
forceOutletOn(String name)
Forces an outlet to turn on.
|
Map<String,Boolean> |
getOutletOnStateMap()
Gets the map of outlet on states.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Initializes the device.
|
boolean |
isOutletOn(String name)
Gets whether an outlet is on.
|
void |
outletOff(String name)
Turns an outlet off.
|
void |
outletOn(String name)
Turns an outlet on.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
disable, enable, getOutletNames, initChanneladdChannel, addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, dropChannel, getFullName, getName, getOutputLines, init, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannelGroup, readChannelNow, readSensors, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected void initDevice()
initDevice in class APC7900Deviceprotected void initialize()
initialize in class APC7900Deviceprotected void close()
close in class APC7900Deviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class APC7900Devicename - 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 APC7900DevicehwChan - The hardware channel numbertype - The encoded channel type@Command(name="getOutletOnStateMap",
description="Get the map of outlet on states")
public Map<String,Boolean> getOutletOnStateMap()
throws org.lsst.ccs.drivers.commons.DriverException
getOutletOnStateMap in class APC7900Deviceorg.lsst.ccs.drivers.commons.DriverException@Command(name="outletOn",
description="Turn outlet on")
public void outletOn(@Argument(name="name",description="Outlet name")
String name)
throws org.lsst.ccs.drivers.commons.DriverException
outletOn in class APC7900Devicename - The outlet nameorg.lsst.ccs.drivers.commons.DriverException@Command(name="outletOff",
description="Turn outlet off")
public void outletOff(@Argument(name="name",description="Outlet name")
String name)
throws org.lsst.ccs.drivers.commons.DriverException
outletOff in class APC7900Devicename - The outlet nameorg.lsst.ccs.drivers.commons.DriverException@Command(name="forceOutletOn",
description="Force outlet to turn on")
public void forceOutletOn(@Argument(name="name",description="Outlet name")
String name)
throws org.lsst.ccs.drivers.commons.DriverException
forceOutletOn in class APC7900Devicename - The outlet nameorg.lsst.ccs.drivers.commons.DriverException@Command(name="forceOutletOff",
description="Force outlet to turn off")
public void forceOutletOff(@Argument(name="name",description="Outlet name")
String name)
throws org.lsst.ccs.drivers.commons.DriverException
forceOutletOff in class APC7900Devicename - The outlet nameorg.lsst.ccs.drivers.commons.DriverException@Command(name="isOutletOn",
description="Get whether outlet is on")
public boolean isOutletOn(@Argument(name="name",description="Outlet name")
String name)
throws org.lsst.ccs.drivers.commons.DriverException
isOutletOn in class APC7900Devicename - The outlet nameorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.