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 (Guided systems engineering)에서 만듭니다). 니즈 및 요구사항 → 가져오기 및 내보내기를 열고, 내보내기 카드에서 UML/SysML(XMI) 내보내기…를 클릭하고, 형식을 OMG XMI 2.5.1 (.xmi)로 유지한 채 내보내기를 클릭합니다. 이 파일은 Cameo나 Enterprise Architect 같은 SysML 도구에서 내보낸 파일을 대신합니다.
  2. 프로젝트 관리에서 + 새 프로젝트를 클릭하고, 이름을 EO-1 Import Practice로 지정한 다음 프로젝트 만들기를 클릭합니다. 니즈 및 요구사항 → 가져오기 및 내보내기를 열고 .xmi 파일을 끌어다 놓은 뒤, 형식에 UML/SysML (.xmi, .uml, .mdzip)이 표시되는지 확인하고, 계속을 두 번 클릭하고, 검토를 읽은 다음 N개 항목 가져오기를 클릭합니다.
  3. 데이터베이스에서 class:Asset을 검색하고 Payload Camera를 선택한 다음, 추적에서 이 항목이 EO-1 Spacecraft의 일부인지, 어떤 Action을 수행하는지 확인합니다.
  4. 다이어그램을 열고 + 새 다이어그램을 클릭한 다음 Asset 다이어그램을 선택하고, 다이어그램 대상에서 EO-1 Spacecraft를 선택한 뒤 만들기를 클릭합니다.
  5. 수행하는 Action을 켜서 각 서브시스템의 기능을 나열합니다.

새 프로젝트의 Asset 다이어그램에 우주선의 서브시스템과 그것이 수행하는 Action이 표시되면 완료입니다.

스스로 확인

  1. Holarch는 SysML v1 도구의 어떤 파일을 가져올 수 있으며, 그 파일은 어떻게 얻습니까?
  2. 가져온 후 다이어그램을 빠르게 다시 만들 수 있는 이유는 무엇입니까?
  3. 같은 모델의 이후 내보내기 파일을 가져올 때 복사본이 생기지 않는 이유는 무엇입니까?
답 보기
  1. Holarch는 SysML v1 도구의 어떤 파일을 가져올 수 있으며, 그 파일은 어떻게 얻습니까?

    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.