主要内容

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

next

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

获取下一个分配集搜索结果

自 R2022b 起

语法

result = next(finder)

说明

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

输入参数

全部展开

分配集查找器,指定为 systemcomposer.rptgen.finder.AllocationSetFinder 对象。

输出参量

全部展开

分配集结果,以 systemcomposer.rptgen.finder.AllocationSetResult 对象形式返回。

示例

全部展开

使用 AllocationSetFinderAllocationSetResult 类生成报告。

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

rpt = slreportgen.report.Report(output="AllocationSetFinderReport",...
CompileModelBeforeReporting=false);
add(rpt,TitlePage("Title","Allocation Sets"));
add(rpt,TableOfContents);

allocationSetFinder = AllocationSetFinder("AllocationSet.mldatx");
chapter = Chapter("Title","Allocation Set");

while hasNext(allocationSetFinder)
    allocationSets = next(allocationSetFinder);
    sect = Section(strcat("Allocations in ",allocationSets.Name));
    add(sect,allocationSets);
    add(chapter,sect);
end

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

版本历史记录

在 R2022b 中推出