Skip to content

Commit 90f8057

Browse files
Merge pull request #465 from qorix-group/vohae_improvement_implementation
Improvement: Implementation process description ML#2
2 parents 2aa7e0f + 6c4aea7 commit 90f8057

File tree

5 files changed

+376
-28
lines changed

5 files changed

+376
-28
lines changed

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

Lines changed: 83 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,25 +55,104 @@ Static Diagrams for Unit Interactions
5555
.. code-block:: rst
5656
5757
.. dd_sta:: <Title>
58-
:id: dd_sta__<Feature>__<Title>
58+
:id: dd_sta__<Component>__<Title>
5959
:security: <YES|NO>
6060
:safety: <QM|ASIL_B>
6161
:status: <valid|invalid>
6262
:implements: <link to component requirement id>
6363
:satisfies: <link to component architecture id>
64+
:belongs_to: <link to component id>
65+
:includes: <link to sw_unit id>, <link to sw_unit interface id>
6466
65-
.. image:: <link to drawio image> or .. uml:: <link to plantuml>
67+
.. needarch:: or .. image:: <link to drawio image>
6668
6769
Dynamic Diagrams for Unit Interactions
6870
--------------------------------------
6971
.. code-block:: rst
7072
7173
.. dd_dyn:: <Title>
72-
:id: dd_dyn__<Feature>__<Title>
74+
:id: dd_dyn__<Component>__<Title>
7375
:security: <YES|NO>
7476
:safety: <QM|ASIL_B>
7577
:status: <valid|invalid>
7678
:implements: <link to component requirement id>
7779
:satisfies: <link to component architecture id>
80+
:belongs_to: <link to component id>
81+
:includes: <link to sw_unit id>, <link to sw_unit interface id>
7882
79-
.. image:: <link to drawio image> or .. uml:: <link to plantuml>
83+
.. needarch:: or .. image:: <link to drawio image>
84+
85+
Units within the Component
86+
--------------------------
87+
88+
In your rst file:
89+
90+
.. code-block:: rst
91+
92+
.. sw_unit:: cpp unit
93+
:id: sw_unit__<Component>__<title>
94+
:belongs_to: <link to component id>
95+
96+
This implements the ....
97+
98+
In your source file, any programming language, here with C++:
99+
100+
.. code-block:: cpp
101+
102+
# need-Id: sw_unit__<Component>__<title>
103+
class <class name> {
104+
public:
105+
106+
};
107+
108+
Interface View
109+
--------------
110+
111+
In your rst file:
112+
113+
.. code-block:: rst
114+
115+
.. sw_unit_int:: <here InterfaceDemo - change it>
116+
:id: sw_unit_int__<Component>__<title>
117+
:belongs_to: <link to sw_unit id>
118+
:implements: <real_arc_int, real_arc_int_op>
119+
120+
This implements the ....
121+
122+
In your source file, any programming language, here with C++:
123+
124+
.. code-block:: cpp
125+
126+
# need-Id: sw_unit__<Component>__<title>
127+
class InterfaceDemo
128+
{
129+
public:
130+
virtual ~InterfaceDemo() {}
131+
virtual void OverrideMe() = 0;
132+
};
133+
134+
- For cpp using doxygen comments
135+
136+
.. code-block:: cpp
137+
138+
/**
139+
* @rst
140+
* .. sw_unit_int:: cpp unit
141+
* :id: sw_unit_int__<Component>__<title>
142+
* :belongs_to: <link to sw_unit id>
143+
* :implements: <real_arc_int, real_arc_int_op>
144+
*
145+
* This implements the ....
146+
* @endrst
147+
*/
148+
149+
- For rust
150+
151+
.. code-block:: rust
152+
153+
//! .. sw_unit_int:: rust unit
154+
//! :id: sw_unit_int__<Component>__<title>
155+
//! :belongs_to: <link to sw_unit id>
156+
//! :implements: <real_arc_int, real_arc_int_op>
157+
//!
158+
//! This implements the ....

process/process_areas/implementation/guidance/implementation_guideline.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Guideline
2020
:status: valid
2121
:complies: std_req__iso26262__software_744
2222

23-
This document describes the general guidances for implementation based on the concept which is defined :need:`[[title]]<doc_concept__imp_concept>`.
24-
In the concept is a example of a Detailed Design included.
23+
This document describes the general guidance for implementation based on the concept which is defined :need:`[[title]]<doc_concept__imp_concept>`.
24+
The concept includes an example of a Detailed Design.
2525

2626
Workflow for Implementation
2727
===========================
@@ -37,7 +37,7 @@ Detailed description which steps are need for implementation.
3737
#. Implement the source code, by using the coding guidelines given within the project specific :need:`SW development Plan <wp__sw_development_plan>` for the programming languages in your project.
3838
#. Create a pull request for your change.
3939
#. Detail Design and Code Inspection is done to review the code of the software and detect errors in it.
40-
#. Check the results of the static and dynamic code analysis (this inlcludes compiler warnings). Acceptance criteria are defined in the Verification Plan :need:`gd_temp__verification_plan`.
40+
#. Check the results of the static and dynamic code analysis (this includes compiler warnings). Acceptance criteria are defined in the Verification Plan :need:`gd_temp__verification_plan`.
4141
#. Fix or justify the errors.
4242
#. Merge the pull request.
4343
#. Create a follow up ticket if not all findings could be fixed.

0 commit comments

Comments
 (0)