Main Content

isJustifiedFor

Class: slreq.Requirement
Package: slreq

Check if requirement is justified

Syntax

tf = isJustifiedFor(req, linkType)

Description

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

Input Arguments

expand all

Requirement to check for justification, specified as an slreq.Requirement object.

Justification link type, specified as a character vector.

Output Arguments

expand all

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

Examples

Check if Requirements Are Justified

% Check if requirement req1 is justified for Implementation
req1_Status = isJustifiedFor(req1, 'Implement')

req1_Status =

  logical

   1

% Check if requirement req2 is justified for Verification
req2_Status = isJustifiedFor(req2, 'Verify')

req2_Status =

  logical

   0
Introduced in R2018b