Main Content

slreportgen.finder.DiagramResult class

Package: slreportgen.finder
Superclasses: mlreportgen.finder.Result

Create diagram result finder object

Description

Diagram search result object for a Simulink® or Stateflow® diagram.

finder = DiagramResult(Name=Value) sets properties using name-value pairs. You can specify multiple name-value pair arguments in any order.

Construction

result = DiagramResult(diagram) creates a search result object for a Simulink or Stateflow diagram. The result object contains the specified Simulink or Stateflow diagram. Diagram finder find methods create and return instances of this object for each diagram that they find. You do not need to create this object yourself.

Input Arguments

expand all

Simulink or Stateflow diagram, specified by its path or its handle.

Properties

expand all

This read-only property contains a handle to the diagram returned by this result.

This read-only property specifies the name of the model or block that contains the diagram returned by this result.

This read-only property specifies the type of the diagram returned by this result.

Example: "Simulink.BlockDiagram"

This read-only property returns the path of the container of the diagram returned by this result. An example of a container of a diagram is a subsystem block.

Example: "slrgex_sf_car/Engine"

Additional information to add to this result. You can set it to any type of value.

Methods

Public Methods

getDefaultSummaryPropertiespropList = getDefaultSummaryProperties(resultObject,TypeSpecificProperties) returns the list of finder result class properties that are included by default in a summary table.
getDefaultSummaryTableTitletableTitle = getDefaultSummaryTableTitle(resultObject,TypeSpecificTitle) returns the default title for a summary table for a finder result object of type resultObject.
getPropertyValuespropVals = getPropertyValues(resultObject,propNames) returns the values of the properties specified in propNames in a cell array. Access the properties of the result object or the diagram represented by the finder result object by specifying the required property names in propNames.
getReporterLinkTargetIDtargetID = getReporterLinkTargetID(resultObject) returns the link target ID of the reporter associated with the finder result object. Use the link target ID to add a hyperlink to the reporter from any part of the report.

Copy Semantics

Handle. To learn how handle classes affect copy operations, see Copying Objects.

Version History

Introduced in R2017b