User`s guide

Custom Link Type Synchronization
9-19
Custom Link Type Synchronization
Simulink Verification and Validation provides an API for synchronization of links
for custom requirements documents. To support synchronization for your custom
requirements link type, create a custom type implementation in a new subclass and
inherit from the rmisync.SyncApi base class in the Requirements Management
Interface API.
For example, to implement synchronization for links to requirements documents in
Requirements Interchange Format (RIF/ReqIF), create the new package +rmireqif with
the new subclass @SyncApiReqif:
matlabroot/toolbox/slvnv/reqmgt/+rmireqif/@SyncApiReqif/SyncApiReqif.m
Your subclass needs to implement the following methods:
% Open surrogate module in your RM application
openSrgModule(this)
% Convert from identifier strings stored by RMI
% to numeric IDs used by your RM application
numericIds = idStrToNum(this, strIds)
ids = srgIds(this, reqStrings)
% Convert from your RM links data to Simulink link structure array
slReqs = linkinfoToReqs(surrlinksInfo)
% update surrogate module after objects were deleted in Simulink
markDeleted(this, deletedIds)
% push Simulink model structure updates to your RM application
firstNewId = updateModule(this, mods, dmDeletedIds)
% push RMI link updates from Simulink to your RM application
newLinkStr = propagateChanges(this, origReqs, srgId, srgLinkInfo)
updateSrgLinks(this, surrogateLinkUpdates)
updateModuleProps(this)
% query updates from surrogate module
reqs = updateSrgLink(this, reqs, doorsId)
myReqs = updateDocNames(this, myReqs)