Main Content

next

Class: systemcomposer.rptgen.finder.AllocationListFinder
Package: systemcomposer.rptgen.finder

Get next allocation list search result

Syntax

result = next(finder)

Description

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

Input Arguments

expand all

Allocation list finder, specified as a systemcomposer.rptgen.finder.AllocationListFinder object.

Output Arguments

expand all

Allocation list result, returned as a systemcomposer.rptgen.finder.AllocationListResult object.

Examples

expand all

Use the AllocationListFinder and AllocationListResult classes to generate a report.

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);

Version History

Introduced in R2022b