メインコンテンツ

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

シーケンス図とアーキテクチャ モデルの同期

R2022a 以降

この例では、シーケンス図とアーキテクチャ モデルの間で一貫性を保つ方法を説明します。

モデルを開きます。

model = systemcomposer.openModel("mRetargetElements");

Architecture Views Galleryを開きます。

openViews(model)

アーキテクチャ モデルからシーケンス図への変更のプル

1.[ビュー ブラウザー]RepairExample シーケンス図を選択します。ChildComponent という名前のライフラインを検証します。

View Browser of the Architecture Views Gallery with the RepairExample sequence diagram selected.

2.モデル キャンバスに戻ります。ChildComponent コンポーネントをマーキー選択します。省略記号 (...) メニューをポイントし、[Create Architecture] を選択します。新しいコンポーネントの名前を Component として指定します。ChildComponent コンポーネントが Component コンポーネントの子になりました。

Component named Component with a child component inside of it.

3.シーケンス図 RepairExample[一貫性のチェック] をクリックします。シーケンス図が一貫性のない状態になっており、ChildComponent ライフラインは図のルート レベルではなくなっているため強調表示されます。

The RepairExample sequence diagram with the ChildComponent lifeline highlighted in yellow.

4.ChildComponent ライフラインを選択し、ツールストリップで [修復] をクリックします。アーキテクチャ モデル mRetargetElements から変更がプルされた後、シーケンス図 RepairExample が更新されます。

The RepaitExample sequence diagram with the Component and ChildComponent lifelines.

シーケンス図からアーキテクチャ モデルへの変更のプッシュ

1.[ビュー ブラウザー]CreateInArchitecture シーケンス図を選択します。

View Browser of the Architecture Views Gallery with the CreateInArchitecture sequence diagram selected.

2.2 つのライフラインとメッセージを含むシーケンス図の内容をマーキー選択します。

The CreateInArchitecture sequence diagram with the DoesNotExistSrc and DoesNotExistDst lifelines and a message selected.

3.ツールストリップで [アーキテクチャで作成] をクリックします。シーケンス図から変更がプッシュされた後、アーキテクチャ モデル mRetargetElements が更新されます。

The DoesNotExistSrc and DoesNotExistDst components connected with the Src and Dst ports.

ライフラインのターゲットの再指定とアーキテクチャ モデルでの新しい接続の作成

1.[ビュー ブラウザー]RetargetThenCocreate シーケンス図を選択します。

View Browser of the Architecture Views Gallery with the RetargetThenCocreate sequence diagram selected.

2.シーケンス図で B ライフラインを選択し、[アーキテクチャ要素] メニューのリストから C を選択します。シーケンス図が一貫性のない状態になり、メッセージが強調表示されます。

The RetargetThenCocreate sequence diagram with the message between lifeline A and lifeline C highlighted in yellow.

3.メッセージを選択し、ツールストリップで [アーキテクチャで作成] をクリックします。アーキテクチャ モデル mRetargetElements に新しい接続が作成されます。

Two architecture models side by side. In the model on the left, Component A and Component B are connected. Component C has no connections. In the model on the right, Component A and Component B are connected. Component C is connected to Component A.

参考

ツール

関数

オブジェクト

トピック