rmi
Interact programmatically with Requirements Management Interface
Syntax
Description
creates an
empty instance of the requirement links data structure.reqlinks
= rmi('createEmpty')
returns the requirement links data structure for the Signal Builder group specified
by the index reqlinks
= rmi('get',sig_builder
,group_idx
)group_idx
.
rmi('set',
sets sig_builder
,reqlinks
,group_idx
)reqlinks
as the requirements links for the signal group
group_idx
in the Signal Builder block
sig_builder
.
cnt = rmi('count',
returns the
number of requirements links for object
)object
.
rmi('clearAll',
deletes
all requirements links for
object
)object
.
rmi('clearAll',
deletes
all requirements links in the model containing
object
,'deep')object
.
rmi('clearAll',
deletes all requirements links for
object
,'noprompt')object
and does not prompt for confirmation.
rmi('clearAll',
deletes all requirements links in the model
containing object
,'deep','noprompt')object
and does not prompt for confirmation.
rmi('highlightModel',
highlights
all of the objects in the parent model of
object
)object
that have requirement links.
rmi('unhighlightModel',
removes
highlighting of objects in the parent model of object
)object
that have
requirement links.
rmi('report',
generates a
Requirements Traceability report in HTML format for the MATLAB code file specified by matlabFilePath
)matlabFilePath
.
rmi('report',
generates a
Requirements Traceability report in HTML format for the Simulink® data dictionary specified by
dictionaryFile
)dictionaryFile
.
rmi('projectreport')
generates a Requirements Traceability
report in HTML format for the current project. The top-level page of this report has
HTTP links to reports for each project item that has requirements traceability
associations. For more information, see Create Requirements Traceability Report for A Project.
rmi('setup')
configures RMI for use with MATLAB and installs the interface for use with IBM®
DOORS®.
rmi('setup','doors',false)
configures RMI for use with
MATLAB and installs the interface for use with IBM
DOORS without using the interactive
setup.
rmi register typename
registers the custom link type or
custom document domain type name specified by the function
typename
. For more information, see Define Custom Document Interface for Direct Linking to Requirements and Define Custom Document Interface for Importing Requirements.
rmi unregister typename
removes the custom link type or
custom document domain type name specified by the function
typename
. For more information, see Define Custom Document Interface for Direct Linking to Requirements and Define Custom Document Interface for Importing Requirements.
rmi('linktypelist')
displays a list of the currently
registered link types. The list indicates whether each link type is built-in or
custom, and provides the path to the function used for its registration.
checks
validity of links to Simulink from a requirements document in Microsoft® Word, Microsoft
Excel®, or IBM
DOORS. It prompts for the requirements document name, returns the total
number of problems detected, and opens an HTML report in the MATLAB Web browser. For more information, see Validate Requirements Links in a Requirements Document.number_problems
= rmi('checkdoc')
checks validity of links to Simulink from the requirements document specified by
number_problems
= rmi('checkdoc',docName
)docName
. It returns the total number of problems detected and
opens an HTML report in the MATLAB Web browser. For more information, see Validate Requirements Links in a Requirements Document.
rmi('check',
checks
consistency of traceability links associated with MATLAB code lines in the matlabFilePath
).m
file
matlabFilePath
, and opens an HTML report in the MATLAB Web browser.
rmi('check',
checks
consistency of traceability links associated with the Simulink data dictionary dictionaryFile
)dictionaryFile
, and opens an HTML
report in the MATLAB Web browser.
rmi('doorssync',
opens the
DOORS synchronization settings dialog
box,
where you can customize the synchronization settings and synchronize your model with
an open project in an IBM
DOORS database.model
)
[objName,objType] = rmi('getObjLabel',
returns Simulink object Name and Type information for the Simulink object that you link to with a third-party requirements management
application.object
)
rmi('setDoorsLabelTemplate',
specifies a new custom template for labels of requirements links to IBM
DOORS. The default label template contains the section number and object
heading for the DOORS requirement link target. To revert the link label template back to the
default, enter template
)rmi('setDoorsLabelTemplate','')
at the MATLAB command prompt.
returns the currently specified custom template for labels of requirements links to
IBM
DOORS.template
= rmi('getDoorsLabelTemplate')
updates all
IBM
DOORS requirements links labels in totalModifiedLinks
= rmi('updateDoorsLabels',model
)model
according to
the current template.
rmi httpLink
activates the internal HTTP server that you can
use to navigate to linked items in MATLAB or Simulink from backlinks in a browser-based third-party requirements tool that
uses HTTP protocol. Backlink navigation on the HTTPS server is enabled by
default.
Note
Alternatively, you can active the internal HTTP server by using the
rmipref
function to set the UnsecureHttpRequests
preference to true
. When
the UnsecureHttpRequests
preference is
true
, MATLAB activates the internal HTTP server on startup.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2006bSee Also
rmipref
| rmiobjnavigate
| rmidocrename
| rmitag
| rmimap.map
| RptgenRMI.doorsAttribs