Class ParserServiceImpl

java.lang.Object
org.eclipse.scanning.command.ParserServiceImpl
All Implemented Interfaces:
IParserService

public class ParserServiceImpl extends Object implements IParserService
  • Constructor Details

    • ParserServiceImpl

      public ParserServiceImpl()
  • Method Details

    • createParser

      public <T> IParserResult<T> createParser(String scan) throws ParsingException
      Description copied from interface: IParserService
      Create 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:
      createParser in interface IParserService
      Parameters:
      scan -
      Returns:
      Throws:
      ParsingException
    • getPointGeneratorService

      public static IPointGeneratorService getPointGeneratorService()
    • setPointGeneratorService

      public void setPointGeneratorService(IPointGeneratorService pointGeneratorService)