public class QuadBox
extends org.lsst.ccs.Subsystem
implements org.lsst.ccs.framework.HasLifecycle
| Constructor and Description |
|---|
QuadBox()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Subsystem initialization.
|
QuadBoxState |
getFullState()
Gets the full quad box state.
|
List<String> |
getSwitchNames()
Gets the list of switch names.
|
void |
periodicBroadcast()
Performs periodic power data broadcast.
|
void |
postInit()
Subsystem post-initialization
|
void |
postStart()
Starts the subsystem.
|
void |
setNamedSwitchOn(String name,
boolean on)
Turns a named switch on or off.
|
void |
setSwitchOn(int sw,
boolean on)
Turns a switch on or off.
|
void |
setUpdatePeriod(int period)
Sets the update (tick) period.
|
getLogHandler, getNumberCommandThreads, ping, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepth, switchToEngineeringMode, switchToNormalModeaddCommandSet, addCommandsFromObject, addStateChangeListener, broadcastStatus, checkAllHardwareStopped, createHelper, executeCommandRequest, getAgentInfo, getAgentLockService, getAgentPeriodicTaskService, getAgentPersistenceService, getAgentService, getAgentServices, getAgentStatusAggregatorService, getAlertService, getCCSVersions, getCommandCount, getCommandSet, getCommandTargets, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getConfigurationService, getCurrentAction, getDataProviderDictionaryService, getDescription, getDictionaries, getDistributionInfo, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getMonitor, getName, getScheduler, getState, getState, getStatusBroadcastPeriod, helper, internalCheckHardware, isConnectedToTheBuses, isInEngineeringMode, isInState, isInState, populateComponentLookup, preBuild, preInit, printComponentNodeTree, publishSubsystemDataOnStatusBus, removeStateChangeListener, sendAck, sendNack, setAgentName, setAgentProperty, shutdownAgent, startAgent, startAgent, updateAgentComponentState, updateAgentState, updateAgentState, updateHeartBeat, waitForclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic 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="Turn on/off a switch")
public void setSwitchOn(@Argument(description="The switch number")
int sw,
@Argument(description="Whether to turn on")
boolean on)
throws PowerException
sw - The switch number.on - Whether to turn on or offPowerException@Command(type=ACTION,
description="Turn on/off a named switch")
public void setNamedSwitchOn(@Argument(description="The switch name")
String name,
@Argument(description="Whether to turn on")
boolean on)
throws PowerException
name - The switch name.on - Whether to turn on or offPowerException@Command(type=QUERY,
description="Get list of switch names")
public List<String> getSwitchNames()
@Command(type=ACTION,
description="Set the update period")
public void setUpdatePeriod(@Argument(name="period",description="The tick period (msecs)")
int period)
period - The update period (milliseconds) to set.@Command(type=QUERY,
description="Get the full state")
public QuadBoxState getFullState()
throws PowerException
PowerExceptionCopyright © 2019 LSST. All rights reserved.