Class ParameterLineParser


  • public class ParameterLineParser
    extends Object
    Parses a batch parameter line and into a Parameters object.
    Author:
    Nick Collier
    • Constructor Detail

      • ParameterLineParser

        public ParameterLineParser​(URI batchParamsFile)
                            throws IOException
        Creates a ParameterLineParser for parsing parameter lines produced from the specified parameters file. The file is used as a schema for creating the parameters.
        Parameters:
        batchParamsFile -
        Throws:
        IOException
    • Method Detail

      • parse

        public Parameters parse​(String line)
        Parses the parameters line and returns a Parameters object initialized with those parameters. The line has the format R\tP1\tV1,P2\tV2,P3\tV3,... R is the run number followed by a tab. P* and V* is a parameter name and value pair which are separated from each other by a tab and from other PV pairs by a comma delimeter. The run number will be a parameter with the name BatchConstants.BATCH_RUN_PARAM_NAME and of the Integer type.
        Parameters:
        line -
        Returns:
        the initialiazed Parameters object