
public class RaftsMain
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.framework.HardwareController
| Constructor and Description |
|---|
RaftsMain() |
| 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.
|
RaftFullState |
getFullState()
Gets the full state of the rafts module.
|
static ImageData |
getImage(String fileName,
int offset,
int count)
Gets a portion of a saved raw image.
|
void |
initModule()
Initializes the rafts subsystem.
|
void |
loadNamedConfig(String name)
Loads a named rafts configuration.
|
void |
postStart()
Starts the subsystem.
|
void |
saveNamedConfig(String name)
Saves a named rafts configuration.
|
void |
setUpdatePeriod(int value)
Sets the update period.
|
void |
tick()
Performs periodic trending 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 interval") public void setUpdatePeriod(@Argument(name="value",description="The tick period (ms)") int value)
value - 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=ACTION, description="Load a named rafts configuration") public void loadNamedConfig(String name) throws IOException
name - The configuration nameIOException@Command(type=QUERY, description="Get the full Raft module state") public RaftFullState getFullState()
@Command(type=QUERY, description="Get a portion of a saved raw image") public static ImageData getImage(@Argument(name="filename",description="The image file name") String fileName, @Argument(name="offset",description="The offset to the first pixel") int offset, @Argument(name="count",description="The number of pixels to get") int count) throws RaftException, IOException
fileName - The name of the file containing the imageoffset - The offset (in pixels) to the first pixel data to
obtain.count - The number of data pixels to obtain.RaftExceptionIOExceptionCopyright © 2017 LSST. All rights reserved.