
public class VerticalSliceTest
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.framework.HardwareController
| Constructor and Description |
|---|
VerticalSliceTest(String name,
int tickMillis,
String configName)
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.
|
Map<String,Object> |
getConfigValues()
Gets the list of configured values from all devices.
|
List<Integer> |
getDataSource()
Gets the data sources.
|
List<String> |
getDevices()
Gets the list of all device names.
|
VSTFullState |
getFullState()
Gets the full state of the vertical slice test module.
|
ImageData |
getImage(String fileName,
int offset,
int count)
Gets a portion of a saved raw image.
|
List<String> |
getREBDevices()
Gets the list of REB device names.
|
List |
getTime()
Gets all time base values.
|
Map<String,Long> |
getTimes()
Gets all time base values.
|
void |
initModule()
Initializes the VST subsystem.
|
List<Integer> |
loadSequencer(List<int[]> seqInst)
Loads all sequencers from an object.
|
List<Integer> |
loadSequencerFile(String fileName)
Loads all sequencers from a file.
|
void |
saveConfiguration()
Saves the configuration data.
|
List<String> |
saveFitsImage(String dName)
Saves the current image data as one or more FITS files.
|
List<String> |
saveImage(String dName)
Saves the current image data as one or more sets of raw bytes.
|
void |
sendStep()
Sends a sequencer step command.
|
void |
sendStop()
Sends a sequencer stop command.
|
void |
setDataSource(int value)
Sets the data sources.
|
void |
setTickMillis(int value)
Sets the tick period.
|
void |
setTime()
Sets the time base to the current system time.
|
void |
startSequencer()
Starts the sequencers.
|
void |
startTicking()
Starts the subsystem.
|
void |
tick()
Performs periodic trending data broadcast.
|
alias, getComponentDictionariesTree, getComponentTree, getContext, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, sendSignal, sendSignal, sendSignalWithTimeLimit, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, shutdownNow, signal, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, start, treeWalkpublic 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 startTicking()
startTicking in class org.lsst.ccs.framework.Modulepublic void tick()
tick in class org.lsst.ccs.framework.Module@Command(type=ACTION, description="Sets 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="Saves the current configuration") public void saveConfiguration() throws IOException
IOException@Command(type=QUERY, description="Gets the full VST module state") public VSTFullState getFullState()
@Command(type=ACTION, description="Sets the REBs\' system time") public void setTime() throws Exception
Exception@Command(type=QUERY, description="Gets the REBs\' system times") public Map<String,Long> getTimes() throws Exception
Exception@Command(type=QUERY, description="Gets the REBs\' system times") public List getTime() throws Exception
Exception@Command(type=QUERY, description="Gets the list of all devices") public List<String> getDevices()
@Command(type=QUERY, description="Gets the list of REB devices") public List<String> getREBDevices()
@Command(type=QUERY, description="Gets the list of all configured values") public Map<String,Object> getConfigValues()
@Command(type=ACTION, description="Loads all sequencers from a file") public List<Integer> loadSequencerFile(@Argument(name="filename",description="Sequencer file name") String fileName) throws Exception, IOException
fileName - The name of the file containing sequencer
instructionsExceptionIOException@Command(type=ACTION, description="Loads all sequencers from an object") public List<Integer> loadSequencer(@Argument(name="seqinst",description="Sequencer instructions") List<int[]> seqInst) throws Exception
seqInst - The sequencer instructions to be loadedException@Command(type=QUERY, description="Gets the data source") public List<Integer> getDataSource() throws Exception
Exception@Command(type=ACTION, description="Sets the data sources") public void setDataSource(@Argument(name="value",description="The data source value") int value) throws Exception
value - The encoded data source: CCD or simulationException@Command(type=ACTION, description="Starts the sequencers") public void startSequencer() throws Exception
Exception@Command(type=ACTION, description="Sends a sequencer stop command") public void sendStop() throws Exception
Exception@Command(type=ACTION, description="Sends a sequencer step command") public void sendStep() throws Exception
Exception@Command(type=ACTION, description="Saves the current image as raw bytes") public List<String> saveImage(@Argument(name="dirname",description="The directory to use") String dName) throws VSTException, IOException
dName - The name of the directory where the image file is to
saved.VSTExceptionIOException@Command(type=ACTION, description="Saves the current image as a FITS file") public List<String> saveFitsImage(@Argument(name="dirname",description="The directory to use") String dName) throws IOException, VSTException
dName - The name of the directory where the FITS file is to be
saved.VSTExceptionIOException@Command(type=QUERY, description="Gets a portion of a saved raw image") public ImageData getImage(String fileName, int offset, int count) throws VSTException, 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.VSTExceptionIOExceptionCopyright © 2015 LSST. All rights reserved.