Holarch
과정의 장

교육 · 트랙 9. SysML v2 기초 · 9.6장 (전체 8장)

9.6 검증과 추적성 3:32

검증 케이스를 작성하고, RVTM을 읽고, 매트릭스에서 단계를 추적하고, 요구사항을 도출합니다.

Holarch 2.22 화면입니다.

학습 내용

  • 목표와 verdict가 있는 검증 정의를 작성하고 주체에 적용하기
  • 검증 케이스 페이지에서 단계와 결과 기록하기
  • RVTM에서 요구사항을 검증하는 케이스와 상태 읽기
  • 추적성 매트릭스에서 요구사항을 액션으로 추적하기
  • Derivation 연결로 한 요구사항에서 다른 요구사항 도출하기

Hybrid Car라는 작은 프로젝트에서 SysML v2 튜토리얼 Verification and Traceability를 따라 Holarch에서 SysML v2 요구사항을 검증하고 추적합니다. 목표가 요구사항을 검증하는 검증 정의, 세단에 적용한 검증 사용, 검증 케이스 페이지와 RVTM, 추적성 매트릭스에서 만든 satisfy, 요구사항 간 도출, 모델 검사를 다룹니다. SysML은 Object Management Group, Inc.의 등록 상표입니다.

프로젝트 파일

  • 완성 프로젝트 (.holarch.json; 프로젝트 관리 → 프로젝트 파일 ▾ → 프로젝트 가져오기 (.json)…)

동영상은 holarch.app에서 재생됩니다. 개인정보 처리방침을 참조하십시오.

실습

Hybrid Car 데모 프로젝트(SysML v2)에서 Holarch로 직접 해 보십시오.

  1. Hybrid Car 데모 프로젝트를 열고(필요하면 만드십시오: 프로젝트 관리 → 프로젝트 파일 ▾ → 새 데모 프로젝트 → Hybrid Car (SysML v2)), 모델 → 편집기와 패키지 VehicleRequirements를 엽니다.
  2. verification <'VC-1.1'> sedanWeighing 뒤에 verification def <'VC-2'> BatteryWeighing { subject battery : Battery; objective { verify batteryMassLimit; } return verdict : Boolean = battery.mass <= 50 [kg]; }와 verification <'VC-2.1'> sedanBatteryWeighing : BatteryWeighing { subject battery = fleet.sedan.powertrain.battery; }를 추가합니다.
  3. 검증 → 검증 케이스를 엽니다. 새 케이스의 행에서 + 단계를 클릭한 다음 + 단계 추가를 클릭하고, Action 아래에 Weigh the battery on a bench scale를 입력하고 적용을 클릭한 다음, 상태 버튼에서 Passed를 클릭합니다.
  4. 검증 → RVTM을 열고 새 케이스와 그 상태가 있는 VR-6 batteryMassLimit를 찾습니다.
  5. 검증 → 추적성 매트릭스를 열고 요구사항을 행으로, 클래스 Action을 열로 표시한 다음, sedanAcceleration과 accelerate가 만나는 셀을 클릭하고 satisfied by를 선택합니다.
  6. 패키지 끝에 requirement <'VR-9'> tankVolume { doc /* The fuel tank shall hold at least 40 L. */ subject tank : FuelTank; }와 connection tankDerivation : Derivation connect carSpec.sedanRange to tankVolume;을 추가합니다. 그런 다음 검증 → 모델 검사를 엽니다.

RVTM에 VR-6에 대한 새 케이스가 합격으로 나열되고, 편집기에 새 satisfy와 tankDerivation이 있으며, 상태에 문제가 없다고 표시되면 완료입니다.

스스로 확인

  1. objective massObjective { verify carSpec.sedanMass; }에서 verify는 무엇을 말하며, 어디에서 그것을 볼 수 있습니까?
  2. 검증 케이스의 verdict와 검증 케이스 페이지의 상태는 어떻게 다릅니까?
  3. 언제 satisfy를 쓰고, 언제 Derivation을 씁니까?
  4. 추적성 매트릭스 셀에서 satisfied by를 선택하면 어떻게 됩니까?
답 보기
  1. objective massObjective { verify carSpec.sedanMass; }에서 verify는 무엇을 말하며, 어디에서 그것을 볼 수 있습니까?

    이 검증 케이스가 요구사항 sedanMass를 검증한다는 것입니다. RVTM은 그 요구사항에 대해 이 케이스를 나열합니다.

  2. 검증 케이스의 verdict와 검증 케이스 페이지의 상태는 어떻게 다릅니까?

    verdict는 모델의 일부인 식입니다. 여기서는 공차 질량이 한계 이내인지입니다. 단계, 결과, 테스트 실행의 상태는 모델 옆에 보관되는 Holarch 데이터입니다.

  3. 언제 satisfy를 쓰고, 언제 Derivation을 씁니까?

    satisfy는 파트나 액션 같은 설계 요소가 요구사항을 충족한다고 말합니다. Derivation은 원래 요구사항을 그로부터 도출된 요구사항에 연결하며, private import RequirementDerivation::*;이 필요합니다.

  4. 추적성 매트릭스 셀에서 satisfied by를 선택하면 어떻게 됩니까?

    Holarch가 SysML 텍스트에 satisfy를 기록하므로, 추적이 모델의 일부가 되어 편집기에 표시됩니다.

더 읽어 보기

대본

대본 보기 (내레이션과 화면 내용)

Introduction

Chapter six: verification and traceability. A verification case says how a requirement is checked, and traceability shows what connects to what.

In this chapter you write a verification case and apply it to the sedan, check the RVTM, trace a step to a requirement in the matrix, and derive a requirement.

Start the tutorial

Start the tutorial Verification and Traceability from Project Files, Start a Tutorial. Its starter project holds the curb mass requirement and the car specification, a short drive cycle, and two more requirements: a battery mass limit and stopping from cruise.

On screen: Project Files ▾ → Start a Tutorial… → SysML v2: Verification and Traceability → Start; Model → Editor.

Verification cases

After the verification comment, write the verification definition. Its objective names the requirement it verifies, and its verdict passes when the curb mass is within the limit.

On screen: After // ---- Verification ----: verification def <'VC-1'> CurbMassTest.

Below it, apply it to the sedan: a verification usage that weighs the sedan of the fleet.

On screen: Below it: verification <'VC-1.1'> sedanWeighing : CurbMassTest.

Open Verification, then Verification Cases. The model's verification cases are the test cases here. Steps, results and status are Holarch data next to the model, kept on this page.

On screen: Verification → Verification Cases; the Sedan Weighing row.

In the Sedan Weighing row, click Steps, then Add Step. Type weigh the car as the action, and click Apply.

On screen: + Steps → + Add Step; Action: Weigh the car; Apply.

Then set the result: click Passed in its status buttons.

On screen: Status buttons → Passed.

Open the RVTM. Each requirement is listed with its verification method, the cases that verify it, and their status.

On screen: Verification → RVTM.

Traceability

Now trace a step to a requirement. Open the Traceability Matrix. Its rows are the requirements; open Columns, and choose the class Action.

On screen: Verification → Traceability Matrix; rows: Requirement; Columns: class Action; Done.

Click the cell where stop from cruise meets the brake step, and choose satisfied by. Holarch writes a satisfy into the text.

On screen: Cell stopFromCruise × brake → satisfied by.

In the Editor, the satisfy is there. To derive a requirement, first import the requirement derivation package after the other imports.

On screen: Model → Editor: the new satisfy; import RequirementDerivation.

Then, at the end of the package, connect the sedan's mass requirement to the battery mass limit with a derivation: the battery limit is derived from the curb mass requirement.

On screen: After sedanWeighing: connection batteryMassDerivation : Derivation connect carSpec.sedanMass to batteryMassLimit;

Last, open Verification, then Model Checks. Rules run over the whole model, for example requirements without a satisfy or a verify, and each finding links to its element.

On screen: Verification → Model Checks.

Recap

Every step is ticked off. Click Mark as Done.

On screen: Step panel → Mark as Done.

Let's recap. You wrote a verification case with an objective and a verdict, applied it to the sedan, opened the Verification Cases and the RVTM, traced a step to a requirement in the matrix, and derived one requirement from another.

Next, constraints and calculations evaluate the sedan's values.