Skip to content

Commit 3283cae

Browse files
committed
rename relations for Codebeamer compatibility
1 parent 4c3a16f commit 3283cae

24 files changed

Lines changed: 325 additions & 222 deletions

File tree

MODULE.bazel

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ bazel_dep(name = "score_tooling", version = "1.2.0")
5353
bazel_dep(name = "score_docs_as_code", version = "3.0.1")
5454
git_override(
5555
module_name = "score_docs_as_code",
56-
commit = "21640ab325b3aae147ba4e3e8b5e7ab89fc2e8f5",
57-
remote = "https://github.com/etas-contrib/score_docs-as-code.git",
56+
# TODO: revert to main once https://github.com/RSingh1511/docs-as-code/pull/new/rs/rename-relations-codebeamer is merged
57+
commit = "dcbf9c99f592159f49aa8231a053d673e9d2dcde",
58+
remote = "https://github.com/RSingh1511/docs-as-code.git",
5859
)

process/folder_templates/features/feature_name/architecture/index.rst

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ Requirements
5454
.. needtable:: Overview of Feature Requirements
5555
:style: table
5656
:columns: title;id
57-
:filter: search("feat_arch_sta__archdes$", "fulfils_back")
57+
:filter: search("feat_arch_sta__archdes$", "satisfies_back")
5858
:colwidths: 70,30
5959
6060
6161
.. needtable:: Overview of Feature Requirements
6262
:style: table
6363
:columns: title;id
64-
:filter: search("feat_arch_sta__archdes$", "fulfils_back")
64+
:filter: search("feat_arch_sta__archdes$", "satisfies_back")
6565
:colwidths: 70,30
6666

6767

@@ -80,24 +80,17 @@ The live feature architecture template snippets are maintained in the
8080

8181
.. code-block:: rst
8282
83-
.. feat:: Feature Name
84-
:id: feat__feature_name
85-
:security: YES
86-
:safety: ASIL_B
87-
:status: invalid
88-
:includes: logic_arc_int__feature_name__interface_name1
89-
90-
General Feature Description
91-
9283
.. feat_arc_sta:: Feature Static View
9384
:id: feat_arc_sta__feature_name__static_view
9485
:security: YES
9586
:safety: ASIL_B
9687
:status: invalid
97-
:fulfils: feat_req__feature_name__some_title
88+
:satisfies: feat_req__feature_name__some_title
9889
:includes: logic_arc_int__feature_name__interface_name1
9990
:belongs_to: feat__feature_name
10091
92+
General Feature Description
93+
10194
.. needarch::
10295
:scale: 50
10396
:align: center
@@ -114,7 +107,7 @@ Dynamic Architecture
114107
:security: YES
115108
:safety: ASIL_B
116109
:status: invalid
117-
:fulfils: feat_req__feature_name__some_title
110+
:satisfies: feat_req__feature_name__some_title
118111
:belongs_to: feat__feature_name
119112
120113
Put here a sequence diagram
@@ -129,7 +122,7 @@ Logical Interfaces
129122
:security: YES
130123
:safety: ASIL_B
131124
:status: invalid
132-
:fulfils: feat_req__feature_name__some_title
125+
:satisfies: feat_req__feature_name__some_title
133126
134127
General Interface Description
135128

process/folder_templates/features/feature_name/requirements/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Feature Requirements
4141
:reqtype: Process
4242
:security: NO
4343
:safety: ASIL_B
44-
:satisfies: stkh_req__requirements__template
44+
:derived_from: stkh_req__requirements__template
4545
:valid_from: v0.0.1
4646
:valid_until: v1.0.1
4747
:status: invalid

process/folder_templates/modules/module_name/component_name/docs/architecture/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Requirements Linked to Component Architecture
4545
.. needtable:: Overview of Component Requirements
4646
:style: table
4747
:columns: title;id
48-
:filter: search("comp_arch_sta__archdes$", "fulfils_back")
48+
:filter: search("comp_arch_sta__archdes$", "satisfies_back")
4949
:colwidths: 70,30
5050
5151
Description
@@ -93,7 +93,7 @@ The live component architecture template is maintained in the
9393
:status: invalid
9494
:belongs_to: comp__component_name_template
9595
:uses: logic_arc_int__feature_name__interface_name1
96-
:fulfils: comp_req__component_name__some_title
96+
:satisfies: comp_req__component_name__some_title
9797
9898
.. needarch::
9999
:scale: 50
@@ -112,7 +112,7 @@ Dynamic Architecture
112112
:safety: ASIL_B
113113
:status: invalid
114114
:belongs_to: comp__component_name_template
115-
:fulfils: comp_req__component_name__some_title
115+
:satisfies: comp_req__component_name__some_title
116116
117117
Put here a sequence diagram
118118
@@ -126,7 +126,7 @@ Interfaces
126126
:id: real_arc_int__<component>__<Title>
127127
:security: <YES|NO>
128128
:safety: <QM|ASIL_B>
129-
:fulfils: <link to component requirement id>
129+
:satisfies: <link to component requirement id>
130130
:language: cpp
131131
132132
Internal Components
@@ -139,7 +139,7 @@ Internal Components
139139
:status: invalid
140140
:safety: ASIL_B
141141
:security: YES
142-
:fulfils: comp_req__component_name__some_title
142+
:satisfies: comp_req__component_name__some_title
143143
:belongs_to: comp__component_name_template
144144
145145
No architecture but detailed design

process/folder_templates/modules/module_name/component_name/docs/requirements/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Component Requirements
4444
:reqtype: Process
4545
:security: YES
4646
:safety: ASIL_B
47-
:satisfies: feat_req__feature_name__some_title
47+
:derived_from: feat_req__feature_name__some_title
4848
:status: invalid
4949
:belongs_to: comp__component_name_template
5050

process/process_areas/architecture_design/architecture_concept.rst

Lines changed: 128 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,22 @@ The feature architecture contain the following views:
123123
Static View
124124
-----------
125125

126-
The first viewpoint is named as *feature architecture*. It displays the SW Components within the SW modules (= dependable elements) which are required to realize the feature including their interactions. Also the *logical interfaces* and the interaction between the feature and the user are included in this view. On this architectural level the feature requirements shall be allocated. A full rendered example for the static architecture is maintained in the
127-
`module template documentation <https://eclipse-score.github.io/module_template/main/>`__.
126+
The first viewpoint is named as *feature architecture*. It displays the SW Components within the SW modules (= dependable elements) which are required to realize the feature including their interactions. Also the *logical interfaces* and the interaction between the feature and the user are included in this view. On this architectural level the feature requirements shall be allocated. An example for the static architecture is shown here:
127+
128+
.. feat_arc_sta:: Feature 1 Architecture
129+
:id: feat_arc_sta__example_feature__feature_1
130+
:security: YES
131+
:safety: QM
132+
:status: valid
133+
:includes: logic_arc_int__example_feature__archex_logical_interface_1, logic_arc_int__example_feature__archex_logical_interface_2
134+
:satisfies: feat_req__example_feature__archdes_example_req
135+
:belongs_to: feat__example_feature
136+
137+
.. needarch::
138+
:scale: 50
139+
:align: center
140+
141+
{{ draw_feature(need(), needs) }}
128142

129143
In all views, the components which are marked as ASIL_B related are drawn with red borders.
130144

@@ -150,8 +164,20 @@ See :ref:`uml_diagram_selection` in guideline for further information about the
150164
Interface View
151165
--------------
152166

153-
On the feature level only *logical interfaces* shall be displayed. This means that only logical names shall be provided for both the interface and the operations within. Those *logical interfaces* shall be connected to component interfaces on the module view. A rendered logical-interface example is maintained in the
154-
`module template documentation <https://eclipse-score.github.io/module_template/main/>`__.
167+
On the feature level only *logical interfaces* shall be displayed. This means that only logical names shall be provided for both the interface and the operations within. Those *logical interfaces* shall be connected to component interfaces on the module view.
168+
169+
.. logic_arc_int:: Logical Interface 1
170+
:id: logic_arc_int__example_feature__archcon_logical_interface_1
171+
:security: YES
172+
:safety: ASIL_B
173+
:status: valid
174+
:satisfies: feat_req__example_feature__archdes_example_req
175+
176+
.. needarch::
177+
:scale: 50
178+
:align: center
179+
180+
{{ draw_interface(need(), needs) }}
155181

156182
SW Module View
157183
==============
@@ -171,8 +197,19 @@ Static View
171197

172198
The *component architecture* describes the implementation of the functionalities in a white-box view. It describes the internal structure of SW components and their decomposition. It provides a more detailed information concerning the respective interfaces of a component. If a SW component interacts with a different component it is also included via a *use* relationship in the diagram. An example of the *component architecture* is displayed here:
173199

174-
A full rendered component-architecture example is maintained in the
175-
`module template documentation <https://eclipse-score.github.io/module_template/main/>`__.
200+
.. comp_arc_sta:: Component 1 Static View
201+
:id: comp_arc_sta__example_feature__archdes_component_concept_1
202+
:status: valid
203+
:safety: ASIL_B
204+
:security: NO
205+
:satisfies: comp_req__example_feature__archex_example_req
206+
:belongs_to: comp__component_example_1
207+
208+
.. needarch::
209+
:scale: 50
210+
:align: center
211+
212+
{{ draw_component(need(), needs) }}
176213

177214
The decomposition is optional and relies on the complexity of the component. Thus there is no graphic representation required for it.
178215
In all views the components which are marked as ASIL_B related are drawn in red color.
@@ -197,8 +234,21 @@ Following scenarios should be included:
197234
Interface View
198235
--------------
199236

200-
The component interface view shows the actual interfaces of the component. Also links to their corresponding logical interfaces are displayed in this view. A rendered component-interface example is maintained in the
201-
`module template documentation <https://eclipse-score.github.io/module_template/main/>`__.
237+
The component interface view shows the actual interfaces of the component. Also links to their corresponding logical interfaces are displayed in this view:
238+
239+
.. real_arc_int:: Component Interface 1
240+
:id: real_arc_int__example_feature__archdes_component_interface_1
241+
:status: valid
242+
:safety: ASIL_B
243+
:security: NO
244+
:satisfies: comp_req__example_feature__archex_example_req
245+
:language: cpp
246+
247+
.. needarch::
248+
:scale: 50
249+
:align: center
250+
251+
{{ draw_interface(need(), needs)}}
202252

203253
Platform View
204254
=============
@@ -421,8 +471,29 @@ Here are some excerpts of UML diagrams made from the requirements of that file.
421471
Feature Architecture
422472
^^^^^^^^^^^^^^^^^^^^
423473

424-
The following section links to the rendered feature example that is now maintained in the
425-
`module template documentation <https://eclipse-score.github.io/module_template/main/>`__.
474+
The following section is an example, how an `Feature <https://eclipse-score.github.io/score/main/features/index.html>`_ looks like and how the architecture of an Feature is described. Please note that components with an "ASIL_B" safety rating are highlighted with red borders in the diagram (e.g., "Component 1").
475+
476+
.. feat:: Feature Name
477+
:id: feat__feature_name_example
478+
:security: YES
479+
:safety: ASIL_B
480+
:status: invalid
481+
:includes: logic_arc_int__example_feature__archex_logical_interface_1
482+
483+
.. feat_arc_sta:: Feature Static Architecture View - Rendered Example
484+
:id: feat_arc_sta__example_feature__archdes_getstrt
485+
:security: YES
486+
:safety: QM
487+
:status: valid
488+
:includes: logic_arc_int__example_feature__archex_logical_interface_1, logic_arc_int__example_feature__archex_logical_interface_2
489+
:satisfies: feat_req__example_feature__archdes_example_req
490+
:belongs_to: feat__example_feature
491+
492+
.. needarch::
493+
:scale: 50
494+
:align: center
495+
496+
{{ draw_feature(need(), needs) }}
426497

427498
.. code-block:: rst
428499
@@ -440,7 +511,7 @@ The following section links to the rendered feature example that is now maintain
440511
:safety: QM
441512
:status: valid
442513
:includes: logic_arc_int__example_feature__archex_logical_interface_1, logic_arc_int__example_feature__archex_logical_interface_2
443-
:fulfils: feat_req__example_feature__archdes_example_req
514+
:satisfies: feat_req__example_feature__archdes_example_req
444515
:belongs_to: feat__example_feature
445516
446517
.. needarch::
@@ -454,8 +525,19 @@ Component Architecture
454525

455526
The following section is an example, how an component looks like and how the detail design of an component is described. Please note that components with an "ASIL_B" safety rating are highlighted with red borders in the diagram (e.g., "Component 1").
456527

457-
The rendered component examples are maintained in the
458-
`module template documentation <https://eclipse-score.github.io/module_template/main/>`__.
528+
.. comp_arc_sta:: Component Static View - Rendered Example
529+
:id: comp_arc_sta__example_feature__component_getstrt
530+
:status: valid
531+
:safety: ASIL_B
532+
:security: NO
533+
:satisfies: comp_req__example_feature__archex_example_req
534+
:belongs_to: comp__component_example_1
535+
536+
.. needarch::
537+
:scale: 50
538+
:align: center
539+
540+
{{ draw_component( need(), needs ) }}
459541

460542
.. code-block:: rst
461543
@@ -464,7 +546,7 @@ The rendered component examples are maintained in the
464546
:status: valid
465547
:safety: ASIL_B
466548
:security: NO
467-
:fulfils: comp_req__example_feature__archex_example_req
549+
:satisfies: comp_req__example_feature__archex_example_req
468550
:belongs_to: comp__component_component_getstrt
469551
470552
.. needarch::
@@ -506,8 +588,20 @@ Besides storing the output it is also possible to display the generated PlantUML
506588
507589
Debug example for component architecture:
508590

509-
See the rendered debug example in the
510-
`module template documentation <https://eclipse-score.github.io/module_template/main/>`__.
591+
.. comp_arc_sta:: Component Static View - Rendered Debug Example
592+
:id: comp_arc_sta__example_feature__component_getstrt_debug
593+
:status: valid
594+
:safety: ASIL_B
595+
:security: NO
596+
:satisfies: comp_req__example_feature__archex_example_req
597+
:belongs_to: comp__component_example_1
598+
599+
.. needarch::
600+
:scale: 50
601+
:align: center
602+
:debug:
603+
604+
{{ draw_component( need(), needs ) }}
511605

512606
.. _manual_addition_uml:
513607

@@ -525,7 +619,8 @@ To make *needuml* work we have to replace the *need()* call with a different fun
525619
:status: valid
526620
:safety: ASIL_B
527621
:security: NO
528-
:uses: logic_arc_int__example_feature__archcon_logical_interface_1
622+
:uses: logic_arc_int__example_feature__archex_logical_interface_1
623+
:satisfies: comp_req__example_feature__archex_example_req
529624
:belongs_to: comp__component_component_manual_getstrt
530625
531626
.. needuml::
@@ -535,8 +630,22 @@ To make *needuml* work we have to replace the *need()* call with a different fun
535630
}
536631
CM -> LI1: EXTRA_LINKAGE_MANUALLY_ADDED
537632
538-
See the rendered manual-edit example in the
539-
`module template documentation <https://eclipse-score.github.io/module_template/main/>`__.
633+
.. comp_arc_sta:: Component Architecture Static View - Rendered Example Manually Edited
634+
:id: comp_arc_sta__example_feature__component_manual_getstrt
635+
:status: valid
636+
:safety: ASIL_B
637+
:security: NO
638+
:uses: logic_arc_int__example_feature__archex_logical_interface_1
639+
:satisfies: comp_req__example_feature__archex_example_req
640+
:belongs_to: comp__component_example_1
641+
642+
.. needarch::
643+
644+
{{ draw_component( needs.get('comp__component_example_1'), needs ) }}
645+
646+
component "Component Manual" as CM {
647+
}
648+
CM -> logic_arc_int__example_feature__archex_logical_interface_1: EXTRA_LINKAGE_MANUALLY_ADDED
540649

541650
You can add any layout or additional configuration you want before you call the *draw_xyz*.
542651

0 commit comments

Comments
 (0)