Main Content

systemcomposer.rptgen.finder.RequirementSetFinder class

Package: systemcomposer.rptgen.finder
Superclasses: mlreportgen.finder.Finder (MATLAB Report Generator)

Find requirements

Description

The systemcomposer.rptgen.finder.RequirementSetFinder class searches for information about all requirements in a requirement set.

Creation

finder = RequirementSetFinder(Container) creates a finder that finds requirements in a given requirement set.

Note

This finder provides two ways to get search results:

  1. To return the search results as an array, use the find method. Add the results directly to a report or process the results in a for loop.

  2. To iterate through the results one at a time, use the hasNext and next methods in a while loop.

Neither option has a performance advantage.

Properties

expand all

Requirement set with the .slreqx extension, specified as a string.

Example: f = RequirementSetFinder("System_Reqs.slreqx")

Data Types: string

Level to find requirements, specified as a numeric value.

Attributes:

GetAccess
public
SetAccess
public

Data Types: uint64 | inf

Properties of objects to find, specified as a cell array of name-value arguments. The finder returns only objects that have the specified properties with the specified values.

Example: f.Properties = {'Gain','5'}

Data Types: char

Methods

expand all

Version History

Introduced in R2022b