主要内容

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

next

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

获取下一个分配列表的搜索结果

自 R2022b 起

语法

result = next(finder)

说明

result = next(finder) 获取下一个 AllocationList 搜索结果。

输入参数

全部展开

分配列表查找器,指定为 systemcomposer.rptgen.finder.AllocationListFinder 对象。

输出参量

全部展开

分配列表结果,以 systemcomposer.rptgen.finder.AllocationListResult 对象形式返回。

示例

全部展开

使用 AllocationListFinderAllocationListResult 类生成报告。

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

rpt = slreportgen.report.Report(output="AllocationListFinderReport",...
CompileModelBeforeReporting=false);
add(rpt,TitlePage("Title","Allocations"));
add(rpt,TableOfContents);

allocationListFinder = AllocationListFinder("AllocationSet.mldatx");
allocationListFinder.ComponentName = "mTestModel/Component1";
chapter = Chapter("Title","Allocations");
while hasNext(allocationListFinder)
    allocations = next(allocationListFinder);
    sect = Section("Title",allocationListFinder.ComponentName);
    add(sect,allocations);
    add(chapter,sect);
end

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

版本历史记录

在 R2022b 中推出