メインコンテンツ

アーキテクチャおよびアーティファクトの整理と共有

プロジェクトで大規模なアーキテクチャ モデルを作成し、ソース管理と連携して、差分の比較およびマージを行います。

大規模なアーキテクチャ モデリング プロジェクトを整理するには、System Composer™ で Simulink® プロジェクトを使用します。プロジェクトを使用して、必要なファイルを検索したり、ファイルや設定を管理して共有したり、ソース管理を操作したりできます。アーキテクチャ モデルとそのアーティファクト (データ ディクショナリ、要件、割り当て、プロファイル、動作モデル、テスト ファイル、スクリプトなど) をプロジェクトに格納します。System Composer 比較ツールSystem Composer 3-way マージ ツールを使用して System Composer アーキテクチャ モデルを比較し、変更点を確認、マージ、および保存します。

プロジェクトをはじめて使用する場合、概要については MATLAB® ドキュメンテーションのプロジェクトを参照してくださいSimulink 固有のガイダンスについては、Simulink における MATLAB プロジェクトとはおよびSimulink での MATLAB プロジェクトの使用を参照してください。

SysML® v2 に準拠したリモート リポジトリに System Composer からプログラムでアクセスできます。systemcomposer.sysml.exportFromMLProject を使用して、SysML v2 のテキスト ファイルに MATLAB プロジェクトをエクスポートすることもできます。

クラス

すべて展開する

systemcomposer.arch.ArchitectureArchitecture in model
systemcomposer.arch.ModelSystem Composer model
systemcomposer.interface.DictionaryArchitectural data of data dictionary of architecture model
systemcomposer.sysml.RepositoryInterface to access projects in SysML v2 repository (R2026a 以降)
systemcomposer.sysml.ProjectInterface to access contents of SysML v2 project (R2026a 以降)
systemcomposer.sysml.WorkspaceCache for SysML v2 project snapshot when workspace is created (R2026a 以降)
systemcomposer.sysml.ElementSingle SysML v2 project element or relationship (R2026a 以降)

関数

すべて展開する

openProject既存のプロジェクトの読み込み
matlab.project.createProject空のプロジェクトを作成
matlab.project.deleteProjectフォルダーの管理を停止してプロジェクト定義ファイルを削除
matlab.project.rootProjectルート プロジェクトの取得
addFileファイルまたはフォルダーをプロジェクトに追加
connectConnect to repository server by URL (R2026a 以降)
getProjectsGet all projects in SysML v2 repository (R2026a 以降)
getProjectByIdGet project by ID in SysML v2 repository (R2026a 以降)
createWorkspaceCreate SysML v2 workspace (R2026a 以降)
getElementsGet all elements in SysML v2 workspace (R2026a 以降)
getRootElementsGet root elements in SysML v2 workspace (R2026a 以降)
getElementRelationshipsGet relationship elements (R2026a 以降)
getElementGet element with provided ID (R2026a 以降)
getElementsByTypeAndNameGet elements by type and name (R2026a 以降)
executeQueryExecute query (R2026a 以降)
getMembershipHierarchyGet elements in membership hierarchy of element (R2026a 以降)
getOwnershipHierarchyGet elements in ownership hierarchy of element (R2026a 以降)
getAncestorsGet SysML v2 ancestors (R2026a 以降)
getDescendantsGet SysML v2 descendants (R2026a 以降)
getUsagesGet SysML v2 usages (R2026a 以降)
getGet element property (R2026a 以降)
metaGet element metaclass (R2026a 以降)
systemcomposer.sysml.exportFromMLProjectExport project to SysML v2 textual file (R2026a 以降)
systemcomposer.createModelCreate System Composer model
systemcomposer.loadModelSystem Composer モデルを読み込む
systemcomposer.openModelSystem Composer モデルを開く
openアーキテクチャ モデルを開く
saveSave architecture model or data dictionary
closeアーキテクチャ モデルを閉じる
createArchitectureModelCreate architecture model from component (R2021b 以降)
createArchitectureSubsystemCreate architecture subsystem from component (R2023a 以降)
linkToModelLink component to model
inlineComponentRemove reference architecture or behavior from component
systemcomposer.exportToVersionExport architecture model and dependencies to previous release of System Composer
systemcomposer.createDictionaryCreate data dictionary
systemcomposer.openDictionaryOpen data dictionary
saveToDictionarySave interfaces to dictionary
linkDictionaryLink data dictionary to architecture model
unlinkDictionaryRemove linked data dictionary from architecture model
moveInterfaceMove interface to another data dictionary (R2023b 以降)
addReferenceAdd reference to dictionary
removeReferenceRemove reference to dictionary
makeOwnedInterfaceSharedConvert owned interface to shared interface (R2022a 以降)

ツール

アーキテクチャ データ エディターManage architectural data (R2023b 以降)
インターフェイス エディターローカルおよび共有のデータ ディクショナリ内のインターフェイスの作成と編集
プロファイル エディターステレオタイプとプロパティをもつプロファイルの作成および管理
System Composer 比較ツールDiff and merge changes between System Composer architecture models (R2022a 以降)
System Composer 3-way マージ ツールResolve conflicts in System Composer architecture models (R2023b 以降)

トピック

注目の例