メインコンテンツ

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

アーキテクチャ モデルの作成

コンポーネント、ポート、インターフェイスを使用してアーキテクチャを表現する

システムの物理アーキテクチャ、機能アーキテクチャ、論理アーキテクチャをモデル化します。コンポーネント、ポート、接続を使用して視覚的な表現を作成します。コンポーネントは、システム設計で使用するアーキテクチャのシステムまたはサブシステムを表します。コンポーネントを分解すると、詳細を追加し、階層関係を定義できます。コンポーネントはコンポジション モデル間で再利用して参照できます。アーキテクチャ設計をコンポーネント間で再利用するには、アーキテクチャ モデルとサブシステム参照に変換します。バリアント コンポーネントを作成し、プログラムの規則に基づいて選択される複数の代替設計またはバリアントを実装します。

インターフェイス エディターを使用して、データ インターフェイス、物理インターフェイス、および値のタイプでコンポーネント間の情報交換を指定します。データ インターフェイスは、ポート内に格納されてコンポーネント間で交換されるデータの型、次元、単位、および構造を定義します。インターフェイスはローカルで定義してモデルと一緒に保存することも、データ ディクショナリで定義してモデル間で使用することもできます。

パラメーター エディターを使用して、コンポーネントとアーキテクチャのアーキテクチャ設計に対する内部パラメーターまたはオペレーション パラメーターを追加および編集します。モデルに含まれるコンポーネントから最上位アーキテクチャにパラメーターをプロモートします。

System Composer™ の編集時チェックを作成するか、sl_refresh_customizations を使用してカスタマイズを定義します。

ブロック

Componentアーキテクチャ モデルへのコンポーネントの追加
Reference ComponentLink to architectural definition or Simulink behavior
Adapter異なるインターフェイスをもつコンポーネントの接続

クラス

すべて展開する

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.BasePortAll ports in architecture model
systemcomposer.arch.ArchitecturePortArchitecture port
systemcomposer.arch.ComponentPortComponent port
systemcomposer.arch.BaseConnectorAll connectors in architecture model (R2021b 以降)
systemcomposer.arch.ConnectorConnector between ports
systemcomposer.arch.PhysicalConnectorConnector between physical ports (R2021b 以降)
systemcomposer.arch.ParameterParameter in System Composer (R2022b 以降)
systemcomposer.ValueTypeValue type in System Composer (R2021b 以降)
systemcomposer.interface.DataInterfaceData interface (R2021b 以降)
systemcomposer.interface.DataElementData element in data interface (R2021b 以降)
systemcomposer.interface.PhysicalDomainPhysical domain in System Composer (R2021b 以降)
systemcomposer.interface.PhysicalInterfacePhysical interface (R2021b 以降)
systemcomposer.interface.PhysicalElementPhysical element in physical interface (R2021b 以降)
systemcomposer.interface.DictionaryArchitectural data of data dictionary of architecture model

関数

すべて展開する

モデル管理

systemcomposer.createModelCreate System Composer model
systemcomposer.loadModelSystem Composer モデルを読み込む
systemcomposer.openModelSystem Composer モデルを開く
openOpen architecture model
saveSave architecture model or data dictionary
closeClose architecture model
createArchitectureModelCreate architecture model from component (R2021b 以降)
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
addPortAdd ports to architecture
getPortGet port from component
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 以降)
lookupSearch for architectural element
IsAdapterComponentDetermine component is adapter
getQualifiedNameGet model element qualified name
setMaskImageApply mask image to component (R2023b 以降)
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 (R2021b 以降)
createInterfaceCreate and set owned interface for port (R2021b 以降)
setNameSet name for value type, function argument, interface, or element
setDataTypeSet data type for value type (R2021b 以降)
setDimensionsSet dimensions for value type (R2021b 以降)
setUnitsSet units for value type (R2021b 以降)
setComplexitySet complexity for value type (R2021b 以降)
setMinimumSet minimum for value type (R2021b 以降)
setMaximumSet maximum for value type (R2021b 以降)
setDescriptionSet description for value type or interface (R2021b 以降)

インターフェイス管理

addInterfaceCreate named data interface in data dictionary
moveInterfaceMove interface to another data dictionary (R2023b 以降)
addPhysicalInterfaceCreate named physical interface in data dictionary (R2021b 以降)
removeInterfaceRemove named interface from interface dictionary
createInterfaceCreate and set owned interface for port (R2021b 以降)
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 以降)

要素管理

addElementAdd element
removeElementRemove element
getElementGet object for element
setNameSet name for value type, function argument, interface, or element
setTypeSet shared type on data element or function argument (R2021b 以降)
createOwnedTypeCreate owned value type on data element or function argument (R2021b 以降)
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 (R2021a 以降)
removeReferenceRemove reference to dictionary (R2021a 以降)
makeOwnedInterfaceSharedConvert owned interface to shared interface (R2022a 以降)

ツール

インターフェイス エディターローカルおよび共有のデータ ディクショナリ内のインターフェイスの作成と編集
パラメーター エディターAdd, edit, and promote parameters for architectures and components (R2022b 以降)

トピック

注目の例