RandomMoveInGrid/howTo-AddParameter.txt --------------------------------------- In Model.java : 0. Add an instance variable (IV) of the appropriate type. Here we'll name it parK . 1. Add getter/setter for parK . 2. Add a line to addModelSpecificParameters() which gives an alias, and then the instance variable name. parametersMap.put( "pK", "parK" ); Make sure there is not already a built-in or added parameter with either the name or alias. 3. Add a string with the IV name to the array in getInitParam () 4. In setup(), assign it a default value. 5. Add a note about the new parameter in printProjectHelp() 6. Now compile and run the model, e.g, bin/batchrun.sh -h See that it is listed with the proper name, alias and default value. Run like bin/guirun.sh and see if it appears in the Parameters panel with your default value. Change the value via the panel, or on the run command line. Check the report file at the top to be sure it is there with the appropriate value. 7. Now you can use it! ----------- Note: For other models in the Demos-3 series, you can do the same thing, though the "Model" class may have other names, related to the particular model/program. In any case, you want to modify the file with the class that extends ModelParameters.java .