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)
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 |
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 |
setTickMillis(int value)
Sets the tick period.
|
void |
tick()
Performs periodic power data broadcast.
|
getComponentTree, getEnvironment, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, shutdownNow, signal, startTicking, 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 MainPower(String name, int tickMillis, int monMillis)
name - The subsystem name.tickMillis - The tick period (ms).monMillis - The monitor period (ms).public 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.ConfigurablepostStart in class org.lsst.ccs.framework.Moduleorg.lsst.ccs.HardwareExceptionpublic 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 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 © 2016 LSST. All rights reserved.