
public class RaftsMain
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.framework.HardwareController
| Constructor and Description |
|---|
RaftsMain()
No-argument constructor.
|
RaftsMain(String name,
int tickMillis,
int monMillis)
Constructor.
|
RaftsMain(String name,
int tickMillis,
int monMillis,
org.lsst.ccs.drivers.reb.ClientFactory clientFactory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acquireImage()
Starts image acquisition.
|
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 |
setTickMillis(int value)
Sets the tick period.
|
void |
tick()
Performs periodic trending 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 RaftsMain()
public RaftsMain(String name, int tickMillis, int monMillis)
name - The subsystem name.tickMillis - The tick period (ms).monMillis - The monitor period (ms).public RaftsMain(String name, int tickMillis, int monMillis, org.lsst.ccs.drivers.reb.ClientFactory clientFactory)
name - The subsystem name.tickMillis - The tick period (ms).monMillis - The monitor period (ms).clientFactory - The client factory that can be used to provide
simulated versions of the DAQ.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(@Argument(name="value",description="The tick period (ms)") 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=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=ACTION, description="Start image acquisition") public void acquireImage() throws Exception
Exception@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 © 2016 LSST. All rights reserved.