Main Content

getImplementationStatus

Class: slreq.Reference
Package: slreq

Query referenced requirement implementation status summary

Syntax

status = getImplementationStatus(ref)
status = getImplementationStatus(ref, 'self')

Description

status = getImplementationStatus(ref) returns the implementation status summary for the referenced requirement ref and its child references.

status = getImplementationStatus(ref, 'self') returns the implementation status summary for just the referenced requirement ref.

Input Arguments

expand all

Referenced requirement instance, specified as an slreq.Reference object.

Output Arguments

expand all

The implementation status summary for the referenced requirement and its child references, returned as a MATLAB® structure containing these fields.

The total number of Functional referenced requirements (including child references), returned as a double.

The total number of implemented referenced requirements (including child references), returned as a double.

The total number of referenced requirements (including child references), justified for implementation, returned as a double.

The total number of unimplemented referenced requirements (including child references), returned as a double.

Examples

Get Implementation Status Summary of a Referenced Requirement

% Get the implementation status summary of the referenced requirement ref
% and its child references
refImplStatus = getImplementationStatus(ref)

refImplStatus = 

  struct with fields:

          total: 35
    implemented: 23
      justified: 9
           none: 3

% Get the implementation status summary of only the referenced requirement myRef
myRefImplStatus = getImplementationStatus(myRef, 'self')

myRefImplStatus = 

  struct with fields:

   implemented: 0
     justified: 0
          none: 0

Introduced in R2018b