Simulink.CloneDetection.Settings Class
Namespace: Simulink.CloneDetection
Description
Use objects of the Simulink.CloneDetection.Settings
class to
specify certain conditions when calling the Simulink.CloneDetection.findClones
function.
Creation
Description
Simulink.CloneDetection.Settings
creates an object of the
Simulink.CloneDetection.Settings
class.
Properties
Option to ignore signal name differences while detecting clones, specified
as false
or true
.
Option to ignore block property differences while detecting clones,
specified as false
or true
.
Option to exclude Model Reference blocks from search clone patterns,
specified as false
or true
.
Option to exclude library links from search clone patterns, specified as
false
or true
.
Number of differences allowed to consider a pattern as a clone, specified
as a uint32
integer.
Option to replace exact clones with Subsystem Reference blocks, specified
as false
or true
.
Path to libraries used to replace patterns in the model, specified as a character vector or array of character vectors.
Path to folders that contain the models, specified as a character vector or array of character vectors.
Option to find clones in models from the folders present inside the
specified folder, specified as false
or
true
.
This property applies only when you provide input to
Folders
.
Option to detect clones anywhere across the model, specified as
false
or true
.
Minimum number of blocks in a region required to consider a pattern as a
clone, specified as a uint32
integer.
This property applies only when DetectClonesAcrossModel
is true
.
Minimum number of clone pattern occurrences required to consider a pattern
as a clone group, specified as a uint32
integer.
This property applies only when DetectClonesAcrossModel
is true
.
Option to exclude inactive regions or commented-out regions from search
clone patterns, specified as false
or
true
.
Option to determine whether the inport data types of the library subsystem
matches the inport data types of the clones in the model, specified as
false
or true
.
Methods
addLibraries | Add library with subsystems |
removeLibraries | Remove library |
addFolders | Add folders with models |
removeFolders | Remove folder |
Examples
Create a
cloneDetectionSettings
object fromSimulink.CloneDetection.Settings
class.cloneDetectionSettings = Simulink.CloneDetection.Settings();
Change the property of
IgnoreSignalName
totrue
to ignore signal name differences while detecting clones.cloneDetectionSettings.IgnoreSignalName = true
cloneDetectionSettings = Settings with properties: IgnoreSignalName: 1 IgnoreBlockProperty: 0 ExcludeModelReferences: 0 ExcludeLibraryLinks: 0 SelectedSystemBoundary: '' FindClonesRecursivelyInFolders: 1 ParamDifferenceThreshold: 50 ReplaceExactClonesWithSubsystemReference: 0 Libraries: {} Folders: {} DetectClonesAcrossModel: 0 ExcludeInactiveRegions: 0 DataTypeCheck: 0
Version History
Introduced in R2021a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.
Amerika
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- 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)