Skip to content

Commit 531ea63

Browse files
PhilipPartschAlexanderLaninRolandJentschETAS
authored
Introduce feature, sw-module and component as sphinx-needs elements (#323)
Co-authored-by: Alexander Lanin <[email protected]> Co-authored-by: Roland Jentsch <[email protected]>
1 parent 620bca0 commit 531ea63

File tree

1 file changed

+90
-5
lines changed

1 file changed

+90
-5
lines changed

src/extensions/score_metamodel/metamodel.yaml

Lines changed: 90 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ needs_types:
301301
# req-Id: tool_req__docs_req_attr_validity_correctness
302302
valid_from: ^v(0|[1-9]\d*)\.(0|[1-9]\d*)(\.(0|[1-9]\d*))?$
303303
valid_until: ^v(0|[1-9]\d*)\.(0|[1-9]\d*)(\.(0|[1-9]\d*))?$
304+
optional_links:
305+
belongs_to: feat # for evaluation
304306
tags:
305307
- requirement
306308
- requirement_excl_process
@@ -330,6 +332,8 @@ needs_types:
330332
# req-Id: tool_req__docs_req_attr_testcov
331333
testcovered: ^(YES|NO)$
332334
hash: ^.*$
335+
optional_links:
336+
belongs_to: comp # TODO: make it mandatory
333337
tags:
334338
- requirement
335339
- requirement_excl_process
@@ -393,6 +397,28 @@ needs_types:
393397
parts: 3
394398

395399
# - Architecture -
400+
401+
# Architecture Element
402+
# No process requirement - For evaluation:
403+
# https://github.com/orgs/eclipse-score/discussions/407#discussioncomment-15125454
404+
feat:
405+
title: Feature
406+
color: #FEDCD2
407+
style: card
408+
mandatory_options:
409+
# req-Id: tool_req__docs_common_attr_security
410+
security: ^(YES|NO)$
411+
# req-Id: tool_req__docs_common_attr_safety
412+
safety: ^(QM|ASIL_B)$
413+
# req-Id: tool_req__docs_common_attr_status
414+
status: ^(valid|invalid)$
415+
mandatory_links:
416+
includes: ^logic_arc_int(_op)*__.+$
417+
consists_of: comp
418+
tags:
419+
- architecture_element
420+
parts: 2
421+
396422
# Architecture Element & View
397423
# req-Id: tool_req__docs_arch_types
398424
# req-Id: tool_req__docs_arch_views
@@ -410,6 +436,8 @@ needs_types:
410436
mandatory_links:
411437
includes: ^logic_arc_int(_op)*__.+$
412438
fulfils: feat_req
439+
optional_links:
440+
belongs_to: feat # for evaluation
413441
tags:
414442
- architecture_element
415443
- architecture_view
@@ -430,6 +458,8 @@ needs_types:
430458
status: ^(valid|invalid)$
431459
mandatory_links:
432460
fulfils: feat_req
461+
optional_links:
462+
belongs_to: feat # for evaluation
433463
tags:
434464
- architecture_view
435465
- architecture_element
@@ -476,6 +506,26 @@ needs_types:
476506
- architecture_element
477507
parts: 3
478508

509+
# Architecture Element
510+
# No process requirement - For evaluation:
511+
# https://github.com/orgs/eclipse-score/discussions/407#discussioncomment-15125454
512+
mod:
513+
title: Module
514+
color: #FEDCD2
515+
style: card
516+
optional_options:
517+
# req-Id: tool_req__docs_common_attr_security
518+
security: ^(YES|NO)$
519+
# req-Id: tool_req__docs_common_attr_safety
520+
safety: ^(QM|ASIL_B)$
521+
# req-Id: tool_req__docs_common_attr_status
522+
status: ^(valid|invalid)$
523+
optional_links:
524+
includes: comp
525+
tags:
526+
- architecture_element
527+
parts: 2
528+
479529
# Architecture View
480530
# req-Id: tool_req__docs_arch_views
481531
mod_view_sta:
@@ -484,22 +534,46 @@ needs_types:
484534
style: card
485535
mandatory_links:
486536
includes: comp_arc_sta
537+
optional_links:
538+
belongs_to: mod # for evaluation
487539
tags:
488540
- architecture_view
489541
parts: 3
490542

543+
# Architecture View
491544
# No process requirement
492545
mod_view_dyn:
493546
title: Module Architecture Dynamic View
494547
color: #FEDCD2
495548
style: card
496549
parts: 3
550+
optional_links:
551+
belongs_to: mod # for evaluation
497552

498-
# Architecture Element & View
499-
# req-Id: tool_req__docs_arch_types
553+
# Architecture Element
554+
comp:
555+
title: Component
556+
color: #FEDCD2
557+
style: card
558+
mandatory_options:
559+
# req-Id: tool_req__docs_common_attr_security
560+
security: ^(YES|NO)$
561+
# req-Id: tool_req__docs_common_attr_safety
562+
safety: ^(QM|ASIL_B)$
563+
# req-Id: tool_req__docs_common_attr_status
564+
status: ^(valid|invalid)$
565+
optional_links:
566+
implements: logic_arc_int, real_arc_int_op
567+
uses: logic_arc_int, real_arc_int_op
568+
consists_of: comp, sw_unit
569+
tags:
570+
- architecture_element
571+
parts: 2
572+
573+
# Architecture View
500574
# req-Id: tool_req__docs_arch_views
501575
comp_arc_sta:
502-
title: Component & Component Package Diagram
576+
title: Component Package Diagram
503577
color: #FEDCD2
504578
style: card
505579
mandatory_options:
@@ -514,8 +588,8 @@ needs_types:
514588
implements: logic_arc_int, real_arc_int_op
515589
includes: comp_arc_sta
516590
uses: logic_arc_int, real_arc_int_op
591+
belongs_to: comp # TODO: make it mandatory
517592
tags:
518-
- architecture_element
519593
- architecture_view
520594
parts: 3
521595

@@ -534,9 +608,9 @@ needs_types:
534608
status: ^(valid|invalid)$
535609
optional_links:
536610
fulfils: comp_req
611+
belongs_to: comp # TODO: make it mandatory
537612
tags:
538613
- architecture_view
539-
- architecture_element
540614
parts: 3
541615

542616
# Architecture Element & View
@@ -607,6 +681,7 @@ needs_types:
607681
implements: comp_req
608682
satisfies: comp_arc_sta
609683
optional_links:
684+
belongs_to: comp # TODO: make it mandatory
610685
includes: sw_unit
611686
parts: 3
612687

@@ -622,6 +697,8 @@ needs_types:
622697
mandatory_links:
623698
implements: comp_req
624699
satisfies: comp_arc_sta
700+
optional_links:
701+
belongs_to: comp # TODO: make it mandatory
625702
parts: 3
626703

627704
sw_unit:
@@ -851,6 +928,14 @@ needs_extra_links:
851928
outgoing: satisfies
852929

853930
# Architecture
931+
consists_of:
932+
incoming: forms part of
933+
outgoing: consists of
934+
935+
belongs_to:
936+
incoming: has
937+
outgoing: belongs to
938+
854939
fulfils:
855940
incoming: fulfilled by
856941
outgoing: fulfils

0 commit comments

Comments
 (0)