
public class VSTPower
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.framework.HardwareController
| Constructor and Description |
|---|
VSTPower(String name,
int tickMillis,
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.
|
Power[] |
getPowerConfig()
Gets the configuration data.
|
List<PowerState> |
getPowerState()
Gets the power state.
|
void |
initModule()
Initializes the power subsystem.
|
void |
powerOff()
Turns off the power.
|
void |
powerOn()
Turns on the power.
|
void |
saveConfiguration()
Saves the configuration data.
|
void |
setPowerConfig(Power[] power)
Sets the configuration data.
|
void |
setTickMillis(int value)
Sets the tick period.
|
void |
stop()
Terminates the program.
|
void |
tick()
Performs periodic power data broadcast.
|
alias, getComponentDictionariesTree, getComponentTree, getContext, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, sendSignal, sendSignal, sendSignalWithTimeLimit, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, shutdownNow, signal, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, start, treeWalkpublic 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 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 saveConfiguration() 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
Exception@Command(type=QUERY, description="Get the power state") public List<PowerState> 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=ACTION, description="Terminate the program") public void stop()
Copyright © 2015 LSST. All rights reserved.