Introduction  Appetizer  Examples  Documentation  Applications  Work plan

 


Parameters


The use of this tool is illustrated in the example Dots.

The configuration panel of PARAMETERS may have as many lines as the user desires. Each line defines a parameter and looks like this:

v=50:incr=0.1:decimals=2:min=-100:max=100:name='speed'

where v may be substituted by any word and, of course, the assigned values may be any others. Each parameter has four related numbers:

incr  is the amount v is changes with every click on the arrows of its spinner control.
min    is the minimum value allowed for v.
max    is the maximum value allowed for v.
decimals is the number of digits, after the decimal point, used to represent v.

name is the external name of the parameter, that is, the name that appears next to the spinner that controls the parameter values. By default it coincides with the internal name. In this case, if no string was assigned to name on the configuration line of v, then the external name of v would also be v.

In order to assign the values -infinity to min or +infinity to max it suffices to eliminate the statement which assigns values to min and max so the default values are adopted. If the user wants the parameter v to have a fixed value, he or she must assign the same value to v, min and max.

The default values of the numbers related to a parameter v are:

v=0:incr=0.1:min=-infinity:max=+infinity:decimals=2:name='v'

The reader is invited to verify the values assigned to the parameters a, b and x0 and to its related numbers in the following applet. The reader should check that the extreme values for a are 0 and 2, and that b can't change its value. Try also some changes on the configuration of the parameters changing their related numbers and verify the results.

Look at CONTROLS to see an example where the external name of a parameter differs from the internal name.


Introduction  Appetizer  Examples  Documentation  Applications  Work plan

 
Ministerio de Educación, Cultura y Deporte. Aņo 2000