slreq.new

Create requirements set

Description

newReqSet = slreq.new(reqSetName) creates a requirements set newReqSet with the name specified by reqSetName in the current working folder.

newReqSet = slreq.new(reqSetPath) creates a requirements set newReqSet in the folder specified by reqSetPath.

Note

The folder specified by reqSetPath must exist on disk.

Examples

Create Requirements Set

% Create requirements set in current working folder
myReqSet1 = slreq.new('New_Req_Set_1')

myReqSet1 = 

  ReqSet with properties:

             Description: ''
                    Name: 'New_Req_Set_1'
                Filename: 'L:\New_Req_Set_1.slreqx'
                Revision: 1
                   Dirty: 1
    CustomAttributeNames: {}
               CreatedBy: 'John Doe'
               CreatedOn: 18-Feb-2008 20:54:52
              ModifiedBy: 'Jane Doe'
              ModifiedOn: 20-Jan-2016 12:44:12

% Create requirements set in a different directory
myReqSet2 = slreq.new('L:\Reqs_Work\New_Req_Set_2')

myReqSet2 = 

  ReqSet with properties:

             Description: ''
                    Name: 'New_Req_Set_2'
                Filename: 'L:\Reqs_Work\New_Req_Set_2.slreqx'
                Revision: 1
                   Dirty: 1
    CustomAttributeNames: {}
               CreatedBy: 'Jane Doe'
               CreatedOn: 11-Jan-2009 11:33:01
              ModifiedBy: 'John Doe'
              ModifiedOn: 18-Jan-2018 09:07:32

Input Arguments

collapse all

Name of the requirements set to create, specified as a character vector.

Folder to create requirements set in, specified as a character vector.

Output Arguments

collapse all

The created requirements set, specified as an slreq.ReqSet object.

See Also

Introduced in R2018a