
public class PowerDeviceGroup extends Object
| Constructor and Description |
|---|
PowerDeviceGroup(PowerDevice device)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Power |
getPowerConfig()
Gets the configuration data.
|
protected List<PowerChanState> |
getPowerState()
Gets the list of power state data.
|
protected void |
powerOff()
Powers off all channels.
|
protected void |
powerOn()
Powers on all channels.
|
void |
setPowerConfig(Power power)
Sets the configuration data.
|
protected void |
waitPowerOff(int timeout)
Waits for power-off to complete.
|
protected void |
waitPowerOn(int timeout)
Waits for power-on to complete.
|
public PowerDeviceGroup(PowerDevice device)
device - The power device to usepublic Power getPowerConfig()
public void setPowerConfig(Power power) throws PowerException
power - A power configuration objectPowerExceptionprotected List<PowerChanState> getPowerState()
protected void powerOn()
throws PowerException
PowerExceptionprotected void waitPowerOn(int timeout)
throws PowerException
timeout - The timeout period (ms)PowerExceptionprotected void powerOff()
throws PowerException
PowerExceptionprotected void waitPowerOff(int timeout)
throws PowerException
timeout - The timeout period (ms)PowerExceptionCopyright © 2020 LSST. All rights reserved.