Main Content

slreq.clearChangeIssues

Clear change issues for requirement links

Since R2023b

    Description

    slreq.clearChangeIssues(inputItem) clears change issues for the link, link set, or an array of links or link sets specified by inputItem.

    example

    slreq.clearChangeIssues(___,Name=Value) specifies options using one or more name-value arguments in addition to the input arguments in previous syntaxes.

    example

    Examples

    collapse all

    This example shows how to clear change issues for a link set.

    Open the project.

    openProject("ShortestPathChangesExample");

    Load the link set file.

    myLinkSet = slreq.load("shortest_path.slmx");

    Get 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]
    
    

    Clear the change issues for myLinkSet.

    slreq.clearChangeIssues(myLinkSet);

    Get the updated change information for myLinkSet.

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

    This example shows how to clear all destination change issues for a link set.

    Open the project.

    openProject("ShortestPathChangesExample");

    Load the link set file.

    myLinkSet = slreq.load("shortest_path.slmx");

    Get 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]
    
    

    Clear the destination change issues for myLinkSet.

    slreq.clearChangeIssues(myLinkSet,location="Destination");

    Get the updated change information for myLinkSet.

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

    Input Arguments

    collapse all

    Item to clear change issues for, specified as an slreq.Link or slreq.LinkSet array.

    Name-Value Arguments

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Example: location="All"

    Link item location to clear changes for, specified as "All", "Source", or "Destination".

    Example: location="All"

    Data Types: char | string

    Comment, specified as a string scalar or character vector. Use comments to record information about the cleared requirement change issues.

    Example: comment="clearing destination change issues"

    Data Types: char | string

    Version History

    Introduced in R2023b