Professional Documents
Culture Documents
2 System Menus
This section describes the system menus. These are the menus that appear in
the system window, the window that opens when you start OPNET Modeler.
Most of the menus listed below also appear in all of the different editors that
compose OPNET Modeler. Further, most of the items in the menus perform
operations that are identical, or similar, in the different editors.
• Edit Menu—contains operations that allow you to edit the preferences that
control program operation and to manipulate text and objects.
• Windows Menu—lists all open editor windows and allows you to make one
active.
Note—The editor menus on your machine may vary from those described here,
particularly if there has been any UI customization or use of ETS.
Because each editor uses different terminology for the kinds of entities it
creates, the names of some common operations vary between editors.
However, the effect of each operation is the same in all editors. For example,
the Open operation opens a project in the Project Editor and a probe file in the
Probe Editor, but the effect is the same—to read a saved item into the current
editor. For brevity, this section uses the following general terms:
• model represents any entity that can be written to or read from disk, such as
projects, analysis configurations, packet formats, and simulation sequences.
System Menus
The following sections list the operations available on each system menu.
• File Menu
• Edit Menu
• License Menu
• Windows Menu
• Help Menu
File Menu
The File menu contains operations that relate to high-level functions such as
opening and closing projects, saving scenarios, importing models, and printing
graphics and reports. The following table lists the operations that can appear in
this menu. Not all operations are available in every editor.
New… Creates a new file in the current editor. New… on page ER-2-25
Open… Opens an existing file in one of the available Open… on page ER-2-26
editors.
Save Saves the current project or file. When saving a Save on page ER-2-26
project, all scenarios within it are saved.
Save As… Saves the current project or file, allowing you to Save As… on page ER-2-26
change the name.
Print All Subnets… Prints the complete network model, both the Publishing Network
objects displayed in the active window and each Information on page MC-6-1
subnet.
Print Graphs… Opens the system print dialog for printing all open —
analysis panels.
Declare External Files Specifies external object files for use in Declare External Files on
simulations, such as those relied on by process page ER-2-24
models for global data or functions.
Automation >
Configure/Run Automation Tasks View, configure, and run automation tasks Configure/Run Automation
Tasks Dialog Box on
page AUG-2-7
Open Automation Log Manager View log files generated by automation task runs Automation Logs on
page AUG-3-3
Web - Open Report Server Home View reports stored on the report server specified —
by the report_server_name preference
Unlock Projects... Unlock a project that might be locked due to the Project Contention and
program exiting abnormally Locking on page AUG-2-13
Delete Model files… Deletes selected models from disk Delete Models on
page ER-2-24
Add to Model Directory Select a directory and add it to your list of model Add to Model Directories on
directories page ER-2-9
Refresh Model Directories Updates the list of available models Refresh Model Directories on
page ER-2-26
Expand Project File Archive Expands a project file archive into a specified Expanding Files from an
directory Archive on page ITG-3-124
Create Project File Archive… Creates a component file archive of the model files Create Project File Archive…
used by project scenarios on page ER-2-23
Compare Model Directories… Compares different versions of models and reports Comparing Models on
on any differences between the versions page ER-2-9
Convert XML Models to Binary Converts one or more model files from XML form to XML<=>Binary Model
Form… binary form Conversion on
page ER-2-27
Convert Binary Models to XML Converts one or more model files from binary form XML<=>Binary Model
Form… to XML form Conversion on
page ER-2-27
Declare Child Process Models Specifies which types of child processes a process Declare Child Process
may need to create during a simulation. Models on page ER-2-23
Open Child Process Model Displays a submenu listing the child process —
models attached to this process model.
Declare Packet Formats Specifies packet formats used by a process Declare Packet Formats on
models. page ER-2-24
Load Output Vector File… Specifies an output vector file to be used when Load Output Vector File on
viewing results. page ER-2-25
Export to Bitmap… Creates a bitmap image of a model. (Node and Publishing Network
Process Editors) Information on page MC-6-1
Generate Text Report Generates and prints a report describing all or Generate Text Report on
selected objects in the current editor. (Process page ER-2-25
Editor)
Edit Menu
The Edit menu contains operations that allow you to edit the preferences that
control program operation and to manipulate text and objects. The following
table lists the operations that can appear in this menu. Not all operations are
available in every editor.
Undo Reverses the previous operation. Applies only to adding Undo on page ER-2-52
objects or to moving, cutting, or pasting objects.
Cut Copies the selected objects to the clipboard and deletes them Cut on page ER-2-34
from the workspace. You can undo one cut operation.
Copy Copies the selected objects to the clipboard. Copy on page ER-2-34
Paste Pastes objects from the clipboard to a specified location in the Paste on page ER-2-36
workspace. You can undo one paste operation.
Clear Model Clears the current model from the editor window. Clear Model on page ER-2-33
Find Node/Link… Finds, selects, and scrolls the editor window to display a node Find Node/Link… on
based on a full or partial name. page ER-2-35
Select Objects… Automatically selects or deselects network objects based on Select Objects on
type, location in the network model, and attribute values. page ER-2-47
Save Object Selection Save the list of selected objects to a file Save Object Selection Set on
Set page ER-2-46
Load Object Selection Select objects by loading an object selection file Load Object Selection Set on
Set page ER-2-35
Edit Objects Using Generates an editable table of attribute values based on a Using the Attribute Template
Template user-defined attribute template Method on page ITG-3-84
Edit Attribute Template Edit a template used to generate user-defined reports and
editing multiple attributes on multiple objects
Open Edit Pad Opens an edit pad. Opening a Text Edit Pad on
page ER-1-16
Preferences Allows you to edit environment attributes for the program. Preferences on
page ER-2-37
License Menu
The License menu contains operations that allows you to open the License
Manager and manage the available product options. The following table lists
these operations. This menu is available only in the system window.
Windows Menu
The Windows menu options allow you to hide or show specific windows. When
you hide a window, the file is not closed or saved.
Hide This Editor Hides, but does not close or save, the current editor. —
Hide Other Editors Hides, but does not close or save, other editors. —
<editor type> Cascading menu lists all open editors of that type. Select the —
desired model to make the window active.
Help Menu
The Help menu provides access to the product documentation, tutorials, and
other sources of information. Not all operations are available in every editor.
What’s New in 16.1 Opens the release notes, which describes new features What’s New in 16.1 on
and changes in the current release. page ER-2-54
Essential Kernel Procedures Opens a quick reference guide to the most-used KPs. —
(Process Editor only)
All Kernel Procedures Opens help on all KPs (Process Editor only) —
Web – OPNET Home Opens your browser to the OPNET home page. —
Web – Support Center Opens your browser to the OPNET Support Center —
Web – Contributed Models Opens your browser to the Contributed Models Depot. —
Show All Logs… Opens the log viewer. Log Viewer on page ER-1-25
Open Opens an edit pad with the contents of the error log. Error Log on page ER-2-53
Open Opens an edit pad with the contents of the session log. Session Log on page ER-2-54
Generate Support Info… Creates an encrypted file that you can provide to —
technical support, when requested, for diagnostic use.
The file has a default extension of .info and can be
generated into a directory of your choosing.
About This Application Displays information about the program (including About This Application on
release number and available options) and the page ER-2-53
workstation environment.
Comparing Models
Model comparison lets you compare different versions of a specific model or
group of models and see what differences exist between versions. For example,
you can compare a new version of a standard model with a customized copy of
the previous version to estimate how much work is required to carry the
customization forward to the new version.
• Process models
• Node, link, path, demand, and wireless domain models (base and derived)
• Packet formats
• ICIs
The model versions to be compared are located in two sets of one or more
directories known as the From and To directories. The model version found in
the From directories is considered the baseline for the comparison. Differences
in the model version from the To directories are reported relative to this
baseline. You can identify the two versions being compared by associating
descriptions with the From and To directories. The directory sets and version
descriptions are saved in preferences (see Preferences for Model Comparison
on page ER-2-19).
Each model comparison run creates a summary file plus one file for each model
that was compared. As a result, the output requires approximately as much
storage space as the models being compared. The output is placed in the
<user_home>\op_admin\tmp directory. HTML reports, if generated, are
saved in <user_home>\op_reports.
Related Topics
2 Enter a textual description for the Compare (current) model. This is a label used to
identify the model version in the comparison report.
3.1 Specify a model file by entering the model name, or click Browse… to select
a model file.
Note—“<Same Model Name>” means a model with the same name, but located in
the associated model directories.
3.2 Enter a textual description for the Against model. This is a label used to
identify the model version in the comparison report.
3.3 Specify whether the Against model should be treated as the From or To model
in the comparison. (The From model is considered the baseline for the
comparison; differences in the To model are reported relative to the From
model.)
3.4 If you selected a model by using the Browse button in step 3.1, the directory
was specified automatically and you can proceed to step 4.
Otherwise, specify the associated model directories that contain the Against
model by selecting the appropriate radio button:
• Select the “'From/To' directories” radio button to use the model directories
specified by the corresponding preference (mdiff_from_dirs or
mdiff_to_dirs). Click the “Select 'From/To' Directories…” button if you want
to verify or change these directories.
4 If you want the comparison output to list all components found in the specified
models, select the “Include unchanged elements in comparison output” checkbox.
When this checkbox is unselected, only model components that differ between the
From and To versions will be included.
Related Topics
• Comparing Models
1 Choose File > Manage Model Files > Compare Model Directories…
2 Specify the model directories containing the From versions of the model files for
comparison. (The From model is considered the baseline for the comparison;
differences in the To model are reported relative to the From model.)
2.2 Edit the model directory list to include all directories that contain From
versions of the models to be compared.
➥ The model list is updated to include all model files in the specified model
directories.
2.4 Enter a textual description for the From directories. This is a label used to
identify the version in the comparison report.
4 In the Model Types tree, use the checkboxes to specify which models should be
included in the comparison. Models with a selected checkbox will be compared.
5 If you want the comparison output to list all models (and their elements) found in
the specified model directories, select the “Include unchanged elements in
comparison output” checkbox. When this checkbox is unselected, only models that
differ between the From and To versions will be included.
➥ When the comparison is complete, the Model Directories Differences Dialog Box
displays the result.
Related Topics
• Comparing Models
• Model file label—Displays the path and name of the current model file.
• Model file text field—Specifies the name of the model to compare against.
Note—If you selected the Against model by using the Browse… button, the
directory was specified automatically and you do not need to change the
controls in this group.
Note—The following control names will include either 'From' or 'To', depending
on which As radio button is selected.
OK button—Starts the comparison using the new preference values and closes
the dialog box.
Related Topics
• Comparing Models
From Path, To Path table—Lists the path of the model directory (From and To)
in which each model resides, if appropriate.
OK button—Starts the comparison using the new preference values and closes
the dialog box.
Related Topics
• Comparing Models
Model Types tree—Lists all compared models contained in the From and To
model directories. (These are the models that were specified in the Compare
Model Directories Dialog Box.)
You can move the cursor over the Model Types node or an individual type node
(such as the C Include File node) to see a tooltip containing a summary of the
differences found.
Each model name in the tree is preceded by an icon representing the result of
the comparison (unchanged, modified, added, or removed). Click on the name
of a changed model to open the Model Differences for <model_name> Dialog
Box, which shows details about the model’s changes.
Related Topics
• Comparing Models
Related Topics
• Comparing Models
Path table—Lists the directories that will be included in the preference value
when you click OK. The Include Sub-directories? checkbox following each path
specifies whether the subdirectories of that directory are included as well. When
selected, subdirectories are included.
Insert button—Adds a line to the directory table for a new directory. You can
either enter a directory path or click the folder icon to open a browser for
selecting a directory.
Move Down button—Moves a selected directory down in the list. Use this
button to move a directory later in the search for a specific model file.
OK button—Changes the value of the preference being edited to match the list
and closes the dialog box.
Cancel button—Closes the dialog box without changing the preference value.
Related Topics
• Comparing Models
The default value of a compound attribute can be implicit (unassigned, and thus
equal to the sub-attribute defaults) or explicit (set in the compound attribute
properties). Implicit default values are always reported to model comparison as
“(…)”, whereas explicit default values are reported as a value for each
sub-attribute. Thus, when a compound attribute has an implicit default in the
From version of a model, you will see the following effects:
Case 1
Case 2
Model Difference Added Element Color Specifies the color used in a table cell to
indicate that the value was added in the 'To' version.
Tag mdiff_added_element_color
Model Difference Modified Element Color Specifies the color used in a table cell
to indicate that the value was modified in the 'To' version.
Tag mdiff_modified_element_color
Model Difference Modified Tree Color Specifies the color used in a table cell to
indicate that some element in the corresponding tree has been added, modified,
or removed.
Tag mdiff_modified_tree_color
Model Difference Removed Element Color Specifies the color used in a table
cell to indicate that the value was removed in the 'To' version.
Tag mdiff_removed_element_color
Model Difference Text Link Color Specifies the color used in a table cell to
indicate that clicking on the displayed text will result in an appropriate HTML
page being displayed in a web browser.
Tag mdiff_text_link_color
Model HTML Tab Size Specifies the number of spaces used to represent 'Tab'
characters in HTML output.
Tag mdiff_tab_size
Default Value 4
Model HTML Wrap Size Specifies the maximum number of characters shown in
a column of the HTML output before a line of text is “wrapped” to the next display
line.
Tag mdiff_wrap_size
Default Value 80
Model Text Difference Script Specifies the name of the program or script to
invoke to check for differences between text blocks or files.
Tag mdiff_diff_prog
Default Value “”
'From' Text Description Textual description to associate with the 'From' model
versions.
Tag mdiff_from_description
Default Value “”
Tag mdiff_from_dirs
Default Value “”
'To' Text Description Textual description to associate with the 'To' model
versions.
Tag mdiff_to_description
Default Value “”
'To' Model Directories List of directories containing 'To' model versions. A path
followed by “/...” indicates that all subdirectories should be included in the
comparison.
Tag mdiff_to_dirs
Default Value “”
Related Topics
• Comparing Models
Equal
Different
Added
Removed
Related Topics
• Comparing Models
This project file archive is sufficient when you are only using standard models
or when you want to run operations against the model such as Flow Analysis
and NetDoctor. If you are using custom models and want to run discrete event
simulation against the model, you must create a component file archive that
packages the files used during discrete event simulation.
When this operation is invoked, a table listing every process model currently
visible is displayed. You can specify that each process model in the table be
included or excluded as a child process of the current process model.
Processor and queue modules declare a root process via the object attribute
“process model”. The root process declares child processes through the
Declare Child Process Models operation. In turn, the child processes can
themselves declare other child processes, and so on.
For more information about child process models, see Process Domain on
page MC-5-1.
1 From the Project Editor or Process Editor, choose File >Declare External Files…
➥ The Declared External Files dialog box opens. This dialog box displays a list of
every external object and source file currently visible in the model directories.
2 In the file list, select the external files you want to include in the simulation.
3 Click OK.
When this operation is invoked, a table displays listing every packet format
currently visible in the application’s model directories. For each packet format in
the table, you can specify that it be included or excluded from the process
model. Excluding a format from the set does not imply that it cannot be included
in the simulation, only that it is not required by this particular process model.
Included formats can safely be specified and referenced by multiple process
models.
Delete Models
To delete a model, choose File > Delete Models and select the model type from
the list. Then select the model files to delete from the list of available models.
Note—The Project model type deletes only files ending in the “.prj” suffix. To
delete a project and all associated files, use the Delete Projects operation.
Delete Projects
To delete a project, choose File > Delete Projects and select the project to
delete from the list of available projects.
1 Open the Analysis Configuration Editor or make the Analysis Configuration Editor
the active window.
New…
This operation creates a new model in any of the available editors. The type of
model created depends on which editor is active.
Open…
This operation opens an existing model in any of the available editors. You
specify the editor to be opened in the Open dialog box, then select the model to
be opened.
Print…
This operation prints graphic images.
After choosing File > Manage Model Files > Refresh Model Directories, the
internal list of model directories is updated. The operation takes a few seconds.
Save
This operation saves the current file. When saving a project, all scenarios within
it are saved.
You should not save two files with the same name, but different cases, in the
same directory. In that case, only the file with the higher ASCII value will appear.
File names can include any alphanumeric character, spaces, and underscores
(_). You should not include non-alphanumeric characters such as hyphens and
periods in file names. In addition, files used for compiling (such as process
models, C files, and pipelines) should not have names that begin with a digit.
You should use file names of 48 characters or less. If you specify a longer file
name, the file is truncated to 48 characters.
Save As…
This operation saves the current file with a new name. When saving a project,
all scenarios within it are saved.
1) Convert all models that will be version-controlled from binary (.m) form to
XML form.
During development:
2) Open the model file in a model editor and make the desired changes.
3) Save the edited model. (The model editor automatically saves the model in
both binary and XML forms, with identical timestamps.)
Note—If you are saving a newly created file, the save_new_model_as_xml
preference must be TRUE. If not, the model is saved in binary form only.
If you have two versions of a model file and need to know how they differ, you
can compare them with the model comparison feature. For details, see
Comparing Models on page ER-2-9.
Related Topics
• If both binary and XML versions of a model exist, model editors open the
XML file.
Exception: If the binary file has a more recent timestamp than the XML file,
the binary file is opened and a warning is displayed. For details, see Effect of
Mismatched Timestamps for Binary and XML Model Files.
• When saving a model that was opened for editing, model editors save both
binary and XML versions if XML is being used; otherwise, they save a binary
file only. When both binary and XML files are saved, they receive identical
timestamps.
• When saving a newly created model, model editors save a binary file only.
To save both binary and XML versions of new models, you must set the
save_new_model_as_xml preference to TRUE.
Related Topics
1 Choose File > Manage Model Files > Convert Binary Models to XML Form…
➥ Unless the message has been disabled, you will see a licensing information
dialog box.
➥ The Convert Binary Models to XML Form dialog box opens. Initially, all binary
models of supported types with either no XML version or with an older XML
version are selected for conversion.
Note—Use the skip_xml_bin_licensing_notification preference to enable a
disabled licensing information message.
2 If you do not want to convert all of the selected models, limit the selection as
follows:
• Use the “Convertible model types” treeview to select the model types to consider.
• Use the “Convertible model files” treeview to select the model files to convert.
This treeview lists all binary files of the selected model types. You can use the
Sort files pull-down menu to arrange the files within each folder. Information
about each file appears in the table to the right of the file name.
3 When the desired models are selected, click the OK button to begin the conversion.
➥ A progress dialog reports the status of the conversion. When the conversion is
complete, a status dialog reports the name of each converted file and the name
and reason for failure of any file that was not converted.
Related Topics
1 Choose File > Manage Model Files > Convert XML Models to Binary Form…
➥ Unless the message has been disabled, you will see a licensing information
dialog box.
➥ The Convert XML Models to Binary Form dialog box opens. Initially, all XML
models of supported types with either no binary version or with an older binary
version are selected for conversion.
2 If you do not want to convert all of the selected models, limit the selection as
follows:
• Use the “Convertible model types” treeview to select the model types to consider.
• Use the “Convertible model files” treeview to select the model files to convert.
This treeview lists all binary files of the selected model types. You can use the
Sort files pull-down menu to arrange the files within each folder. Information
about each file appears in the table to the right of the file name.
3 When the desired models are selected, click the OK button to begin the conversion.
➥ A progress dialog reports the status of the conversion. When the conversion is
complete, a status dialog reports the name of each converted file and the name
and reason for failure of any file that was not converted.
Related Topics
Tag save_new_model_as_xml
Tag skip_xml_bin_licensing_notification
XML Conversion Destination Newer Color Specifies the color used to indicate
that the file to generate exists and is newer than the one being converted.
Tag xml_conv_dest_newer_color
XML Conversion Destination Older Color Specifies the color used to indicate
that the file to generate exists and is older than the one being converted.
Tag xml_conv_dest_older_color
XML Conversion Tree Potential Color Specifies the color used to indicate that a
directory tree contains files that might need conversion.
Tag xml_conv_tree_potential_color
Related Topics
Figure 2-3 Example Warning When Binary File Is More Recent Than XML File
If you expected the binary file to be newer than the XML file, you can proceed
to edit the model as normal. When you save it, both XML and binary versions
will be generated, with identical timestamps.
2) Manually delete the binary file (or otherwise remove it from your model
directories).
Related Topics
The Copy, Cut, and Paste operations use a clipboard to temporarily store
selected objects. The clipboard belongs to the editor environment rather than to
a particular editor window. Thus, you can use the clipboard to copy objects
within an editor window or from one editor window to another of the same type
(between projects, for example). Objects in the clipboard are lost when the
program is exited or when new objects are copied into it.
Clear Model
This operation removes the currently displayed model from the editor window.
It does not delete the model from disk.
➥ If there have been no changes to the currently active model since it was last
saved, the model is erased from the editor window. If there have been changes,
a Confirm dialog box appears.
• If you want to save the model before clearing it, click Cancel and then use
the Save operation.
• If you want to clear the model without saving it, click OK or press <Return>.
Copy
This operation copies objects in an editor window and places them on the
clipboard without affecting the original objects.
If the object that you copy has connected links or paths, the links/paths are also
copied with the object. Optionally, you can reconnect the links/paths.
➥ The objects (and any connected paths and links) are copied to the clipboard.
Cut
This operation deletes objects from an editor window and places them on the
clipboard. Any dependent objects (such as links) associated with the cut objects
are also deleted; any open dialog boxes associated with the cut objects are
closed. You can undo one cut operation. When you undo a cut operation, copies
of the cut objects remain in the clipboard.
If the object you cut has connected links, the links are also cut to the clipboard.
If the object you cut is the head or tail site in any paths, those paths are also cut
to the clipboard.
➥ The objects are copied to the clipboard and deleted from the editor window.
Find Node/Link…
This operation finds nodes, subnetworks and links by searching for names
containing a specified string.
2 Type a string of characters in the Name field and click Find All.
➥ The dialog box lists all nodes and links whose name contains the string. All found
objects are selected in the Project Editor window.
3 Left-click a name from the list to select it, then click Find.
➥ The Project Editor places the selected object in the center of the window. All
other objects are deselected.
• Replace the existing set of selected objects with the corresponding objects
Note—If a text file contains any object names that cannot be resolved to objects
in the current scenario, those object names will be listed and displayed in a
status message on your screen.
For more information about text edit pads, see Text Edit Pads on page ER-1-10.
Paste
This operation puts a copy of objects on the clipboard at a specified location
within an editor window. The objects on the clipboard are unaffected and can be
pasted repeatedly at different locations or in different editor windows.
2 Move the mouse until the object outlines reach the desired location.
➥ The objects are pasted in the specified location and the cursor resumes its usual
appearance. If the name of an object being pasted is identical to that of an object
in the editor window, a suffix is automatically added or incremented.
4 If the object being pasted had links and you don’t want to reconnect them,
right-click to end the link paste operation. The object remains selected until you
click elsewhere in the workspace.
5 If the object being pasted had links and you do want to reconnect them, follow
these steps:
5.1 Move the cursor to each destination node and click. If you are pasting a
subnet or connecting to a subnet, you may need to specify the source and
destination nodes to be connected within the subnet.
5.2 Right-click at any time to end the paste operation. The object remains
selected until you click elsewhere in the workspace.
6 If the object being pasted had connected paths and you don’t want to reconnect
them, right-click in the project workspace and choose Abort Path Definition to end
the path paste operation.
7 If the object being pasted had connected paths and you do want to reconnect them,
follow these steps for each path:
7.1 Click on the links and nodes you want to include in the redefined path, in
accordance with the options defined by the underlying path model.
7.2 When you have finished defining the path, right-click and choose Finish Path
Definition from the pop-up menu.
Preferences
There are many preferences that you can set to define variables, defaults,
functionality, and system behavior. For your convenience, preferences are
organized into categories, which make it easier to identify and locate specific
preferences. Additionally, you can create your own categories for preferences
that you frequently set.
Understanding Preferences
The Preferences dialog box, which opens when you choose Edit > Preferences,
is used to set preferences. A typical Preferences dialog box is shown in the
following figure.
List of
Preferences
Preference
Information
Type Specifies the type of value used to set the preference. Common types
are integer, string, and boolean.
Default Specifies the default value of the preference. The default value is the
value set during installation of OPNET Modeler.
Setting Preferences
The following procedure describes setting preference values.
For more information, see Figure 2-4 Preferences Dialog Box on page ER-2-38.
3 Click on the Value corresponding to the preferences that you want to set.
• For preferences with defined values (such as TRUE and FALSE), select a value.
• For preferences with open values, choose Edit… and enter a value.
• For preferences whose values are a list, edit the list in the dialog box that
appears.
• For passwords, and Edit Passwords dialog box appears. Enter the password
twice.
The values for most preferences are effective after saving the change.
However, some preferences, as identified in the Preferences Dialog Box,
cannot be changed or require you to restart OPNET Modeler before the
changed value takes effect. These preferences are identified with the following
symbols:
Asterisk Changes to the preference are effective after restarting OPNET Modeler.
Lock Changes to the preference can only be made at the command line.
To change the value of command-line-only preferences, specify the preference
as a command-line flag when invoking OPNET Modeler.
Searching for Preferences Use the search capability of the Preferences Dialog
Box to locate and identify preferences.
• In the “Search for” field, enter that text for which you want to search.
Note—The system searches for words or values containing the specified text in
whole or in part. In other words, a wildcard search is assumed.
• From the search scope pull-down menu, select the preference information to
include in the search:
2 Click Find.
1 In the Preferences dialog box, select an arrange by option from the “Arrange by”
pull-down menu:
1 In the Preferences dialog box, click on the field label by which you want to sort and
select “Sort_By”.
• Name
• Tag
• Source
Note: The Source field is displayed in the advanced view of preferences. For more
information, see Displaying Advanced Preference Information.
Copy Table to Clipboard Copies the list of preference information to the clipboard. This
option is useful when you want to document or share your
preference settings.
Copy Cell to Clipboard Copies the preference information from the selected cell.
Copy Column to Clipboard Copies the preferences information from the selected
column.
The object selection set file can contain any network objects including nodes,
subnets, wireless domains, links, paths, demands, and shared risk groups.
However, you cannot save annotations to the selection set. Object selection
sets can be referenced by Design Actions.
Select Objects
The Edit > Select Objects operation enables you to find and select objects
based on object type, attributes, and other criteria. Logical object selection has
two advantages over graphical selection:
• You can select objects that are not visible in the workspace (that is, objects
that are nested within subnetworks).
• You can specify objects that are always included or always excluded from a
set of selected objects. If the same object is specified in both the include and
exclude lists, the object is always excluded.
• You can specify a selection condition that considers object types, attributes,
attribute settings, and possibly other characteristics of network objects.
A selection condition is a set of Boolean conditions and operators that specify
the criteria used to find and select objects. The Define Selection dialog box
has a graphical interface that enables you to create highly customized
selection conditions based on your specific needs.
2 Specify the selection condition that you want to edit or start from.
To edit the current selection condition, use the treeview and controls on the right
side of the window. For more information, see Editing Selection Conditions on
page ER-2-49.
3 Click Find.
➥ OPNET Modeler searches the network scenario; all objects that meet the
specified selection condition are included in the set of found objects.
➥ If objects are found, the “Display objects found” radio button is selected and a
treeview of all found objects appears in the bottom pane.
4 Optionally, examine the list of found objects. Note that you can right-click on any
object for a context-sensitive list of operations.
5 If you are satisfied with the search results, click Select in Current Subnet or Select
in Network.
➥ The “Display objects selected” radio button is selected, and the network objects
are selected (in both the treeview and in the Project Editor workspace). Matching
objects are selected in addition to the current selection set.
6 Optionally, save the selection condition in the treeview: click Save As, then specify
the category and selection name.
You can edit a selection condition using the treeview and controls in the top half
of the Define Selection dialog box.
By default, the initial selection definition has two conditions: “IS any object” and
“HAS ATTR name”. This definition will match all network objects.
2 Optionally, set the “Category name” and “Selection name” pull-down menus to
select a different initial condition.
3.1 In the treeview, select the condition after which you want to append the new
condition. (The new condition will be added immediately after the selected
condition.)
3.2 Click one of the following buttons, depending on the condition you want to
add:
The initial condition matches any object type. Right-click on the new
condition to select the desired type.
• HAS ATTR—The condition is true if the object has the specified attribute.
First an attribute chooser appears so you can select the attribute of interest.
Then a separate dialog box opens so you can select the type and
arguments for the comparison.
A dialog box appears so you can select the library and symbol name of the
desired function.
3.3 Specify any additional inputs required by the condition (such as object type,
attribute name, and attribute setting).
5 When you are satisfied with the condition, click Find to test it.
Note—If the same object is specified in both the always included objects list and
the never included objects list, then the never included specification takes
precedence and the object is never included when selecting objects by attribute.
• Always Included Objects—to specify network objects that are always included
when selecting objects by attribute, regardless of the selection conditions.
• Never Included Objects—to specify network objects that are always excluded
when selecting objects by attribute, regardless of the selection conditions.
4 Click Add…
➥ The “Add Always Included Objects” / “Add Never Included Objects” dialog box
appears. The following figure shows a typical “Add Always Included Objects”
dialog box.
• Save selection set—Select objects and click Save… The Save As dialog box
prompts for the name of the selection set file and the directory in which to save
the file.
• Load select set—Click Load… and from the Apply Selection Sets dialog box,
select the selection set to load. Then click Load.
6 On the “Add Always Included Objects” / “Add Never Included Objects” dialog box,
click OK.
➥ The selected objects are added to the list on the “Always Included Objects” /
“Never Included Objects” tab. The objects in the list are always/never included
in a set of objects selected by attribute.
7 Optionally, on the “Always Included Objects” and “Never Included Objects” tabs,
use the Copy, Cut, and Past buttons to delete an objects from the list or to move
an object from one tab to the other tab.
Undo
Undo reverses selected operations: adding, moving, cutting, or pasting objects.
You can undo an operation after you have scrolled or zoomed, but not after you
have changed the attributes of the object that was operated upon.
If you have pasted a node with attached links and reattached the links, undo
reverses the entire operation: the pasted node and the newly-reattached links
are all removed.
• Error Log
• Session Log
• Tutorials
• About—Contact information
3 Review the information in the dialog box and close it when finished.
Error Log
These operations let you open the error log for viewing and clear all existing
messages from the error log file.
Clearing the log can be useful when investigating and reproducing an error. You
can clear the log and then reproduce the error; this ensures that all log entries
relate to the error you are investigating.
Note—The error log file can become large with heavy use. It is good practice to
clear the error log periodically—especially if the log file takes several seconds
to load into the text editor.
Session Log
These operations let you open the session log for viewing and clear all existing
messages from the session log file.
Tutorials
OPNET Modeler comes with a tutorial to introduce you to basic program
operation, as well as provide an overview of different protocols and advanced
topics.
To open a tutorial, choose Help > Tutorials and select a specific tutorial.
To view the release notes, choose Help > What’s New in 16.1.
• Drag and drop from the Network Browser treeview—Select one or more
nodes in the treeview; then drag the selection to a subnet icon in the treeview
or the workspace.
For more information about the Network Browser, see Show Network
Browser on page ER-3-63.
• Shift-drag and drop within the Project Editor workspace—Select one or more
nodes; then hold down the Shift key and drag the selection over a subnet
icon.
• Move Selected Nodes into Specific Subnet—Select one or more nodes and
do one of the following:
— choose Topology > Subnets >
Move Selected Nodes into Specific Subnet…, and select the subnet
— right-click on the workspace and select
“Move Selected Nodes Into Specific Subnet…, and select the subnet
All four operations move the selected nodes to the new subnet and retain all
attached links, paths, and demands. If the positions of the relocated nodes do
not fall within the target subnet's bounds, the subnet layout is refreshed to
determine the new node positions.
Note—If you cut or copy a node or subnetwork that is connected to a path, the
path is copied to the clipboard only if the selected object is the head or tail site
in the path. If you cut one or more intermediate nodes/subnets/links, these
objects are removed from existing paths and you are prompted for whether you
want to cancel the operation. If you proceed, only the selected sites and their
connecting links are removed from the model.
Consider the following example. In this topology, the center router (rtr_paste) is
connected to its neighbors by
path A demand A
path B
demand B
When we cut the router, it moves seven objects into the clipboard: the router,
the three connecting links, path B, and the two demands. rtr_paste isn’t a head
or tail for path A; therefore, this path is modified rather than cut and moved to
the clipboard. (A warning dialog box appears before this occurs, so you can
cancel the operation if you want.)
original path A
modified path
A
After we paste the node back into the workspace, we immediately enter
link-definition mode. Note that you can check the status bar to see the current
status of your paste operation. Note also that you can skip a step in the paste
process, or finish the paste operation entirely, by right-clicking and choosing the
appropriate option in the pop-up menu. In this example, we’ll skip pasting the
third link.
Now we automatically enter path-definition mode for path B, which was copied
to the clipboard. We connect the path, right-click, and choose Finish Path
Definition from the pop-up menu.
Now that we have pasted the node (step 1), links (step 2) and paths (step 3)
from the clipboard, we automatically enter demand-definition mode (step 4).
Since the original router had two connected flows, we now paste these demand
objects. Note that both pasted demands specify the new node as the traffic
source.
The following table lists the different behaviors to expect when you cut, copy and
paste connected objects.
Table 2-11 Cut, Copy, and Paste Behavior for Connected Objects
Selected Cut/Copy Paste
Node and link Node and connector (link or flow) are 1) Paste node
copied to clipboard
Node and flow 2) Define link or demand
Multiple nodes and all Entire selection set is cut/copied to 1) Paste nodes/subnets
connecting clipboard
2) Define links
links/demands
3) Define demand
Path and all attached
links/sites 4) Define paths
Head or tail site in path Node, connecting links, demand (if 1) Paste nodes/subnets
any) and connecting path are
2) Define links
cut/copied to clipboard
3) Define demands
4) Define paths
Intermediate sites (with COPY: Selected nodes, links and 1) Paste nodes/subnets
links and/or demands demands (without attached path(s))
2) Define links
attached) in path copied to clipboard
3) Define demands
CUT: If the Cut operation causes any
existing paths to be changed, a dialog 4) Define paths
box asks if you want to proceed.
When you proceed with the operation,
the selected links and sites (without
attached path(s)) are removed from
the network and copied to the
clipboard