Move requirement down in hierarchy
tf = moveDown(req)
tf = moveDown(
req down one spot in the hierarchy, and returns
1 if the move is executed without error.
req cannot be moved to a new level in the
req — Requirement
Requirement, specified as an
tf — Paste success status
Paste success status, returned as a
0 of data type
Move a Requirement Down
This example shows how to move a requirement down in the hierarchy.
crs_req_func_spec requirement file, which describes a cruise control system, and assign it to a variable. Find the requirement with index
rs = slreq.load('crs_req_func_spec'); req1 = find(rs,'Type','Requirement','Index','3.1');
Move the requirement down one spot in the hierarchy. Confirm the move by checking the success status,
tf1, and the index.
tf1 = moveDown(req1)
tf1 = logical 1
ans = '3.2'
Find the requirement with index
3.4. This requirement is already at the bottom of its level in the hierarchy and cannot be moved down further, which you can verify by trying to move it down. Confirm that the move failed by checking the success status,
tf2, and the index.
req2 = find(rs,'Type','Requirement','Index','3.4'); tf2 = moveDown(req2)
tf2 = logical 0
ans = '3.4'
Clear the open requirement sets and link sets, and close the open models without saving changes.
slreq.clear; bdclose all;
Introduced in R2020b