Main Content

find

Class: systemcomposer.rptgen.finder.InterfaceFinder
Namespace: systemcomposer.rptgen.finder

Find information about interface

Since R2022b

Syntax

result = find(finder)

Description

result = find(finder) finds information about an interface for the Interface search result.

Input Arguments

expand all

Interface finder, specified as a systemcomposer.rptgen.finder.InterfaceFinder object.

Output Arguments

expand all

Interface result, returned as a systemcomposer.rptgen.finder.InterfaceResult object.

Examples

expand all

Use the InterfaceFinder and InterfaceResult classes to generate a report.

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

scExampleSmallUAV
model_name = "scExampleSmallUAVModel";
model = systemcomposer.loadModel(model_name);
rpt = slreportgen.report.Report(output="InterfaceResultReport",...
CompileModelBeforeReporting=false);
add(rpt,TitlePage("Title",sprintf('Interfaces in %s Model',model_name)));
add(rpt,TableOfContents);
chapter = Chapter("Title","Interfaces");

intfFinder = InterfaceFinder(model_name);
result = find(intfFinder);
for i=1:length(result)
    reporter = getReporter(result(i));
    add(chapter,reporter);
end

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

Version History

Introduced in R2022b