public class MainPower
extends org.lsst.ccs.Subsystem
implements org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
static String |
BROADCAST_TASK |
| Constructor and Description |
|---|
MainPower()
Constructor
|
| 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.
|
getLogHandler, getLogHandlerLevel, getLogLevel, getNumberCommandThreads, isLogLevelInherited, ping, printLoggersLevel, printLogHandlersLevel, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepthcreateHelper, executeCommandRequest, getAgentInfo, getAgentPersistenceService, getAgentService, getAgentServices, getCommandCount, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getCurrentAction, getDescription, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getName, getScheduler, helper, initAgent, initLogBusHandler, isInEngineeringMode, populateComponentLookup, preInit, preStart, printComponentNodeTree, publishMonitoringDataOnStatusBus, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, shutdownAgent, startAgent, vetoTransitionToNormalModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic 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()
Copyright © 2024 LSST. All rights reserved.