from Part IV - OPNET Modeling Facilities
Published online by Cambridge University Press: 05 February 2012
This chapter shows the concept of external model access (EMA; a text file representation alternative to OPNET modeler's graphic representation for modeling), the benefits of using EMA in some circumstances, and how simulation models can be constructed via EMA instead of OPNET Modeler's graphic interfaces.
What EMA is and reasons to use it
Usually, a user can access OPNET models by creating a node model or link model and reading/writing that model from OPNET modeler's graphic user interfaces (GUI) such as Node Editor, Link Editor, etc. This way can be called WYSIWYG – “WhatYou See Is What You Get.” Differing from this WYSIWYG method, EMA is a technique provided by OPNET Modeler that allows you to access OPNET models from external programs in a text format; i.e., models can be accessed via code rather than GUI. EMA code can be written in an external C/C++ program. It is different from the C/C++ code written in OPNET process model, which is via the OPNET graphic interface. Therefore, the external C/C++ program with EMA capability can interface with other programs, libraries, and databases just like a general C/C++ program. The EMA C/C++ program is compiled and linked into an executable file. By running that executable file, models and/or objects of models can be read or written or created. To write such an EMA program, you can use any text editor or C/C++ IDE (Integrated Development Environment).
To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.