Run-Time Prompt
If an assignment for a dynamic attribute cannot be found anywhere in the environment, the program prompts for a value. This feature is especially useful in simulations, when unassigned object attributes are automatically promoted to dynamic attributes, thus giving the simulation a “run-time” parameterization capability. An example of a run-time prompt is shown below.
Figure 11: Run-Time Prompt
-------------------- Unset Environment Attribute ---------------------
* lan0.e0.bus_tx[0].data rate: <double>
* Desc:
* Press <return> to select default: 10,000,000
Enter value> 100000000
----------------------------------------------------------------------
To set a specific value for a prompted attribute, type a value and press the <Return> key. Pressing the <Return> key without entering a value forces the program to assign the default value to the attribute. Typing the special keyword noprompt restricts any further prompting for dynamic attributes. Do not confuse the noprompt keyword with the standard preference of the same name, which has the same purpose but is implemented differently.
When running a simulation from the GUI, opnet presents a dialog box that prompts for any unset attributes of the simulation. See “Pauses for Prompting” on page 406 for more information.
A dynamic attribute might expect a list value. One or more values can be entered consecutively; separate values are delimited by commas. List value entry is also terminated by pressing the <Return> key, as shown in Figure 12.
Figure 12: Setting Dynamic Preferences
-------------------- Unset Environment Attribute ---------------------
* top.m1.src.interarrival args: <arg. list>
* Desc:
* Press <return> to select default: 1.0
Enter value> 2.3, 4.818
----------------------------------------------------------------------