Main Content

isResolvedSource

Class: slreq.Link
Package: slreq

Check if the link source is resolved

Syntax

tf = isResolvedSource(myLink)

Description

tf = isResolvedSource(myLink) checks if the source of the link myLink is resolved.

For a link to be resolved, you must be able to navigate to the source item and to the destination item. If the source, destination, or both are not available, the link is unresolved. The source or destination items can be unavailable because:

  • The design artifact that contains the source or destination item is not loaded. For example, if you load a requirement set that has incoming links from a Simulink® model, this also loads the link set that belongs to the model. However, if you do not load the Simulink model, the links are unresolved because the link sources are not available.

  • The design artifact loaded, but the specified ID does not exist. For example, if you delete a linked requirement, the link becomes unresolved because the stored ID no longer corresponds to a valid item.

If a link is unresolved because the specified ID does not exist, it is a broken link.

Input Arguments

expand all

Handle to a link, specified as an slreq.Link object.

Output Arguments

expand all

The source resolution status of the slreq.Link object, returned as a Boolean.

Examples

Check if Link Source is Resolved

isResolved(myLink)

ans =

  logical

   0
Introduced in R2019a