Main Content

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

getAttribute

类: slreq.Justification
命名空间: slreq

获取申述属性

语法

val = getAttribute(jt, propertyName)

说明

val = getAttribute(jt, propertyName) 获取申述jt 的申述属性propertyName

输入参数

全部展开

申述,指定为 slreq.Justification 对象。

申述属性名称。

示例: 'SID', 'CreatedOn', 'Summary'

示例

获取申述属性

% Load a requirement set file and get the handle to one justification 
rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx');
jt1 = find(rs, 'Type', 'Justification', 'ID', 'J3.5');

% Get the Summary of jt1
summaryJt1 = getAttribute(jt1, 'Summary')

summaryJt1 = 

  'Requirement Justification'

版本历史记录

在 R2018b 中推出

另请参阅