Main Content

이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.

Simulink.ModelTransform.BusTransformation.Result 클래스

네임스페이스: Simulink.ModelTransform.BusTransformation

식별된 버스 선택기 및 버스 생성기 블록의 결과

R2022b 이후

설명

Simulink.ModelTransform.BusTransformation.Result 클래스의 객체를 사용하여 모델에서 적합한 Bus SelectorBus Creator 블록의 식별된 결과를 분석합니다.

생성

설명

Simulink.ModelTransform.BusTransformation.identify 함수는 실행 시 Simulink.ModelTransform.BusTransformation.Result 클래스의 객체를 생성합니다. 이 개체를 Simulink.ModelTransform.BusTransformation.refactor 함수의 입력 인수로 사용할 수 있습니다.

참고

모델 리팩토링 오류를 방지하려면 Simulink.ModelTransform.BusTransformation.Result 객체의 속성을 변경하지 마세요.

속성

모두 확장

최상위 모델의 이름으로, 문자형 배열 또는 string형 스칼라로 지정됩니다.

Simulink.ModelTransform.BlockInfo 객체의 배열로 지정된 버스 선택기 및 버스 생성기 블록 목록입니다.

Simulink.ModelTransform.BlockInfo 객체에는 다음 속성이 있습니다.

모델의 버스 블록 경로로, 문자형 벡터로 지정됩니다.

예제

모두 축소

적격 Bus SelectorBus Creator 블록의 결과를 분석합니다.

VirtualBusPortCreationModel 모델을 엽니다. 모델에서 Bus SelectorBus Creator 블록을 식별합니다.

openExample('VirtualBusPortCreationModel')
identificationResults = Simulink.ModelTransform.BusTransformation.identify('VirtualBusPortCreationModel')
identificationResults =

  Results with properties:

          TopModel: 'VirtualBusPortCreationModel'
    BusHierarchies: {4×1 cell}

결과는 Simulink.ModelTransform.BusTransformation.Result 개체 identificationResults에 저장됩니다.

identificationResults.BusHierarchies
    4×1 cell array

        {1×1 Simulink.ModelTransform.BlockInfo}
        {1×1 Simulink.ModelTransform.BlockInfo}
        {1×1 Simulink.ModelTransform.BlockInfo}
        {1×1 Simulink.ModelTransform.BlockInfo}
hierarchy_1 = identificationResults.BusHierarchies{1} 
hierarchy_1 = 

  BlockInfo with properties:

    Path: 'VirtualBusPortCreationModel/Subsystem2/Bus Selector 2'

버전 내역

R2022b에 개발됨