Package: slreq
Superclasses:
Work with link sets
Instances of slreq.LinkSet
are Link Set objects. Links are
organized in Link Sets. Each Link Set is associated with a source artifact such as a
Simulink® model or a data dictionary and is serialized into a separate file which
stores the links associated with it. The default location and name of the Link set file
matches that of the source artifact.
finds and returns an array of loaded allLinkSets
= slreq.find('Type'
, 'LinkSet'
)slreq.LinkSet
objects
allLinkSets
.
finds and returns an myLinkSet
= slreq.find('Type'
, 'LinkSet'
, 'Name'
, ArtifactName
)slreq.LinkSet
object
myLinkSet
matching the artifact name specified by
ArtifactName
.
loads an myLinkSet
= slreq.load(ArtifactName
)slreq.LinkSet
object myLinkSet
matching
the artifact name specified by ArtifactName
.
addAttribute | Add custom attribute to link set |
deleteAttribute | Delete custom attribute from link set |
find | Find links in link set with matching attribute values |
getLinks | Get links from link set |
inspectAttribute | Get information about link set custom attribute |
save | Save link set |
sources | Get link sources |
updateAttribute | Update information for link set custom attribute |
% Find a link set myLinkSet1 = slreq.find('Type', 'LinkSet', 'Name', 'Project_req') myLinkSet1 = LinkSet with properties: Description: '' Filename: 'Project_req.slmx' Artifact: 'Project_req.slreqx' Domain: 'linktype_rmi_slreq' Revision: 2 Dirty: 0 myLinkSet2 = slreq.load('fuelsys.slx') myLinkset2 = LinkSet with properties: Description: '' Filename: 'C:\MATLAB\My_Files\fuelsys_linkset.slmx' Artifact: 'D:\Work\Design_Specs\fuelsys.slx' Domain: 'linktype_rmi_simulink' Revision: 2 Dirty: 0 % Set the link set description myLinkset2.Description = 'Link set for the fuel system' myLinkset2 = LinkSet with properties: Description: 'Link set for the fuel system' Filename: 'C:\MATLAB\My_Files\fuelsys_linkset.slmx' Artifact: 'D:\Work\Design_Specs\fuelsys.slx' Domain: 'linktype_rmi_simulink' Revision: 2 Dirty: 1