
public class RaftsMain extends Object implements org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,REBDevice> |
rebDevicesMap |
| Constructor and Description |
|---|
RaftsMain() |
| Modifier and Type | Method and Description |
|---|---|
RaftState |
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 |
postBuild() |
void |
postInit()
Initializes the rafts subsystem.
|
void |
postStart()
Starts the subsystem.
|
void |
saveNamedConfig(String name)
Saves a named rafts configuration.
|
void |
setCcdType(org.lsst.ccs.utilities.ccd.CCDType type)
Sets the CCD type
|
void |
setUpdatePeriod(int value)
Sets the update period.
|
public void postBuild()
postBuild in interface org.lsst.ccs.framework.HasLifecyclepublic void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecyclepublic void postStart()
postStart in interface org.lsst.ccs.framework.HasLifecycle@ConfigurationParameterChanger public void setCcdType(org.lsst.ccs.utilities.ccd.CCDType type)
type - The enumerated CCD type@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 RaftState 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 © 2020 LSST. All rights reserved.