Main Content

systemcomposer.rptgen.report.AllocationList class

Package: systemcomposer.rptgen.report
Superclasses: slreportgen.report.Reporter (Simulink Report Generator)

Allocation list reporter

Description

Create a reporter that reports on all the components to and from which a particular component has been allocated in a System Composer™ architecture model.

The systemcomposer.rptgen.report.AllocationList class is a handle class.

Creation

reporter = AllocationList("Source",result) creates a reporter that reports on allocations around the component defined by the ComponentName property using a systemcomposer.rptgen.finder.AllocationListResult object.

Properties

expand all

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

Component from which specified component has been allocated, specified as an mlreportgen.dom.OrderedList (MATLAB Report Generator) object.

Component to which specified component has been allocated, specified as an mlreportgen.dom.OrderedList (MATLAB Report Generator) object..

Whether to report on allocated-from list, specified as a logical.

Data Types: logical

Whether to report on allocated-to list, specified as a logical.

Data Types: logical

Source of the template for this reporter, specified as one of these options:

  • Character vector or string scalar that specifies the path of the file that contains the template for this reporter

  • Reporter or report whose template is used for this reporter or whose template library contains the template for this reporter

  • DOM document or document part whose template is used for this reporter or whose template library contains the template for this reporter

The specified template must be the same type as the report to which this reporter is appended. For example, for a Microsoft® Word report, TemplateSrc must be a Word reporter template. If the TemplateSrc property is empty, this reporter uses the default reporter template for the output type of the report.

Name of template for this reporter, specified as a character vector or string scalar. The template for this reporter must be in the template library of the template source (TemplateSrc) for this reporter.

Hyperlink target for this reporter, specified as a character vector or string scalar that specifies the link target ID or as an mlreportgen.dom.LinkTarget (MATLAB Report Generator) object. A character vector or string scalar value is converted to a LinkTarget object. The link target immediately precedes the content of this reporter in the output report.

Methods

expand all

Examples

collapse 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