Holarch
コースのチャプター

トレーニング · トラック 6. Holarch への移行 · チャプター 6.4(全 5 チャプター)

6.4 他のツールのモデル 2:44

XMI から SysML モデルをインポートします。取り込まれるもの、取り込まれないもの、ビューの再構築方法を扱います。

Holarch 2.21 の画面です。

学習内容

  • UML/SysML モデル(XMI または Cameo の .mdzip プロジェクト)を開いているプロジェクトにインポートする
  • 他のツールからのインポートで取り込まれるものと取り込まれないものを説明する
  • インポートされた項目と関係をデータベースとトレースのセクションで確認する
  • インポートされた関係からビューを再構築する

Plant Inspection Drone の以前のモデルを、SysML ツールがエクスポートする交換形式である XMI ファイルからインポートします。ブロック、パーツ、フローと割り当てを持つアクティビティが、Asset、Action、関係として取り込まれます。ダイアグラムのレイアウトは取り込まれません。結果をデータベースとインポートされた Action 図で確認し、インポートされた関係から描いた Asset 図でビューを再構築します。

プロジェクトファイル

  • 開始時のプロジェクト (.holarch.json。プロジェクトを管理 → プロジェクトファイル ▾ → プロジェクトをインポート (.json)…)
  • 完成時のプロジェクト (.holarch.json。プロジェクトを管理 → プロジェクトファイル ▾ → プロジェクトをインポート (.json)…)

動画は holarch.app から再生されます。プライバシーポリシーをご覧ください。

演習

CubeSat EO-1 デモプロジェクトを使って、Holarch で実際に操作します。

  1. EO-1 デモプロジェクトを開きます(ない場合は作成します:プロジェクトを管理 → プロジェクトファイル ▾ → 新しいデモプロジェクト → CubeSat(ガイド付きシステムズエンジニアリング))。ニーズと要求 → インポートとエクスポートを開き、エクスポートのカードでUML/SysML (XMI) をエクスポート…をクリックし、形式を OMG XMI 2.5.1 (.xmi) のままにして、エクスポートをクリックします。このファイルは、Cameo や Enterprise Architect などの SysML ツールからのエクスポートの代わりです。
  2. プロジェクトを管理で+ 新しいプロジェクトをクリックし、名前を EO-1 Import Practice にしてプロジェクトを作成をクリックします。ニーズと要求 → インポートとエクスポートを開き、.xmi ファイルをドロップし、形式に UML/SysML (.xmi, .uml, .mdzip) と表示されていることを確認して、続行を 2 回クリックし、確認を読んでN 件の項目をインポートをクリックします。
  3. データベースで class:Asset を検索し、Payload Camera を選択して、トレースで EO-1 Spacecraft の一部であること、およびどの Action を実行するかを確認します。
  4. ダイアグラムを開き、+ 新しいダイアグラムをクリックし、Asset 図を選択し、ダイアグラムの対象で EO-1 Spacecraft を選択して、作成をクリックします。
  5. 実行する Actionをオンにして、各サブシステムの機能を一覧表示します。

新しいプロジェクトの Asset 図に、スペースクラフトのサブシステムと、それぞれが実行する Action が表示されれば完了です。

確認問題

  1. SysML v1 ツールのどのファイルを Holarch にインポートできますか。また、どのように入手しますか。
  2. インポート後にダイアグラムをすばやく再構築できるのはなぜですか。
  3. 同じモデルの新しいエクスポートをインポートしても、コピーができないのはなぜですか。
解答を表示
  1. SysML v1 ツールのどのファイルを Holarch にインポートできますか。また、どのように入手しますか。

    Cameo/MagicDraw、Enterprise Architect、Rhapsody、Papyrus の SysML 1.x プロファイル付き XMI 2.x(ツールからエクスポートします)、Cameo または MagicDraw の .mdzip プロジェクト(直接)、Papyrus の .uml ファイルです。要求だけなら ReqIF、テーブルなら Excel または CSV でも取り込めます。

  2. インポート後にダイアグラムをすばやく再構築できるのはなぜですか。

    他のツールのダイアグラムのレイアウトはインポートされませんが、関係はインポートされます。Holarch は、その関係から Asset 図、階層図などのダイアグラムを描きます。

  3. 同じモデルの新しいエクスポートをインポートしても、コピーができないのはなぜですか。

    インポートされた各項目は XMI ID を保持し、XMI ファイルでは「一致する既存のエンティティ」の既定が XMI ID になるため、次回のインポートでそれらの項目が更新されます。すでにある関係は重複して追加されません。

関連資料

トランスクリプト

トランスクリプトを表示 (ナレーションと画面の内容)

Introduction

Chapter four: models from other tools. Teams that used another modeling tool usually have a model to bring along, not just requirements. Holarch reads UML and SysML models in XMI, the exchange format that SysML tools export.

We import an older model of the Plant Inspection Drone. The file was made for this course, in the form a SysML tool exports.

What comes across

Be clear about what comes across. Blocks become assets, and their parts become the decomposition. Activities become actions, with their flow, and allocations say which asset performs each action. Diagram layouts do not come across: you rebuild the views you need in Holarch.

On screen: Card: what comes across.

Import the file

Open Needs and Requirements, then Import and Export, and drop the file. Holarch detects the format from the file: UML and SysML.

On screen: Needs & Requirements → Import and Export → drop the .xmi file → Analyzed.

Click Continue, and Continue again. Review lists ten new items and eleven relationships, and one activity whose flow comes from the file. Click Import, and the items are merged into the open project. Each one keeps its XMI ID, so importing a later export of the same model updates them instead of adding copies.

On screen: Continue → Map → Continue → Review → Import 10 items.

Check the result

Open the Database, and filter to assets: type class, colon, Asset. The drone, its five subsystems and their descriptions are all here.

On screen: Database → class:Asset.

Select the flight controller, and open Trace in its inspector. It is part of the drone, and it performs Fly Inspection Route: the allocation from the old model.

On screen: Flight Controller → inspector Trace.

The activity came across with its flow. Open Inspect a Tank on the Diagrams page: its action diagram runs the three steps in order.

On screen: Diagrams → Inspect a Tank action diagram.

Rebuild the views

The block diagrams did not come across, but the relationships did, so views are quick to rebuild. On the Diagrams page, choose New Diagram, then Asset Diagram, with the drone as its root: its subsystems are drawn at once.

On screen: Diagrams → New Diagram → Asset Diagram → root Plant Inspection Drone → Create.

Turn on Performed Actions, and each subsystem shows the functions it performs.

On screen: Show Performed Actions.

Recap

Let's recap. An XMI file brings blocks, parts, activities with their flow, and allocations, as assets, actions and relationships. Diagram layouts are rebuilt in Holarch, and the imported relationships make that quick.

Next, cleaning up after all these imports.