public class PowerGroup extends Object
| Constructor and Description |
|---|
PowerGroup(PowerControl... controls)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addControl(PowerControl control)
Add a control channel to the group.
|
List<PowerChanState> |
getPowerState()
Gets the list of power state data.
|
void |
powerOff()
Powers off all channels.
|
void |
powerOn()
Powers on all channels.
|
void |
waitPowerOff(int timeout)
Waits for power-off to complete.
|
void |
waitPowerOn(int timeout)
Waits for power-on to complete.
|
public static final Logger LOG
public PowerGroup(PowerControl... controls)
controls - The members of the grouppublic void addControl(PowerControl control)
control - The control to addpublic List<PowerChanState> getPowerState()
public void powerOn()
throws PowerException
PowerExceptionpublic void waitPowerOn(int timeout)
throws PowerException
timeout - The timeout period (ms)PowerExceptionpublic void powerOff()
throws PowerException
PowerExceptionpublic void waitPowerOff(int timeout)
throws PowerException
timeout - The timeout period (ms)PowerExceptionCopyright © 2023 LSST. All rights reserved.