Main Content

ChangeInformation

Change information for requirement links

Since R2023b

    Description

    Use ChangeInformation objects to review information about changes for requirement links.

    Creation

    Use the slreq.getChangeInformation function to create an array of ChangeInformation objects.

    Properties

    expand all

    Links with source changes, specified as an array of slreq.Link objects.

    Links with destination changes, specified as an array of slreq.Link objects.

    Source change information, specified as a structure with these fields:

    FieldData TypeDescription
    statuscharacter vector

    The link change status message:

    • 'Unknown'

    • 'Changed'

    • 'Consistent'

    storedRevisioncharacter vectorThe stored revision for the source artifact
    actualRevisioncharacter vectorThe current revision for the source artifact

    Data Types: struct

    Destination change information, specified as a structure with these fields:

    FieldData TypeDescription
    statuscharacter vector

    The link change status message:

    • 'Unknown'

    • 'Changed'

    • 'Consistent'

    storedRevisioncharacter vectorThe stored revision for the destination artifact
    actualRevisioncharacter vectorThe current revision for the destination artifact

    Data Types: struct

    Examples

    collapse all

    This example shows how to view the change information for a link with destination changes.

    Open the project.

    openProject("ShortestPathChangesExample");

    Load the link set file.

    myLinkSet = slreq.load("shortest_path");

    Retrieve the change information for myLinkSet.

    changeInfo = slreq.getChangeInformation(myLinkSet)
    changeInfo = 
      ChangeInformation with properties:
    
             LinksWithChangedSource: [0x0 slreq.Link]
        LinksWithChangedDestination: [1x1 slreq.Link]
                      SourceChanges: [1x0 struct]
                        DestChanges: [1x1 struct]
    
    

    View the change information for links with destination changes.

    changeInfo.DestChanges
    ans = struct with fields:
                status: 'Changed'
        storedRevision: '10'
        actualRevision: '14'
    
    

    Clear the links from memory.

    slreq.clear;

    Version History

    Introduced in R2023b