Simulink.CloneDetection.Settings Class
Namespace: Simulink.CloneDetection
Conditions for findClones function
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
cloneDetectionSettingsobject fromSimulink.CloneDetection.Settingsclass.cloneDetectionSettings = Simulink.CloneDetection.Settings();
Change the property of
IgnoreSignalNametotrueto 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.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- 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)