Main Content

next

Class: systemcomposer.rptgen.finder.FunctionFinder
Namespace: systemcomposer.rptgen.finder

Get next function search result

Since R2022b

Syntax

result = next(finder)

Description

result = next(finder) gets the next Function search result.

Input Arguments

expand all

Function finder, specified as a systemcomposer.rptgen.finder.FunctionFinder object.

Output Arguments

expand all

Function result, returned as a systemcomposer.rptgen.finder.FunctionResult object.

Examples

expand all

Use the FunctionFinder and FunctionResult classes to generate a report.

import mlreportgen.report.*
import slreportgen.report.*
import systemcomposer.rptgen.finder.*

rpt = slreportgen.report.Report(output="FunctionFinderReport",...
CompileModelBeforeReporting=false);
add(rpt,TitlePage("Title","Software Functions"));
add(rpt,TableOfContents);

functionFinder = FunctionFinder("SoftwareModel");
functionFinder.ComponentName = "Component0";
chapter = Chapter("Title","Functions");
while hasNext(functionFinder)
    functions = next(functionFinder);
    sect = Section("Title",functionFinder.ComponentName);
    add(sect,functions);
    add(chapter,sect);
end

add(rpt,chapter);
close(rpt);
rptview(rpt);

Version History

Introduced in R2022b