이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.
Simulink.CloneDetection.Results 클래스
네임스페이스: Simulink.CloneDetection
설명
Simulink.CloneDetection.Results
클래스의 객체를 사용하여 복제 찾기 작업의 결과를 분석합니다.
생성
설명
Simulink.CloneDetection.findClones
함수는 실행 시 Simulink.CloneDetection.Results
클래스의 객체를 생성합니다. 이 개체를 Simulink.CloneDetection.replaceClones
함수의 입력 인수로 사용할 수 있습니다.
참고
복제 교체 기능이 잘못 실행되는 것을 방지하려면 Simulink.CloneDetection.Results
개체를 작성하면 안 됩니다.
속성
Clones
— 감지된 클론 정보
struct
감지된 클론 정보로, 구조체로 지정됩니다.
Summary
— 클론 감지 요약
struct
CloneGroups
, SimilarClones
, ExactClones
및 PotentialReusePercentage
의 개수가 구조체로 반환됩니다.
CloneGroups
— 클론 그룹 수
uint32
모델의 동일한 복제 패턴 수로, uint32 정수로 지정됩니다.
SimilarClones
— 유사한 클론 수
uint32
모델의 유사한 클론 수로, uint32 정수로 지정됩니다.
ExactClones
— 정확한 클론 수
uint32
모델의 정확한 클론 수로, uint32 정수로 지정됩니다.
Clones
— 총 클론 수
uint32
모델의 총 클론 수로, uint32 정수로 지정됩니다.
PotentialReusePercentage
— 재사용 기회 비율
struct
모델의 재사용 기회 비율로, 다음 필드를 사용하여 구조체로 지정됩니다.
Overall
— 존재하는 클론의 전체 비율Exact
— 존재하는 정확한 클론의 비율Similar
— 존재하는 유사한 클론의 비율
CloneGroups
— 동일한 일치 항목으로 간주되는 클론 그룹
struct
복제본으로 간주되는 하위 시스템은 구조로 지정됩니다.
Name
— 클론 그룹 이름
character vector
클론 그룹의 이름으로, 문자형 벡터로 지정됩니다.
Summary
— 클론 그룹 요약
struct
다음 필드를 사용하여 구조로 지정되는 클론 그룹 요약입니다.
ParameterDifferences
— 매개변수의 차이점 목록Clones
— 특정 클론 그룹의 하위 시스템 클론 수BlocksPerClone
— 복제본의 블록 요소 수CloneType
— 복제본이Similar
또는Exact
복제본인지 여부BlockDifference
— 블록 값의 차이
CloneList
— 하위 시스템 클론 목록
문자형 벡터로 구성된 배열
다음 필드를 사용하여 구조체로 지정되는 하위 시스템 복제본 목록입니다.
Name
— 복제 지역 이름PatternBlocks
— 복제 패턴을 형성하는 블록 목록DataTypeMatch
— 라이브러리 하위 시스템의 가져오기 데이터 유형이 모델에 있는 복제본의 가져오기 데이터 유형과 일치하는지 여부
ExceptionLog
— 예외 및 경고 로그
문자형 벡터로 구성된 배열
ExceptionLog
에는 문자형 벡터 배열로 지정된 복제 찾기 작업의 예외 및 경고가 포함되어 있습니다.
예제
모델에서 클론을 찾은 후 결과 분석
이 예에서는 복제본 찾기 작업의 결과를 분석하는 방법을 보여줍니다. 예제 모델은
ex_detect_clones
를 참조하세요.Simulink.CloneDetection.findClones
함수는cloneResults
개체에 정보를 저장합니다.openExample('ex_detect_clones'); cloneResults = Simulink.CloneDetection.findClones('ex_detect_clones')
cloneResults = Results with properties: Clones: [1×1 struct] ExceptionLog: ''
cloneResults.Clones
struct with fields: Summary: [1×1 struct] CloneGroups: [1×2 struct]
cloneResults
의 요약을 확인하세요.cloneResults.Clones.Summary
struct with fields: CloneGroups: 2 SimilarClones: 5 ExactClones: 0 Clones: 5 PotentialReusePercentage: [1×1 struct]
cloneResults.Clones.CloneGroups
1×2 struct array with fields: Name Summary CloneList
cloneResults.Clones.CloneGroups(1)
struct with fields: Name: 'Similar Clone Group 1' Summary: [1×1 struct] CloneList: {3×1 cell}
첫 번째 클론 그룹의 요약을 봅니다.
cloneResults.Clones.CloneGroups(1).Summary
struct with fields: ParameterDifferences: [1×1 struct] Clones: 3 BlocksPerClone: 8 CloneType: 'Similar' BlockDifference: 1
버전 내역
R2021a에 개발됨
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)