Main Content

find

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

Find allocations to and from component

Syntax

result = find(finder)

Description

result = find(finder) finds allocations to or from a particular component for the 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="AllocationListResultReport",...
CompileModelBeforeReporting=false);
add(rpt,TitlePage("Title","Allocations"));
add(rpt,TableOfContents);

allocationListFinder = AllocationListFinder("AllocationSet.mldatx");
allocationListFinder.ComponentName = "mTestModel/Component1";
chapter = Chapter("Title",allocationListFinder.ComponentName);
result = find(allocationListFinder);
reporter = getReporter(result);

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

Version History

Introduced in R2022b