padv.builtin.task.FindClones Class
Namespace: padv.builtin.task
Superclasses: padv.Task
Task for detecting identical modeling patterns using Clone Detector
Description
The padv.builtin.task.FindClones
class provides tasks that can identify
clones in a model. Clones are modeling patterns with identical block types and connections. By
default, it creates separate tasks to find clones across model and to find clones using the
library in the Process Advisor app.
When task provided by the class detects clones in the model, it generates a clone detection
report in HTML format and saves the clone detection results in MAT files for further
analysis.
You can add the task to your process model by using the
method addTask
. After you add the task to your process model, you can run the
task from the Process Advisor app or by using the function runprocess
.
To view the source code for this built-in task, in the MATLAB® Command Window, enter:
open padv.builtin.task.FindClones
Note
Generation of the clone detection report is supported in Simulink® versions R2023b or later.
The padv.builtin.task.FindClones
class is a handle
class.
Creation
Description
creates
tasks for detecting identical modeling patterns using Clone Detector.task
= padv.builtin.task.FindClones
sets certain properties using one or more name-value arguments. For example, task
= padv.builtin.task.FindClones(Name=Value
)task
= padv.builtin.task.FindClones(Name="MyFindClonesTask")
creates a task with
the specified name.
You can use this syntax to set property values for Name
,
Title
, InputQueries
,
InputDependencyQuery
, IterationQuery
,
LaunchToolAction
, and LaunchToolText
.
The padv.builtin.task.FindClones
class also has other properties, but you cannot set
those properties during task creation.