Package org.eclipse.scanning.command
Class ParserServiceImpl
java.lang.Object
org.eclipse.scanning.command.ParserServiceImpl
- All Implemented Interfaces:
IParserService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> IParserResult<T> createParser(String scan) Create a parser for a give scan, optionally parametixing the model returned.static IPointGeneratorServicevoidsetPointGeneratorService(IPointGeneratorService pointGeneratorService)
-
Constructor Details
-
ParserServiceImpl
public ParserServiceImpl()
-
-
Method Details
-
createParser
Description copied from interface:IParserServiceCreate a parser for a give scan, optionally parametixing the model returned. Some scans will consist of multiple models, for instance a Compound generator scan like "scan dcm 1 5 1 spiral(loops=720,expand%=10,rot=ccw,start=perip) detector 0.1" will generate different models for dcm and spiral. In this case the model for the position generation is undefined. Therefore the parser would simply be: IParserResultinvalid input: '<'?> parser = pservice.createParser("scan dcm 1 5 1 spiral(loops=720,expand%=10,rot=ccw,start=perip) detector 0.1"); Object xmodel = parser.getModel("dcm"); Object smodel = parser.getModel("spiral");- Specified by:
createParserin interfaceIParserService- Parameters:
scan-- Returns:
- Throws:
ParsingException
-
getPointGeneratorService
-
setPointGeneratorService
-