주요 콘텐츠

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

아키텍처 모델 작성하기

R2026a
컴포넌트, 포트, 인터페이스를 사용하여 아키텍처 표현

시스템의 물리 아키텍처, 기능 아키텍처, 논리 아키텍처를 모델링합니다. 컴포넌트, 포트, 연결을 사용하여 시각적 표현을 만듭니다. 컴포넌트는 시스템 설계에 사용되는 아키텍처 시스템 또는 서브시스템을 나타냅니다. 컴포넌트를 분해하여 세부 정보를 추가하고 계층적 관계를 정의할 수 있으며, 컴포지션 모델 간에 컴포넌트를 재사용하고 참조할 수 있습니다. 아키텍처 모델 참조 및 서브시스템 참조로 변환하여 컴포넌트 간 아키텍처 설계를 재사용합니다. Variant 컴포넌트를 만들고 프로그래밍 규칙에 따라 선택된 여러 설계 대안 또는 Variant를 구현합니다.

[Interface Editor]를 사용하여 데이터 인터페이스, 물리 인터페이스, 값 유형으로 컴포넌트 간의 정보 교환을 지정합니다. 데이터 인터페이스는 포트 내에 포함되고 컴포넌트 간에 교환되는 데이터의 유형, 차원, 단위, 구조를 정의합니다. 모델과 함께 저장되는 인터페이스를 로컬로 정의할 수도 있고, 여러 모델에서 사용할 인터페이스를 데이터 딕셔너리에 정의할 수도 있습니다.

[Parameter Editor]를 사용하여 컴포넌트 및 아키텍처의 아키텍처 설계를 위한 고유 파라미터 또는 운용 파라미터를 추가하고 편집합니다. 모델에 포함된 컴포넌트의 파라미터를 최상위 아키텍처로 승격합니다.

System Composer™에 대한 편집 시 검사를 작성하거나 sl_refresh_customizations를 사용하여 사용자 지정을 정의합니다.

블록

Component blockComponentAdd components to architecture model
Port iconPortAdd ports to components in architecture model
Reference Component blockReference ComponentLink to architectural definition or Simulink behavior
Adapter blockAdapter인터페이스가 서로 다른 컴포넌트 연결

클래스

모두 확장

systemcomposer.arch.ElementAll model elements
systemcomposer.arch.ArchitectureArchitecture in model
systemcomposer.arch.ModelSystem Composer model
systemcomposer.arch.BaseComponentAll components in architecture model
systemcomposer.arch.ComponentSystem Composer component
systemcomposer.arch.AdapterSystem Composer adapter (R2026a 이후)
systemcomposer.arch.BasePortAll ports in architecture model
systemcomposer.arch.ArchitecturePortArchitecture port
systemcomposer.arch.ComponentPortComponent port
systemcomposer.arch.PortElementElement of port in System Composer model (R2026a 이후)
systemcomposer.arch.BaseConnectorAll connectors in architecture model
systemcomposer.arch.ConnectorConnector between ports
systemcomposer.arch.PhysicalConnectorConnector between physical ports
systemcomposer.arch.ParameterParameter in System Composer (R2022b 이후)
systemcomposer.ValueTypeValue type in System Composer
systemcomposer.interface.DataInterfaceData interface
systemcomposer.interface.DataElementData element in data interface
systemcomposer.interface.PhysicalDomainPhysical domain in System Composer
systemcomposer.interface.PhysicalInterfacePhysical interface
systemcomposer.interface.PhysicalElementPhysical element in physical interface
systemcomposer.interface.DictionaryArchitectural data of data dictionary of architecture model

함수

모두 확장

모델 관리

systemcomposer.createModelCreate System Composer model
systemcomposer.loadModelLoad System Composer model
systemcomposer.openModelOpen System Composer model
openOpen architecture model
saveSave architecture model or data dictionary
closeClose architecture model
createArchitectureModelCreate architecture model from component
createArchitectureSubsystemCreate architecture subsystem from component (R2023a 이후)
linkToModelLink component to model
inlineComponentRemove reference architecture or behavior from component
systemcomposer.extractArchitectureFromSimulinkExtract architecture from Simulink model
systemcomposer.exportToAUTOSARArchitectureExport current model to new AUTOSAR architecture model (R2023b 이후)
systemcomposer.exportToSoftwareArchitectureExport current model to new software architecture model (R2023b 이후)
systemcomposer.exportToVersionExport architecture model and dependencies to previous release of System Composer

모델 빌드

addComponentAdd components to architecture
getComponentGet component by name
addPortAdd ports to architecture
getPortGet port by name
getConnectorToFind connector between ports
setNameSet name for port
connectCreate architecture model connections
smartConnectAuto-connect select components in model using port names or custom policy (R2025a 이후)
getUnconnectedPortsGet unconnected ports (R2025a 이후)
getSmartConnectPolicyGet smart connect policy (R2025a 이후)
setSmartConnectPolicySet smart connect policy (R2025a 이후)
IsAdapterComponent컴포넌트가 어댑터인지 여부 확인
setMaskImageApply mask image to component (R2023b 이후)
currentGet object of currently selected element
getQualifiedNameGet model element qualified name
lookupSearch for architectural element
destroyRemove model element

파라미터 관리

addParameterAdd parameter to architecture (R2022b 이후)
getParameterGet parameter from architecture or component (R2022b 이후)
getParameterPromotedFromGet source parameter promoted from (R2022b 이후)
resetToDefaultResets parameter value to default (R2022b 이후)
getEvaluatedParameterValueGet evaluated value of parameter from element (R2022a 이후)
getParameterNamesGet parameter names on element (R2022a 이후)
getParameterValueGet value of parameter (R2022a 이후)
setParameterValueSet value of parameter (R2022a 이후)
setUnitSet units on parameter value (R2022a 이후)
resetParameterToDefaultReset parameter on component to default value (R2022a 이후)

값 유형 관리

addValueTypeCreate named value type in data dictionary
createInterfaceCreate and set owned interface for port
setNameSet name for value type, function argument, interface, or element
setDataTypeSet data type for value type
setDimensionsSet dimensions for value type
setUnitsSet units for value type
setComplexitySet complexity for value type
setMinimumSet minimum for value type
setMaximumSet maximum for value type
setDescriptionSet description for value type or interface

인터페이스 관리

addInterfaceCreate named data interface in data dictionary
moveInterfaceMove interface to another data dictionary (R2023b 이후)
addPhysicalInterfaceCreate named physical interface in data dictionary
removeInterfaceRemove named interface from interface dictionary
createInterfaceCreate and set owned interface for port
setNameSet name for value type, function argument, interface, or element
setInterfaceSet interface for port
getInterfaceGet object for named interface in dictionary
getInterfaceNamesGet names of all interfaces in dictionary
systemcomposer.getSelectedInterfacesGet selected interfaces in Interface Editor (R2024a 이후)
addAdapterAdd adapter to architectural elements (R2026a 이후)
addInputCreate new inputs on adapter (R2026a 이후)
getInputGet adapter input port by name (R2026a 이후)
connectToConnect adapter to architectural elements (R2026a 이후)
updatePositionUpdate position of adapter based on destination port (R2026a 이후)
addMappingAdd new mapping entries to adapter (R2026a 이후)
removeMappingRemove mapping entries for input elements in adapter (R2026a 이후)

요소 관리

addElementAdd element
removeElementRemove element
getElementGet object for element
getSubElementGet child port element by name (R2026a 이후)
getPortElementFind port element by name (R2026a 이후)
setNameSet name for value type, function argument, interface, or element
setTypeSet shared type on data element or function argument
createOwnedTypeCreate owned value type on data element or function argument
getSourceElementGets data elements selected on source port for connection
getDestinationElementGets data elements selected on destination port for connection

딕셔너리 관리

systemcomposer.createDictionaryCreate data dictionary
systemcomposer.openDictionaryOpen data dictionary
saveToDictionarySave interfaces to dictionary
isOpenDetermine whether dictionary is open (R2024a 이후)
getFileNameGet absolute filename for dictionary (R2024a 이후)
linkDictionaryLink data dictionary to architecture model
unlinkDictionaryRemove linked data dictionary from architecture model
addReferenceAdd reference to dictionary
removeReferenceRemove reference to dictionary
getReferencedDictionariesGet referenced dictionaries (R2026a 이후)
makeOwnedInterfaceSharedConvert owned interface to shared interface (R2022a 이후)

툴

[Interface Editor]로컬 및 공유 데이터 딕셔너리에 인터페이스 생성 및 작성
[Parameter Editor]Add, edit, and promote parameters for architectures and components (R2022b 이후)

도움말 항목

추천 예제