diff --git a/.meta.json b/.meta.json index 2983d51..2d2a8cb 100644 --- a/.meta.json +++ b/.meta.json @@ -38,7 +38,7 @@ }, "libraries/NPR7150.sysml": { "algorithm": "SHA256", - "value": "de4cba92861d83612b2d1b7acb5f5b27fd81c204c5599d34e3b7296b0345cb8e" + "value": "26b6074fe7feb59f3173d34307526a0798543b6b0f3a5e4bd10b4ea9cea1c02c" }, "libraries/OOSEM.sysml": { "algorithm": "SHA256", diff --git a/libraries/NPR7150.sysml b/libraries/NPR7150.sysml index 40536e0..9c2bd86 100644 --- a/libraries/NPR7150.sysml +++ b/libraries/NPR7150.sysml @@ -4079,12 +4079,17 @@ library package NPR7150 { } calc def RequirementMappingEntries :> Query { - doc /* The requirement usages below root that carry a RequirementMapping annotation. */ + doc /* The requirement usages below root that carry a RequirementMapping annotation. An + * annotated requirement definition is reusable vocabulary, not a row of a project's matrix. + */ in root : Element; in depth : Integer default 16; - WhereMetadata( - source = Descendants(source = root, maxDepth = depth), - 'metadata' = "NPR7150::RequirementMapping" + WhereType( + source = WhereMetadata( + source = Descendants(source = root, maxDepth = depth), + 'metadata' = "NPR7150::RequirementMapping" + ), + type = "RequirementUsage" ) } @@ -4141,12 +4146,16 @@ library package NPR7150 { calc def SoftwareClassificationRegister :> Query { doc /* One row per system or subsystem containing software below root: name, software class, - * safety-critical determination and documentation, the record SWE-176 asks for. + * safety-critical determination and documentation, the record SWE-176 asks for. The rows + * are part usages; a definition specializing SoftwareSystem is not itself a system. */ in root : Element; in depth : Integer default 16; Project( - source = WhereType(source = Descendants(source = root, maxDepth = depth), type = "NPR7150::SoftwareSystem"), + source = WhereType( + source = WhereType(source = Descendants(source = root, maxDepth = depth), type = "NPR7150::SoftwareSystem"), + type = "PartUsage" + ), properties = ("name", "softwareClass", "safetyCritical", "documentation"), tolerate = true )