
public class MainPower extends Object implements org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
static String |
BROADCAST_TASK |
| Constructor and Description |
|---|
MainPower() |
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Power subsystem initialization
|
PowerState |
getFullState()
Gets the full power state.
|
Power[] |
getPowerConfig()
Gets the configuration data.
|
List<PowerChanState> |
getPowerState()
Gets the power state.
|
void |
periodicBroadcast()
Performs periodic power data broadcast.
|
void |
postInit()
Power subsystem post-initialization
|
void |
postStart()
Starts the subsystem.
|
void |
powerOff()
Turns off the power.
|
void |
powerOn()
Turns on the power.
|
void |
saveNamedConfig(String name)
Saves the configuration data.
|
void |
setPowerConfig(Power[] power)
Sets the configuration data.
|
void |
setUpdatePeriod(int period)
Sets the update (tick) period.
|
public static final String BROADCAST_TASK
public void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecyclepublic void postStart()
postStart in interface org.lsst.ccs.framework.HasLifecyclepublic void periodicBroadcast()
@Command(type=ACTION, description="Set the update period") public void setUpdatePeriod(int period)
period - The update period (milliseconds) to set.@Command(type=ACTION, description="Save the current configuration") public void saveNamedConfig(String name) throws IOException
name - The configuration nameIOException@Command(type=QUERY, description="Get the configuration data") public Power[] getPowerConfig()
@Command(type=ACTION, description="Set the configuration data") public void setPowerConfig(Power[] power) throws Exception
power - The array of power configuration objectsException@Command(type=QUERY, description="Get the power state") public List<PowerChanState> getPowerState() throws Exception
Exception@Command(type=ACTION, description="Turn on the power") public void powerOn() throws Exception
Exception@Command(type=ACTION, description="Turn off the power") public void powerOff() throws Exception
Exception@Command(type=QUERY, description="Get the full state") public PowerState getFullState() throws Exception
ExceptionCopyright © 2020 LSST. All rights reserved.