src/ParameterSetListMaker.java
/**
     * Parses a recipe containing a start value, number of values and increment
     * for values of a parameter all values must be type integer adds each
     * parameter to a list of parameters called by constructor
     *
     * @param key the parameter name (and key to corresponding map of default
     * recipes)
     * @param recipe the recipe to be parsed - must be of form
     * "integer",integer1, integer2,...
     * @param list the parameter list to be added to
     */
Parses a recipe containing a start value, number of values and increment
for values of a parameter all values must be type integer adds each
parameter to a list of parameters called by constructor

@param key the parameter name (and key to corresponding map of default
recipes)
@param recipe the recipe to be parsed - must be of form
"integer",integer1, integer2,
@param list the parameter list to be added to
Parses a recipe containing a start value number of values and increment for values of a parameter all values must be type integer adds each parameter to a list of parameters called by constructor @param key the parameter name ( and key to corresponding map of default recipes ) @param recipe the recipe to be parsed - must be of form " integer " integer1 integer2 @param list the parameter list to be added to
private void parseRecipeInteger(String recipe, List<Integer> list) {
        String[] tempArray = recipe.split(",");
        if (tempArray[0].equals("int")) {
            int start = Integer.parseInt(tempArray[1]);
            int number = Integer.parseInt(tempArray[2]);
            int increment = Integer.parseInt(tempArray[3]);
            for (int i = 0; i < number; i++) {
                list.add(start + i * increment);
            }
        } else {
            throw new IllegalArgumentException("parameter must be an int");
        }
    }
private void parseRecipeInteger ( String recipe , List < Integer > list ) { String [ ] tempArray = recipe . split ( "," ) ; if ( tempArray [ 0 ] . equals ( "int" ) ) { int start = Integer . parseInt ( tempArray [ 1 ] ) ; int number = Integer . parseInt ( tempArray [ 2 ] ) ; int increment = Integer . parseInt ( tempArray [ 3 ] ) ; for ( int i = 0 ; i < number ; i ++ ) { list . add ( start + i * increment ) ; } } else { throw new IllegalArgumentException ( "parameter must be an int" ) ; } }
Parses a recipe containing a start value, number of values and increment
 for values of a parameter all values must be type integer adds each
 parameter to a list of parameters called by constructor
Parses a recipe containing a start value number of values and increment for values of a parameter all values must be type integer adds each parameter to a list of parameters called by constructor