主要内容

本页采用了机器翻译。点击此处可查看最新英文版本。

find

类: systemcomposer.rptgen.finder.FunctionFinder
命名空间: systemcomposer.rptgen.finder

查找有关函数的信息

自 R2022b 起

语法

result = find(finder)

说明

result = find(finder) 查找 Function 搜索结果的函数信息。

输入参数

全部展开

函数查找器,指定为 systemcomposer.rptgen.finder.FunctionFinder 对象。

输出参量

全部展开

函数结果,以 systemcomposer.rptgen.finder.FunctionResult 对象的形式返回。

示例

全部展开

使用 FunctionFinderFunctionResult 类生成报告。

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

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");
result = find(functionFinder);
functionsTable = Function("Source",result);

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

版本历史记录

在 R2022b 中推出