Main Content

isJustifiedFor

Class: slreq.Reference
Namespace: slreq

Check if referenced requirement is justified

Syntax

tf = isJustifiedFor(ref, linkType)

Description

tf = isJustifiedFor(ref, linkType) checks if the referenced requirement ref is justified for the link type specified by linkType.

Input Arguments

expand all

Referenced requirement to check for justification, specified as an slreq.Reference object.

Justification link type, specified as a character vector.

Output Arguments

expand all

The justification status of the referenced requirement, returned as a Boolean.

Examples

Check if Referenced Requirements Are Justified

% Check if referenced requirement ref1 is justified for Implementation
ref1_Status = isJustifiedFor(ref1, 'Implement')

ref1_Status =

  logical

   1

% Check if referenced requirement ref2 is justified for Verification
ref2_Status = isJustifiedFor(ref2, 'Verify')

ref2_Status =

  logical

   0

Version History

Introduced in R2018b