
public class MainPower
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.framework.HardwareController
| Constructor and Description |
|---|
MainPower(String name,
int tickMillis,
int monMillis,
String configName)
Main constructor.
|
| 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 |
powerOff()
Turns off the power.
|
void |
powerOn()
Turns on the power.
|
void |
quit()
Terminates the program.
|
void |
saveConfig()
Saves the configuration data.
|
void |
setPowerConfig(Power[] power)
Sets the configuration data.
|
void |
setTickMillis(int value)
Sets the tick period.
|
void |
startTicking()
Starts the subsystem.
|
void |
tick()
Performs periodic power data broadcast.
|
getComponentTree, getEnvironment, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, shutdownNow, signal, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getCheckedValueFromConfiguration, getChildren, getComponentByName, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, notifyChange, notifyChangeWithoutPreliminaryChecks, printConfigurableParameters, setBulkParameter, start, 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 startTicking()
startTicking in class org.lsst.ccs.framework.Modulepublic void tick()
tick in class org.lsst.ccs.framework.Module@Command(type=ACTION, description="Set the tick interval") public void setTickMillis(int value)
setTickMillis in class org.lsst.ccs.framework.Modulevalue - The tick period (milliseconds) to set.@Command(type=ACTION, description="Save the current configuration") public void saveConfig() throws IOException
IOException@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 © 2016 LSST. All rights reserved.