Holarch
कोर्स के अध्याय

प्रशिक्षण · ट्रैक 9. SysML v2 की मूल बातें · 8 में से अध्याय 9.6

9.6 सत्यापन और ट्रेसेबिलिटी 3:32

verification cases लिखें, RVTM पढ़ें, मैट्रिक्स में एक चरण ट्रेस करें और एक आवश्यकता व्युत्पन्न करें।

Holarch 2.22 दिखाता है।

← 9.5 आवश्यकताएं · सभी अध्याय · 9.7 Constraints और गणनाएं →

आप क्या सीखेंगे

  • objective और verdict वाली एक verification definition लिखें, और उसे किसी subject पर लागू करें
  • सत्यापन केस पेज पर एक चरण और एक परिणाम दर्ज करें
  • RVTM में किसी आवश्यकता के सत्यापन करने वाले cases और उसकी स्थिति पढ़ें
  • ट्रेसेबिलिटी मैट्रिक्स में किसी आवश्यकता को एक action तक ट्रेस करें
  • Derivation कनेक्शन से एक आवश्यकता को दूसरी से व्युत्पन्न करें

Holarch में SysML v2 आवश्यकताओं का सत्यापन और ट्रेस करें, एक छोटे Hybrid Car प्रोजेक्ट पर SysML v2 ट्यूटोरियल Verification and Traceability का पालन करते हुए: एक verification definition जिसका objective किसी आवश्यकता का सत्यापन करता है, sedan पर लागू एक verification usage, सत्यापन केस पेज और RVTM, ट्रेसेबिलिटी मैट्रिक्स में बनाया गया एक satisfy, आवश्यकताओं के बीच एक derivation, और मॉडल जांचें। SysML, Object Management Group, Inc. का पंजीकृत ट्रेडमार्क है।

प्रोजेक्ट फ़ाइलें

वीडियो holarch.app से चलता है; गोपनीयता नीति देखें।

अभ्यास

यह स्वयं Holarch में, Hybrid Car डेमो प्रोजेक्ट (SysML v2) पर करें।

  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. सत्यापन → सत्यापन केस खोलें। नए केस की पंक्ति में + चरण पर क्लिक करें, फिर + स्टेप जोड़ें, क्रिया के अंतर्गत Weigh the battery on a bench scale टाइप करें, लागू करें पर क्लिक करें, और उसके स्थिति बटनों में पास हुए पर क्लिक करें।
  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. किसी verification case के verdict और सत्यापन केस पेज की स्थिति में क्या अंतर है?
  3. आप satisfy कब उपयोग करते हैं, और Derivation कब?
  4. ट्रेसेबिलिटी मैट्रिक्स की सेल में satisfied by चुनने पर क्या होता है?
उत्तर दिखाएं
  1. objective massObjective { verify carSpec.sedanMass; } में verify क्या कहता है, और आप इसे कहाँ देखते हैं?

    कि यह verification case आवश्यकता sedanMass को सत्यापित करता है। RVTM इस केस को उस आवश्यकता के सापेक्ष सूचीबद्ध करता है।

  2. किसी verification case के verdict और सत्यापन केस पेज की स्थिति में क्या अंतर है?

    verdict मॉडल का हिस्सा है: एक expression, यहाँ यह कि कर्ब मास सीमा के भीतर है या नहीं। किसी टेस्ट रन के चरण, परिणाम और स्थिति मॉडल के साथ रखा गया Holarch डेटा हैं।

  3. आप satisfy कब उपयोग करते हैं, और Derivation कब?

    satisfy कहता है कि कोई डिज़ाइन एलिमेंट, जैसे part या action, किसी आवश्यकता को पूरा करता है। 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.