
public class MainPower
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.framework.HardwareController
| Constructor and Description |
|---|
MainPower() |
| Modifier and Type | Method and Description |
|---|---|
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware()
Initializes the hardware.
|
void |
checkStarted()
Checks whether hardware is started.
|
void |
checkStopped()
Checks whether hardware is stopped.
|
PowerFullState |
getFullState()
Gets the full power state.
|
Power[] |
getPowerConfig()
Gets the configuration data.
|
List<PowerChanState> |
getPowerState()
Gets the power state.
|
void |
initModule()
Initializes the power subsystem.
|
void |
postStart()
Starts the subsystem.
|
void |
powerOff()
Turns off the power.
|
void |
powerOn()
Turns on the power.
|
void |
quit()
Terminates the program.
|
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.
|
void |
tick()
Performs periodic power data broadcast.
|
getNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, submitChange, submitChanges, validateBulkChangepublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic org.lsst.ccs.framework.TreeWalkerDiag checkHardware()
checkHardware in interface org.lsst.ccs.framework.HardwareControllerpublic void checkStarted()
checkStarted in interface org.lsst.ccs.framework.HardwareControllerpublic void checkStopped()
checkStopped in interface org.lsst.ccs.framework.HardwareControllerpublic void postStart()
throws org.lsst.ccs.HardwareException
postStart in interface org.lsst.ccs.framework.HasLifecycleorg.lsst.ccs.HardwareExceptionpublic void tick()
tick in class org.lsst.ccs.framework.Module@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 PowerFullState getFullState() throws Exception
Exception@Command(type=ACTION, description="Terminate the program") public void quit()
Copyright © 2017 LSST. All rights reserved.