padv.builtin.query.FindDesignModels Class
Namespace: padv.builtin.query
Superclasses: padv.Query
Query for finding units and components
Description
This class requires CI/CD Automation for Simulink Check.
The padv.builtin.query.FindDesignModels
class provides a query that can
return the units and components in your project. The query uses the same unit and component
classification as the Model Design and Model Testing Dashboards. A unit
is a functional entity in your software architecture that you can execute and test
independently or as part of larger system tests. A component is an
entity that integrates multiple testable units together. Some software development standards,
like certain model maintainability objectives, apply to both units and components in a
software architecture. You can use the FindDesignModels
query to find the
Simulink® and System Composer™ models in your design that you need to assess. If you only need to find the
units in your design, you can use the built-in query padv.builtin.query.FindUnits
instead. For information how to classify the models in
your project, see Categorize Models in Hierarchy as Components or Units.
You can use this query in your process model to find the units and components in your
project and run
tasks on
those artifacts. For example, the built-in task
padv.builtin.task.CollectMetrics
can collect model maintainability metrics
for the units and components in your project. The task uses
padv.builtin.query.FindDesignModels
as the iteration query to find and
iterate over those units and components.
The padv.builtin.query.FindDesignModels
class is a handle
class.
Creation
Description
creates a query for finding the units and components in your project.query
= padv.builtin.query.FindDesignModels()
sets certain properties using one or more name-value arguments. For example,
query
= padv.builtin.query.FindDesignModels(Name=Value
)query = padv.builtin.query.FindDesignModels(ExcludePath = "Control")
creates a query that finds the units and components in the project, but excludes units and
components that have "Control"
in the file address.
The padv.builtin.query.FindDesignModels
class also has other properties, but you cannot set
those properties during query creation.
Input Arguments
Properties
Methods
Examples
Capabilities and Limitations
This table identifies functionality that is supported by the query.
Functionality | Supported? |
---|---|
Input query for task | No. |
Iteration query for task | Yes. See IterationQuery. |
Note
If you use this query as an input query and specify non-empty values for
IncludeLabel
, ExcludeLabel
,
IncludePath
, or ExcludePath
, your task results
can unexpectedly become outdated. If you see this behavior, consider using a different
query, like padv.builtin.query.FindArtifacts
, instead. For more information and a list of
queries that are not impacted by this limitation, see Other Limitations.