
public class RaftsMain extends Object implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.framework.HardwareController
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,REBDevice> |
rebDevicesMap |
| Constructor and Description |
|---|
RaftsMain() |
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware()
Initializes the hardware.
|
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 |
loadNamedConfig(String name)
Loads a named rafts configuration.
|
void |
postInit()
Initializes the rafts subsystem.
|
void |
postStart()
Starts the subsystem.
|
void |
saveNamedConfig(String name)
Saves a named rafts configuration.
|
void |
setUpdatePeriod(int value)
Sets the update period.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecyclepublic org.lsst.ccs.framework.TreeWalkerDiag checkHardware()
checkHardware in interface org.lsst.ccs.framework.HardwareControllerpublic void postStart()
postStart in interface org.lsst.ccs.framework.HasLifecycle@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 © 2018 LSST. All rights reserved.