My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
RunningSpmif2opnet  
Some notes and caveats on running spmif2opnet.
Updated Jun 3, 2009 by e...@cs.umass.edu

Introduction

The UML to OPNET converter uses S-PMIF as an intermediate representation for structure and performance data. The second half of this process involves running spmif2opnet to transform this software performance IR into a form that can be imported as an OPNET topology.

Details

These are the command-line options for running spmif2opnet:

spmif2opnet

-i "input file"
-o "output file"
-p "OPNET device properties file"
-P DIRECT | SCALED | ORDERED | RM (Priority)
-n (Generate OPNET Network)
-h (Print this message)

Currently, spmif2opnet will not run as is: you will need to have your own installation of the OPNET software, along with their network DTD. Here are detailed instructions on how to do this:

  • Locate the “network.dtd” file in your OPNET installation, most likely in <OPNET Directory>/sys/etc. This file contains the information you will need to generate Java classes that can manipulate OPNET network XML files.
  • Run a version of JAXB on the DTD file to get the Java classes. We used the standard reference implementation: https://jaxb.dev.java.net/, with these command line options for the xjc compiler, assuming you are placing the code in a “test” directory and you want the package setup to be what spmif2opnet expects:

xjc –d test –p com.mitre.spmif2opnet.opnet.network –dtd network.dtd

  • Compile the classes!

We are looking at addressing this as soon as we can so the transformation can be run as a stand-alone "jar".


Sign in to add a comment
Powered by Google Project Hosting