주요 콘텐츠

아키텍처 모델의 인터페이스 작성하기

R2026b
포트와 인터페이스를 사용하여 아키텍처 작성 및 수정

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

블록

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.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

함수

모두 확장

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 이후)

툴

인터페이스 편집기로컬 및 공유 데이터 딕셔너리에 인터페이스 생성 및 작성
유형 편집기Create, modify, and manage types, such as bus objects

추천 예제