exponenta event banner

родитель

Класс: slreq. Оправдание
Пакет: slreq

Найти родительский элемент обоснования

Синтаксис

parentObj = parent(jt)

Описание

parentObj = parent(jt) возвращает родительский объект parentObj из slreq.Justification объект jt.

Входные аргументы

развернуть все

Выравнивание, указанное как slreq.Justification объект.

Выходные аргументы

развернуть все

Родитель привязки jt, возвращено как slreq.Justification объект или как slreq.ReqSet объект.

Примеры

Найти родительскую привязку

% Load a requirement set file and find justification objects
rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx');
myJustifications = find(rs, 'Type', 'Justification')

myJustifications = 

  1×13 Justification array with properties:

    Id
    Summary
    Description
    Keywords
    Rationale
    CreatedOn
    CreatedBy
    ModifiedBy
    SID
    FileRevision
    ModifiedOn
    Dirty
    Comments

% Find the parent of the first justification object
parentJust1 = parent(myJustifications(1))

parentJust1 = 

  ReqSet with properties:

             Description: ''
                    Name: 'My_Requirements_Set_1'
                Filename: 'C:\MATLAB\My_Requirements_Set_1.slreqx'
                Revision: 6
                   Dirty: 1
    CustomAttributeNames: {}

% Find the parent of the third justification object
parentJust3 = parent(myJustifications(3))

parentJust3 = 

  Justification with properties:

              Id: 'J1'
         Summary: 'Justifications'
     Description: ''
        Keywords: [0×0 char]
       Rationale: ''
       CreatedOn: 27-Feb-2014 10:15:38
       CreatedBy: 'Jane Doe'       
      ModifiedBy: 'John Doe'
             SID: 35
    FileRevision: 11
      ModifiedOn: 02-Aug-2017 13:49:40
           Dirty: 1
        Comments: [0×0 struct]

См. также

| |

Представлен в R2018b