systemcomposer.rptgen.report.DependencyGraph class
Package: systemcomposer.rptgen.report
Superclasses: slreportgen.report.Reporter
(Simulink Report Generator)
Description
Create a reporter that reports on a dependency graph for a System Composer™ architecture model artifact.
The systemcomposer.rptgen.report.DependencyGraph
class is a handle
class.
Creation
creates a reporter that reports on a dependency graph using the full path of the
artifact.reporter
= DependencyGraph("Source",fullpath
)
Properties
Source
— Full path to artifact
string
Full path to artifact, specified as a string.
Data Types: string
Layout
— Alignment of dependency graph
"Vertical"
(default) | "Horizontal"
Alignment of dependency graph, specified as "Vertical"
for a
vertically aligned dependency graph or "Horizontal"
for a
horizontally aligned dependency graph.
Data Types: string
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.
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 dependency graph template |
customizeReporter | Create custom dependency graph reporter class |
getClassFolder | Dependency graph class definition file location |
Examples
Generate DependencyGraph
Result Report
Use the DependencyGraph
class to generate a report.
import mlreportgen.report.* import slreportgen.report.* import systemcomposer.rptgen.finder.* rpt = slreportgen.report.Report(output="DependencyGraphResultReport",... CompileModelBeforeReporting=false); add(rpt,TitlePage("Title","Dependency Graph")); add(rpt,TableOfContents); modelName = "mTestModel.slx"; chapter = Chapter("Packaging"); section = Section('Title','Packaging'); reporter = systemcomposer.rptgen.report.DependencyGraph("Source",which(modelName)); append(chapter,reporter); add(rpt,chapter); close(rpt); rptview(rpt)
Version History
Introduced in R2022b
Abrir ejemplo
Tiene una versión modificada de este ejemplo. ¿Desea abrir este ejemplo con sus modificaciones?
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
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)