systemcomposer.rptgen.report.Component class
Package: systemcomposer.rptgen.report
Superclasses: slreportgen.report.Reporter
(Simulink Report Generator)
Description
Create a reporter that reports on all components in a System Composer™ architecture model.
The systemcomposer.rptgen.report.Component
class is a handle
class.
Creation
creates a reporter that reports on a component using a reporter
= Component("Source",result
)systemcomposer.rptgen.finder.ComponentResult
object.
Properties
Source
— Component result
component result object
Component result, specified as a systemcomposer.rptgen.finder.ComponentResult
object.
Snapshot
— Custom snapshot reporter
reporter object
Custom snapshot reporter, specified as a reporter object. The default value is the slreportgen.report.Diagram
(Simulink Report Generator) reporter.
Properties
— Custom properties reporter
reporter object
Custom properties reporter, specified as a reporter object. The default value is the mlreportgen.report.BaseTable
(MATLAB Report Generator) reporter.
Stereotypes
— Custom properties reporter for stereotypes on component
reporter object
Custom properties reporter for stereotypes on component, specified as a reporter
object. The default value is the mlreportgen.report.BaseTable
(MATLAB Report Generator) reporter.
Ports
— Custom properties reporter for ports on component
reporter object
Custom properties reporter for ports on component, specified as a reporter object.
The default value is the mlreportgen.report.BaseTable
(MATLAB Report Generator) reporter.
Functions
— Custom properties reporter for functions on software component
reporter object
Custom properties reporter for functions on software component, specified as a
reporter object. The default value is the mlreportgen.report.BaseTable
(MATLAB Report Generator) reporter.
Children
— Child components
array of component reporter objects
Child components, specified as an array of systemcomposer.rptgen.report.Component
objects.
Data Types: string
IncludeSnapshot
— Whether to include snapshot table
true
or 1 | false
or 0
Whether to include snapshot table, specified as a logical.
Data Types: logical
IncludeProperties
— Whether to include properties table
true
or 1 | false
or 0
Whether to include properties table, specified as a logical.
Data Types: logical
IncludeStereotypes
— Whether to include stereotypes table
true
or 1 | false
or 0
Whether to include stereotypes table, specified as a logical.
Data Types: logical
IncludePorts
— Whether to include ports table
true
or 1 | false
or 0
Whether to include ports table, specified as a logical.
Data Types: logical
IncludeFunctions
— Whether to include functions table
true
or 1 | false
or 0
Whether to include functions table, specified as a logical.
Data Types: logical
TemplateSrc
— Source of template for this reporter
[]
(default) | character vector | string scalar | reporter or report | DOM document or document part
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.
TemplateName
— Name of template for this reporter
character vector | string scalar
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.
LinkTarget
— Hyperlink target for this reporter
[]
(default) | character vector | string scalar | mlreportgen.dom.LinkTarget
object
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
Public Methods
createTemplate | Create component template |
customizeReporter | Create custom component reporter class |
getClassFolder | Component class definition file location |
Examples
Generate Component
Result Report
Use the ComponentFinder
and ComponentResult
classes to generate a report.
import systemcomposer.rptgen.finder.* import mlreportgen.report.* import slreportgen.report.* import systemcomposer.query.* rpt = slreportgen.report.Report(output="ComponentResultReport",... CompileModelBeforeReporting=false); add(rpt,TitlePage("Title","Components")); add(rpt,TableOfContents); chapter = Chapter("Title","Components"); componentFinder = ComponentFinder("mTestModel"); componentFinder.Query = AnyComponent; result = find(componentFinder); for i = result reporter = getReporter(i); reporter.IncludeProperties = false; reporter.IncludeSnapshot = false; add(chapter,reporter); end add(rpt,chapter); close(rpt); rptview(rpt);
Version History
Introduced in R2022b
Beispiel öffnen
Sie haben eine geänderte Version dieses Beispiels. Möchten Sie dieses Beispiel mit Ihren Änderungen öffnen?
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)