Class ScanRequest
java.lang.Object
org.eclipse.scanning.api.event.scan.ScanRequest
- All Implemented Interfaces:
Serializable
A class to encapsulate minimal information required to run a scan.
For instance the JSON string of this class could be used on B23
The class automatically assigns a unique id for the run.
NB. A ScanRequest is passed to some beamline scripts (for example the I14 XANES script), so changes to the public methods should be kept to a minimum. If changes are made, the beamline should be informed.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScanRequest(IScanPointGeneratorModel m, IROI region, String filePath, List<String> monitorNamesPerPoint, List<String> monitorNamesPerScan) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddScanMetadata(ScanMetadata scanMetadata) booleaninthashCode()booleanbooleanvoidputDetector(String name, IDetectorModel dmodel) voidsetAfterScript(ScriptRequest afterScript) voidsetAlwaysRunAfterScript(boolean alwaysRunAfterScript) voidsetBeforeScript(ScriptRequest before) voidsetCompoundModel(CompoundModel model) voidsetDetectors(Map<String, IDetectorModel> detectors) voidvoidsetFilePath(String filePath) voidsetIgnorePreprocess(boolean ignorePreprocess) voidsetMonitorNamesPerPoint(Collection<String> monitorNames) voidsetMonitorNamesPerScan(Collection<String> monitorNames) voidsetProcessingRequest(ProcessingRequest processingRequest) voidsetScanMetadata(List<ScanMetadata> scanMetadata) voidsetStartPosition(IPosition startPosition) voidsetTemplateFilePaths(Set<String> templateFilePaths) toString()
-
Constructor Details
-
ScanRequest
public ScanRequest() -
ScanRequest
-
-
Method Details
-
getProcessingRequest
-
setProcessingRequest
-
getMonitorNamesPerPoint
-
setMonitorNamesPerPoint
-
getMonitorNamesPerScan
-
setMonitorNamesPerScan
-
getFilePath
-
setFilePath
-
getTemplateFilePaths
-
setTemplateFilePaths
-
hashCode
public int hashCode() -
equals
-
toString
-
getDetectors
-
setDetectors
-
putDetector
-
getStartPosition
-
setStartPosition
-
getEndPosition
-
setEnd
-
isIgnorePreprocess
public boolean isIgnorePreprocess() -
setIgnorePreprocess
public void setIgnorePreprocess(boolean ignorePreprocess) -
getBeforeScript
-
setBeforeScript
-
getAfterScript
-
setAfterScript
-
getScanMetadata
-
setScanMetadata
-
addScanMetadata
-
getCompoundModel
-
setCompoundModel
-
isAlwaysRunAfterScript
public boolean isAlwaysRunAfterScript() -
setAlwaysRunAfterScript
public void setAlwaysRunAfterScript(boolean alwaysRunAfterScript)
-