Skip to content

Commit 6605655

Browse files
authored
Merge pull request #472 from etas-contrib/improvement_add_feat_comp_snippets
Improvement add feat comp snippets
2 parents 16c371b + 5accf01 commit 6605655

File tree

15 files changed

+449
-55
lines changed

15 files changed

+449
-55
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Static Architecture
7575
:includes: logic_arc_int__feature_name__interface_name
7676
:consists_of: comp__component_name
7777

78+
General Feature Description
7879

7980
.. feat_arc_sta:: Static View
8081
:id: feat_arc_sta__feature_name__static_view
@@ -100,7 +101,7 @@ Dynamic Architecture
100101
:status: invalid
101102
:fulfils: feat_req__feature_name__some_title
102103

103-
put here a sequence diagram
104+
Put here a sequence diagram
104105

105106
Logical Interfaces
106107
------------------
@@ -111,6 +112,8 @@ Logical Interfaces
111112
:safety: ASIL_B
112113
:status: invalid
113114

115+
General Interface Description
116+
114117
.. needarch::
115118
:scale: 50
116119
:align: center
@@ -124,6 +127,8 @@ Logical Interfaces
124127
:status: invalid
125128
:included_by: logic_arc_int__feature_name__interface_name
126129

130+
General Operation Description
131+
127132
Module Viewpoint
128133
----------------
129134

@@ -155,7 +160,7 @@ They will be replaced by linking the proper SW component definitions in the used
155160
:implements: logic_arc_int__feature_name__interface_name
156161

157162
.. note::
158-
Architecture can be split into multiple files, it is an High level architecture_design
163+
Architecture can be split into multiple files, it is an high level architecture design
159164
which can be shown without actual c++/rust interfaces and data types
160165
and there will be link to lower level architecture till code to get actual api descriptions.
161166

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Requirements
5555
:satisfies: stkh_req__requirements__template
5656
:status: invalid
5757

58-
The Feature shall do xyz to the user to bring him to this condition at this time
58+
The Feature shall do xyz to the user to bring him to this condition at this time.
5959

6060
Note: (optional, not to be verified)
6161

@@ -66,7 +66,7 @@ Requirements
6666
:safety: ASIL_B
6767
:status: invalid
6868

69-
The Feature User shall do xyz to use the feature safely
69+
The Feature User shall do xyz to use the feature safely.
7070

7171
.. attention::
7272
The above directives must be updated according to your feature requirements.

process/folder_templates/features/feature_name/safety_analysis/dfa.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Dependent Failure Initiators
4949
:sufficient: <yes|no>
5050
:status: <valid|invalid>
5151
52-
.. note:: argument is inside the 'content'. Therefore content is mandatory
52+
.. note:: Argument is inside the 'content'. Therefore content is mandatory.
5353
5454
.. attention::
5555
The above directive must be updated according to your feature DFA.

process/folder_templates/features/feature_name/safety_analysis/fmea.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Failure Mode List
5050
:sufficient: <yes|no>
5151
:status: <valid|invalid>
5252
53-
.. note:: argument is inside the 'content'. Therefore content is mandatory
53+
.. note:: Argument is inside the 'content'. Therefore content is mandatory.
5454
5555
.. attention::
5656
The above directive must be updated according to your feature FMEA.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Dynamic Architecture
102102
:status: invalid
103103
:fulfils: comp_req__component_name__some_title
104104

105-
put here a sequence diagram
105+
Put here a sequence diagram
106106

107107

108108
Interfaces
@@ -128,7 +128,7 @@ Lower Level Components
128128
:fulfils: comp_req__component_name__some_title
129129
:implements: logic_arc_int__feature_name__interface_name
130130

131-
no architecture but detailed design
131+
No architecture but detailed design
132132

133133
.. note::
134134
Architecture can be split into multiple files. At component level the public interfaces to be used by the user and tester to be shown.

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ Requirements
3434
<Headlines (for the list of requirements if structuring is needed)>
3535
===================================================================
3636

37+
Component Requirements
38+
----------------------
39+
3740
.. comp_req:: Some Title
3841
:id: comp_req__component_name__some_title
3942
:reqtype: Process
@@ -53,6 +56,9 @@ Requirements
5356
- Set the status to valid and start the review/merge process
5457
- Add other needed requirements for your component
5558

59+
Assumption of Use Requirements
60+
------------------------------
61+
5662
.. aou_req:: Next Title
5763
:id: aou_req__component_name__next_title
5864
:reqtype: Process
@@ -62,6 +68,22 @@ Requirements
6268

6369
The Component User shall do xyz to use the component safely
6470

71+
Environmental Requirements
72+
--------------------------
73+
74+
.. aou_req:: Another Title
75+
:id: aou_req__component_name__another_title
76+
:reqtype: Process
77+
:security: YES
78+
:safety: ASIL_B
79+
:status: invalid
80+
:tags: environment
81+
82+
The Component shall only be used in a xyz environment to ensure its proper functioning.
83+
84+
Hints
85+
-----
86+
6587
.. attention::
6688
The above directives must be updated according to your feature requirements.
6789

process/folder_templates/modules/module_name/component_name/docs/safety_analysis/dfa.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Dependent Failure Initiators
4949
:sufficient: <yes|no>
5050
:status: <valid|invalid>
5151
52-
.. note:: argument is inside the 'content'. Therefore content is mandatory
52+
.. note:: Argument is inside the 'content'. Therefore content is mandatory.
5353

5454
.. attention::
5555
The above directive must be updated according to your component DFA.

process/folder_templates/platform/safety_analysis/platform_dfa.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Dependent Failure Initiators
5151
:mitigation_issue: <ID from Issue Tracker>
5252
:sufficient: <yes|no>
5353
:status: <valid|invalid>
54-
.. note:: argument is inside the 'content'. Therefore content is mandatory
54+
.. note:: Argument is inside the 'content'. Therefore content is mandatory.
5555

5656
.. attention::
5757
The above directive must be updated according to the platform DFA.

process/process_areas/architecture_design/_assets/metamodel_architectural_design.drawio.svg

Lines changed: 326 additions & 4 deletions
Loading

process/process_areas/architecture_design/architecture_concept.rst

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Static View
123123

124124
The first viewpoint is named as *feature architecture*. It displays the SW modules (= top level SW components) 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:
125125

126-
.. feat_arc_sta:: Feature 1
126+
.. feat_arc_sta:: Feature 1 Architecture
127127
:id: feat_arc_sta__example_feature__feature_1
128128
:security: YES
129129
:safety: QM
@@ -265,7 +265,7 @@ Although it is required to create a *DFA* on platform level no additional view i
265265
Specification of the architectural design
266266
*****************************************
267267

268-
The architectural design shall be modeled with the help of static, dynamic and interfaces at each defined level.
268+
The architectural design shall be modeled according to the :ref:`building blocks meta model <general_concepts_building_blocks>` with the help of static, dynamic and interfaces at each defined level.
269269
For the description a natural language, diagrams or a semi-formal language (*UML*, see :ref:`uml_diagram_selection`) shall be used.
270270

271271
The architectural elements itself including their correlations shall be modeled in a database like approach. Therefore following architectural elements shall be used:
@@ -277,30 +277,25 @@ The *static view* shows the *building blocks* of the architecture. It shall be c
277277

278278
.. list-table:: Definition of the static architectural elements
279279
:header-rows: 1
280-
:widths: 15,35,35
280+
:widths: 15,35
281281

282282
* - Element
283283
- Sphinx Needs Directive
284-
- Code Template
285284
* - Feature Architecture
286285
- feat_arc_sta
287-
- feat_arc_sta_t
288286
* - Component Architecture
289287
- comp_arc_sta
290-
- comp_arc_sta_t
291288

292289
To represent the CI build tool module (for example a `Bazel Modules <https://bazel.build/external/module>`_) an additional container (or package) is introduced. It can only contain components:
293290

294291
.. list-table:: Definition of the static module view
295292
:header-rows: 1
296-
:widths: 15,35,35
293+
:widths: 15,35
297294

298295
* - Element
299296
- Sphinx Needs Directive
300-
- Code Template
301297
* - Module View
302298
- mod_view_sta
303-
- mod_view_sta_t
304299

305300
Dynamic view
306301
============
@@ -311,17 +306,14 @@ The dynamic view shall be modeled partly in Sphinx Needs and PlantUML. The compo
311306

312307
.. list-table:: Definition of the dynamic architectural elements
313308
:header-rows: 1
314-
:widths: 15,35,35
309+
:widths: 15,35
315310

316311
* - Element
317312
- Sphinx Needs Directive
318-
- Code Template
319313
* - Dynamic Feature Architecture
320314
- feat_arc_dyn
321-
- feat_arc_sta_t
322315
* - Dynamic Component Architecture
323316
- comp_arc_dyn
324-
- comp_arc_dyn_t
325317

326318
Interface view
327319
==============
@@ -330,26 +322,28 @@ The *interface view* focuses on the interfaces of the components and shows the o
330322

331323
.. list-table:: Definition of the architectural elements
332324
:header-rows: 1
333-
:widths: 15,35,35
325+
:widths: 15,35
334326

335327
* - (Logical) Interface
336328
- logic_arc_int
337-
- logic_arc_int_t
338329
* - (Logical) Interface Operation
339330
- logic_arc_int_op
340-
- logic_arc_int_op_t
341331
* - (Real) Interface
342332
- real_arc_int
343-
- real_arc_int_t
344333
* - (Real) Interface Operation
345334
- real_arc_int_op
346-
- real_arc_int_op_t
347335

348336
Relations between the architectural elements
349337
============================================
350338

351339
The traceability between the architectural elements itself shall be established by modeling the elements in the *docs-as-code* tool. Here a "clickable" architecture can be generated which allows an easy tracing through the element tree. The previously introduced architectural components shall be connected by using following relations:
352340

341+
.. note::
342+
The current state only considers logic_arc_int, others will be addressed later in the model and is work in progress.
343+
344+
The following picture shows the metamodel for the architectural design including the defined elements and their relations.
345+
It serves as a guidance for modeling the architecture.
346+
353347
.. figure:: _assets/metamodel_architectural_design.drawio.svg
354348
:width: 90%
355349
:align: center

0 commit comments

Comments
 (0)