Annotation Interface Param
Marks a field of a simulation model as a setting: the HTML export shows it as
a control (a slider with min and max, else a number field, a checkbox for a
boolean, a choice with options, else a text field). The value is read again
at every step (live) or, with restart = true, at the next setup. Settings
with the same group are shown below a heading.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe group of the setting: a heading above the settings of the group (empty: no heading).The label (default: the name of the field).doubleThe maximum of a slider.doubleThe minimum of a slider (min and max both set: a slider).String[]The options of a String field (a choice).booleantrue: a change restarts the simulation (setup) instead of a live change.doubleThe step of a slider (default: 1 for int fields, (max - min) / 100 else).
-
Element Details
-
label
-
min
double minThe minimum of a slider (min and max both set: a slider).- Default:
0.0/0.0
-
max
double maxThe maximum of a slider.- Default:
0.0/0.0
-
step
double stepThe step of a slider (default: 1 for int fields, (max - min) / 100 else).- Default:
0.0/0.0
-
options
-
restart
boolean restarttrue: a change restarts the simulation (setup) instead of a live change.- Default:
false
-
group
String groupThe group of the setting: a heading above the settings of the group (empty: no heading).- Default:
""
-