이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
모델 리팩토링
Model Transformer와 Clone Detector를 사용하여 모델을 리팩토링하여 모델 구성 요소화, 가독성을 개선하고 재사용을 가능하게 합니다.
Model Transformer를 사용하여 다음을 수행할 수 있습니다.
Variant Source 또는 Variant Subsystem 블록으로 변환할 수 있는 모델링 패턴을 식별합니다. Variant Subsystem와 Variant Source 블록을 사용하면 Variant 선택지라고 하는 다양한 조건식에 대해 모델을 재사용하는 데 도움이 됩니다. 활성 모델은 고정된 구조와 사용자가 선택한 Variant 선택지에 따라 활성화되는 가변적 컴포넌트의 조합입니다.
제거할 자격이 있는 데이터 저장소 블록을 식별합니다. 데이터 저장소 블록을 제거하면 데이터 종속성이 명확하게 드러나 모델 가독성이 향상됩니다.
공유 Prelookup 블록과 여러 개의 Interpolation 블록으로 변환할 수 있는 n-D Lookup Table 블록을 식별합니다. 이러한 변환은 시뮬레이션 효율성을 향상시킵니다.
모델링 패턴에서 단일 Interpolation Using Prelookup 블록으로 변환할 수 있는 여러 개의 Interpolation Using Prelookup 블록을 식별합니다. 이 변환은 생성된 코드의 효율성을 향상시킵니다.
Clone Detector를 사용하여 다음을 수행할 수 있습니다.
복제본을 식별하고 라이브러리의 서브시스템 블록에 대한 링크로 복제본을 대체한 모델을 만듭니다. 복제본을 라이브러리 블록에 대한 링크로 바꾸면 구성 요소를 재사용할 수 있습니다.
모델의 복제본을 식별하여 서브시스템 참조로 바꿉니다.
함수
클래스
앱
Model Transformer | 모델을 최적화하기 위해 모델링 패턴을 식별하고 리팩터링하여 모델 변환을 지원합니다. |
Clone Detector | 복제본을 식별하고 교체하여 모델에서 모델 리팩토링 및 하위 시스템 재사용을 지원합니다. |
도움말 항목
Model Transformer
- Transform Model to Variant System
Use the Model Transformer tool to transform a model into a variant system. - Improve Model Readability by Eliminating Local Data Store Blocks
Use the Model Transformer tool to make data dependency explicit in a model by replacing data store blocks with either a direct signal line, a Delay block or a Merge block. - Improve Efficiency of Simulation by Optimizing Prelookup Operation of Lookup Table Blocks
Use the Model Transformer tool to convert multiple n-D Lookup Table blocks into shared Prelookup blocks and multiple Interpolation blocks. - Improve Code Efficiency by Merging Multiple Interpolation Using Prelookup Blocks
Use the Model Transformer tool to transform a modeling pattern with multiple Interpolation Using Prelookup blocks into a single Interpolation Using Prelookup block.
Clone Detector
- Enable Component Reuse by Using Clone Detection
Use the Clone Detector app to replace subsystem clones. - Identify and Replace Clones using Model Libraries
Use the Clone Detector app to replace clones with library blocks. - Replace Exact Clones with Subsystem Reference
Use the Clone Detector app to replace exact clones with subsystem reference blocks. - Detect and Replace Subsystem Clones Programmatically
Use the Clone Detection APIs to identify and replace subsystem clones in a model. - Find Clones Across the Model
Use the Clone Detector to identify and replace clones across the model. - Exclude Components from Clone Detection
Exclude components such as subsystems or referenced models from clone detection analysis.