Main Content

getImplementationStatus

Class: slreq.Requirement
Package: slreq

Query requirement implementation status summary

Syntax

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

Description

status = getImplementationStatus(req) returns the implementation status summary for the requirement req and all its child requirements.

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

Input Arguments

expand all

Requirement instance, specified as an slreq.Requirement object.

Output Arguments

expand all

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

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

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

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

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

Examples

Get Implementation Status Summary of a Requirement

% Get the implementation status summary of the requirement req
% and all its child requirements
reqImplStatus = getImplementationStatus(req)

reqImplStatus = 

  struct with fields:

          total: 20
    implemented: 16
      justified: 3
           none: 1

% Get the implementation status summary of only the requirement myReq
myReqImplStatus = getImplementationStatus(myReq, 'self')

myReqImplStatus = 

  struct with fields:

    implemented: 16
      justified: 3
           none: 1

Introduced in R2018b