Main Content

本页采用了机器翻译。点击此处可查看英文原文。

getImplementationStatus

类: slreq.Requirement
命名空间: slreq

查询需求实施状态摘要

语法

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

说明

status = getImplementationStatus(req) 返回需求 req 及其所有子需求的实施状态摘要。

status = getImplementationStatus(req, 'self') 仅返回需求 req 的实施状态摘要。

输入参数

全部展开

需求实例,指定为 slreq.Requirement 对象。

输出参量

全部展开

该需求及其子需求的实施状态摘要,以包含这些字段的 MATLAB® 结构体返回。

功能需求(包括子需求)的总数,以 double 形式返回。

已实施需求的总数(包括子需求),以 double 形式返回。

需要实施的总需求数(包括子需求)以 double 形式返回。

未实现需求(包括子需求)的总数,以 double 形式返回。

示例

获取需求的实施状态摘要

% 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

版本历史记录

在 R2018b 中推出