slreq.clearChangeIssues
Description
slreq.clearChangeIssues(
clears
change issues for the link, link set, or an array of links or link sets specified by
inputItem
)inputItem
.
slreq.clearChangeIssues(___,
specifies options using one or more name-value arguments in addition to the input arguments
in previous syntaxes.Name=Value
)
Examples
Clear Change Issues for a Link Set
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]
Clear Destination Change Issues for a Link Set
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
inputItem
— Item to clear change issues for
array of slreq.Link
objects | array of slreq.LinkSet
objects
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"
Location
— Link item to clear changes for
"All"
(default) | "Source"
| "Destination"
Link item location to clear changes for, specified as "All"
,
"Source"
, or "Destination"
.
Example: location="All"
Data Types: char
| string
Comment
— Comment to record actions
string scalar | character vector
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
See Also
Functions
Objects
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)