Main Content

next

Class: systemcomposer.rptgen.finder.AllocationSetFinder
Namespace: systemcomposer.rptgen.finder

Get next allocation set search result

Since R2022b

Syntax

result = next(finder)

Description

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

Input Arguments

expand all

Allocation set finder, specified as a systemcomposer.rptgen.finder.AllocationSetFinder object.

Output Arguments

expand all

Allocation set result, returned as a systemcomposer.rptgen.finder.AllocationSetResult object.

Examples

expand all

Use the AllocationSetFinder and AllocationSetResult classes to generate a report.

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

Version History

Introduced in R2022b