Class ExamplePreprocessor
java.lang.Object
org.eclipse.scanning.example.preprocess.ExamplePreprocessor
- All Implemented Interfaces:
IPreprocessor
A preprocessor which overwrites the stage names with 'xfred' and 'yfred' in various models.
We are just doing various example things here to the request without purpose. Your implementation
should ensure that the correct models for scan path and for detector are defined. For instance a
GridModel might be replaced with a malcolm detector model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Preprocessor name.preprocess(ScanRequest req) Runs the preprocessor on the givenScanRequest.
-
Constructor Details
-
ExamplePreprocessor
public ExamplePreprocessor()
-
-
Method Details
-
getName
Description copied from interface:IPreprocessorPreprocessor name.- Specified by:
getNamein interfaceIPreprocessor- Returns:
- name
-
preprocess
Description copied from interface:IPreprocessorRuns the preprocessor on the givenScanRequest. This may modify theScanRequestin place or return an entirely newScanRequestobject.- Specified by:
preprocessin interfaceIPreprocessor- Parameters:
req- The request sent by the user interface- Returns:
- the processed
ScanRequest - Throws:
ProcessingException
-