clearChangeIssues
Class: slreq.Link
Namespace: slreq
Description
clearChangeIssues(___,
specifies options using one or more name-value arguments in addition to the input arguments
in previous syntaxes.Name=Value
)
Input Arguments
myLink
— Link for which to clear change issues
slreq.Link
object
Link for which to clear change issues, specified as an slreq.Link
object.
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: target="Source"
Comment
— Comment
string scalar | character vector
Comment, specified as a string scalar or character vector. Use comments to record information about the cleared change issues.
Example: comment="clearing destination change
issues"
Data Types: char
| string
Target
— Location of link item
"All"
(default) | "Source"
| "Destination"
Link item location for which to clear change issues, specified as
"All"
, "Destination"
, or
"Source"
.
Data Types: char
| string
Examples
Clear Change Issues for Link
This example shows how to clear change issues for a link.
Open the project.
openProject("ShortestPathChangesExample");
Load the link set file.
myLinkSet = slreq.load("shortest_path.slmx");
Get the change information for the link set and get the link with the destination change.
slreq.getChangeInformation(myLinkSet)
ans = ChangeInformation with properties: LinksWithChangedSource: [0x0 slreq.Link] LinksWithChangedDestination: [1x1 slreq.Link] SourceChanges: [1x0 struct] DestChanges: [1x1 struct]
myLink = getLinksWithChangedDestination(myLinkSet);
Clear the change issue for the link myLink
.
clearChangeIssues(myLink); slreq.getChangeInformation(myLinkSet)
ans = ChangeInformation with properties: LinksWithChangedSource: [0x0 slreq.Link] LinksWithChangedDestination: [0x0 slreq.Link] SourceChanges: [1x0 struct] DestChanges: [1x0 struct]
Clear Destination Change Issue for a Link
This example shows how to clear change issues for a link.
Open the project.
openProject("ShortestPathChangesExample");
Load the link set file.
myLinkSet = slreq.load("shortest_path.slmx");
Get the change information for the link set and get the link with the destination change.
slreq.getChangeInformation(myLinkSet)
ans = ChangeInformation with properties: LinksWithChangedSource: [0x0 slreq.Link] LinksWithChangedDestination: [1x1 slreq.Link] SourceChanges: [1x0 struct] DestChanges: [1x1 struct]
myLink = getLinksWithChangedDestination(myLinkSet);
Clear the destination change issue for the link myLink
.
clearChangeIssues(myLink,target="Destination");
slreq.getChangeInformation(myLinkSet)
ans = ChangeInformation with properties: LinksWithChangedSource: [0x0 slreq.Link] LinksWithChangedDestination: [0x0 slreq.Link] SourceChanges: [1x0 struct] DestChanges: [1x0 struct]
Version History
Introduced in R2022b
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 (한국어)