Main Content

rmipref

Get or set RMI preferences stored in prefdir

Description

rmipref returns a list of the Name,Value pairs that correspond to the Requirements Management Interface (RMI) preference names and accepted values.

example

currentVal = rmipref(prefName) returns the current value of the preference specified by prefName.

example

previousVal = rmipref(Name,Value) sets a new value for the RMI preference specified by Name, and returns the previous value of that RMI preference.

Examples

collapse all

Choose the type of reference that the RMI uses when it creates links to your model from external requirements documents. The reference to your model can be either the model file name or the full absolute path to the model file.

The value of the 'ModelPathReference' preference determines how the RMI stores references to your model in external requirements documents. To view the current value of this preference, enter the following code at the MATLAB® command prompt.

currentVal = rmipref('ModelPathReference')

The default value of the 'ModelPathReference' preference is 'none'.

currentVal =

none

This default value specifies that the RMI uses only the model file name in references to your model that it creates in external requirements documents.

Configure the RMI to automatically apply a specified list of user keyword keywords to new selection-based requirements links that you create.

Specify that the user keywords design and reqts apply to new selection-based requirements links that you create.

previousVal = rmipref('SelectionLinkKeyword','design,reqts')

When you specify a new value for an RMI preference, rmipref returns the previous value of that RMI preference. In this case, previousVal is an empty character vector, the default value of the 'SelectionLinkKeyword' preference.

previousVal =

     ''

View the currently specified value for the 'SelectionLinkKeyword' preference.

currentVal = rmipref('SelectionLinkKeyword')

The function returns the currently specified comma-separated list of user keywords.

currentVal =

design,reqts

These user keywords apply to all new selection-based requirements links that you create.

Configure the RMI to embed requirements links data in the model file instead of in a separate SLMX file.

Note

If you have existing requirements links for your model that are stored internally, you need to move these links into an external SLMX file before you change the storage settings for your requirements traceability data. See Move Internally Stored Requirements Links to External Storage for more information.

If you would like to embed requirements traceability data in the model file, set the 'StoreDataExternally' preference to 0.

previousVal = rmipref('StoreDataExternally',0)

When you specify a new value for an RMI preference, rmipref returns the previous value of that RMI preference. By default, the RMI stores requirements links data externally in a separate SLMX file, so the previous value of this preference was 1.

previousVal =

     1

After you set the 'StoreDataExternally' preference to 0, your requirements links are embedded in the model file.

currentVal = rmipref('StoreDataExternally')
currentVal =

     0

Input Arguments

collapse all

RMI preference name, specified as the corresponding Name character vector listed in Name-Value Arguments.

Name-Value Arguments

Example: 'BiDirectionalLinking',true enables bidirectional linking for your model, so that when you create a selection-based link to a requirements document, the RMI creates a corresponding link to your model from the requirements document.

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' ').

Bidirectional selection linking preference, specified as a numeric or logical 1 (true) or 0 (false).

This preference specifies whether to simultaneously create return link from target to source when creating link from source to target. This setting applies only for requirements document types that support selection-based linking.

Data Types: logical

Preference for storing custom settings, specified as a structure array. Each field of the structure array corresponds to the name of your custom preference, and each associated value corresponds to the value of that custom preference.

Data Types: struct

Preference for path format of links to requirements documents from model, specified as one of the following values.

ValueDocument reference contains...
'absolute'full absolute path to requirements document.
'pwdRelative'path relative to MATLAB current folder.
'modelRelative'path relative to model file.
'none'document file name only.

For more information, see Document Path Storage.

Data Types: char

Preference for copying requirements links along with model objects, specified as a numeric or logical 1 (true) or 0 (false).

This preference specifies whether requirements links should be duplicated when copying Simulink® and Stateflow® objects. When set to false, links are duplicated only when you highlight links in the source model where the model objects are copied from.

Data Types: logical

Preference to enable filtering by user keyword keywords, specified as a numeric or logical 1 (true) or 0 (false). When you filter by user keyword keywords, you can include or exclude subsets of requirements links in highlighting or reports. You can specify user keyword keywords for requirements links filtering in the 'FilterRequireKeywords' and 'FilterExcludeKeywords' preferences. For more information about requirements filtering, see Filter Requirements with User Keywords.

Data Types: logical

Preference for user keyword keywords for requirements links, specified as a comma-separated list of words or phrases in a character vector. These user keywords apply to all new requirements links you create. Requirements links with these user keywords are included in model highlighting and reports. For more information about requirements filtering, see Filter Requirements with User Keywords.

Data Types: char

Preference to exclude certain requirements links from model highlighting and reports, specified as a comma-separated list of user keyword keywords. Requirements links with these user keywords are excluded from model highlighting and reports. For more information about requirements filtering, see Filter Requirements with User Keywords.

Data Types: char

Preference to disable labels of requirements links with designated user keywords, specified as a numeric or logical 1 (true) or 0 (false). When set to true, if a requirement link has a user keyword designated in 'FilterExcludeKeywords' or 'FilterRequireKeywords', that requirements link will be disabled in the Requirements context menu. For more information about requirements filtering, see Filter Requirements with User Keywords.

Data Types: logical

Preference to filter Model Advisor requirements consistency checks with designated user keywords, specified as a numeric or logical 1 (true) or 0 (false). When set to true, Model Advisor requirements consistency checks include requirements links with user keywords designated in 'FilterRequireKeywords' and excludes requirements links with user keywords designated in 'FilterExcludeKeywords'. For more information about requirements filtering, see Filter Requirements with User Keywords.

Data Types: logical

Preference to use custom image file as requirements link icon, specified as full path to icon or small image file. This image will be used for requirements links inserted in external documents.

Data Types: char

Custom authentication callback function for integration with web-based services, specified as a character vector.

If your network requires advanced authentication that the default authentication process does not support, use this argument to register a custom authentication callback function. For example, if you register a custom authentication callback function and then use slreq.dngConfigure, the function calls your custom function to authenticate the connection with the IBM DOORS Next server. For more information, see the Tips section of slreq.dngConfigure.

Note

The custom authentication callback function should take this form:

function [success,cookies] = myCustomLoginProvider(server,options)
% Provide your implementation here
end
The custom authentication function should return two arguments: success status and cookies received from the server.

Example: "myCustomLoginProvider"

Preference for path format in links to model from requirements documents, specified as one of the following values.

ValueModel reference contains...
'absolute'full absolute path to model.
'none'model file name only.

Data Types: char

Open Services for Lifecycle Collaboration (OSLC) server address, specified as a string scalar or a character vector.

Data Types: char | string

Open Services for Lifecycle Collaboration (OSLC) server requirements management root, specified as a string scalar or a character vector. The default value is rm.

Data Types: char | string

Open Services for Lifecycle Collaboration (OSLC) username, specified as a string scalar or a character vector.

Data Types: char | string

Preference to allow global configurations when configuring a MATLAB session for integration with IBM DOORS Next, specified as a numeric or logical 1 (true) or 0 (false).

Data Types: logical

Directory for custom import mapping files, specified as a string scalar or character vector. Specify the directory using a full file path. You can specify multiple directories by entering a semicolon separated list.

Example: ReqifMappingFilePath="C:/users/jdoe/MATLAB/mappings"

Example: ReqifMappingFilePath="C:/users/jdoe/MATLAB/mappings;C/users/jdoe/downloads"

Data Types: char | string

Preference to include extra detail from requirements documents in generated reports, specified as a numeric or logical 1 (true) or 0 (false). When set to true, generated requirements reports load linked requirements documents to include additional information about linked requirements. This preference applies to Microsoft® Word, Microsoft Excel®, and IBM DOORS requirements documents only.

Data Types: logical

Preference to include highlighting in model snapshots in generated report, specified as a numeric or logical 1 (true) or 0 (false). When set to true, snapshots of model objects in generated requirements reports include highlighting of model objects with requirements links.

Data Types: logical

Preference to list user keywords for requirements links in generated reports, specified as a numeric or logical 1 (true) or 0 (false). When set to true, generated requirements reports include user keywords specified for each requirement link. For more information about requirements filtering, see Filter Requirements with User Keywords.

Data Types: logical

Preference to include links to model objects in generated requirements reports, specified as a numeric or logical 1 (true) or 0 (false). When set to true, generated requirements reports include links to model objects. These links work only if the MATLAB internal HTTP server is active.

Data Types: logical

Preference to include model objects with no requirements links in generated requirements reports, specified as a numeric or logical 1 (true) or 0 (false). When set to true, generated requirements reports include lists of model objects that have no requirements links.

Data Types: logical

Preference to include short document ID instead of full path to document in generated requirements reports, specified as a numeric or logical 1 (true) or 0 (false). When set to true, generated requirements reports include short document IDs, when specified, instead of full paths to requirements documents.

Data Types: logical

Preference to include IBM DOORS selection link option in Requirements context menu, specified as a numeric or logical 1 (true) or 0 (false).

Data Types: logical

Preference to use stereotypes when importing requirements from ReqIF files, specified as a numeric or logical 1 (true) or 0 (false). For more information, see Use Stereotypes when Importing from ReqIF Files.

Example: ReqIfImportUseProfile=true

Data Types: logical

Preference to include Microsoft Excel selection link option in Requirements context menu, specified as a numeric or logical 1 (true) or 0 (false).

Data Types: logical

Preference for user keywords to apply to new selection-based requirements links, specified as a comma-separated list of words or phrases in a character vector. These user keywords automatically apply to new selection-based requirements links that you create. For more information about requirements filtering, see Filter Requirements with User Keywords.

Data Types: char

Preference to include Microsoft Word selection link option in Requirements context menu, specified as a numeric or logical 1 (true) or 0 (false).

Data Types: logical

Preference to store requirements links data in external SLMX file, specified as a numeric or logical 1 (true) or 0 (false). This setting applies to all new models and to existing models that do not yet have requirements links. For more information about storage of requirements links data, see Requirements Link Storage.

Data Types: logical

Preference to use legacy ActiveX buttons in Microsoft Office requirements documents, specified as a numeric or logical 1 (true) or 0 (false). The default value of this preference is false; requirements links are URL-based by default. ActiveX requirements navigation is supported for backward compatibility.

Data Types: logical

Output Arguments

collapse all

Current value of the RMI preference specified by prefName. RMI preference names and their associated possible values are listed in Name-Value Arguments.

Previous value of the RMI preference specified by prefName. RMI preference names and their associated possible values are listed in Name-Value Arguments.

Version History

Introduced in R2013a

expand all