メインコンテンツ

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

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

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

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

SysML® v2 に準拠したリモート リポジトリに System Composer からプログラムでアクセスできます。SysML v2 リポジトリ API には、リモート リポジトリから返される SysML v2 要素のクラスベースのイントロスペクションが含まれています。この API には、SysML v2 メタモデルを反映した MATLAB クラス階層が含まれており、対話的な探索と型依存ロジックがサポートされています。isa、class、properties などのメタプログラミング関数を使用して、SysML v2 の要素タイプを検査し、利用可能なプロパティを MATLAB で直接検出できるようになりました。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 以降)
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 meta-class (R2026a 以降)
systemcomposer.sysml.exportFromMLProjectプロジェクトを SysML v2 テキスト ファイルにエクスポートする (R2026a 以降)
systemcomposer.createModelCreate System Composer model
systemcomposer.loadModelSystem Composer モデルを読み込む
systemcomposer.openModelSystem Composer モデルを開く
openアーキテクチャ モデルを開く
saveアーキテクチャ モデルまたはデータ ディクショナリを保存する
closeアーキテクチャ モデルを閉じる
createArchitectureModelCreate architecture model from component
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.createDictionaryデータ ディクショナリを作成する
systemcomposer.openDictionaryデータ ディクショナリを開く
saveToDictionarySave interfaces to dictionary
linkDictionaryデータ ディクショナリをアーキテクチャ モデルにリンクする
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 以降)

ツール

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

トピック

注目の例