diff --git a/index.rst b/index.rst index cbbdeb8..6cfdd3f 100644 --- a/index.rst +++ b/index.rst @@ -108,8 +108,13 @@ Component documentation :maxdepth: 1 score/component_example/docs/index - score/component_example/docs/architecture/component_architecture_template - score/component_example/docs/detailed_design/detailed_design_example + score/component_example/docs/architecture/index + score/component_example/docs/detailed_design/index + score/component_example/docs/requirements/index + score/component_example/docs/safety_analysis/dfa + score/component_example/docs/safety_analysis/fmea + score/component_example/docs/safety_analysis/aou_requirements_template + score/component_example/docs/component_classification Examples -------- diff --git a/score/component_example/docs/architecture/index.rst b/score/component_example/docs/architecture/index.rst index c2b25d0..0965f3e 100644 --- a/score/component_example/docs/architecture/index.rst +++ b/score/component_example/docs/architecture/index.rst @@ -141,3 +141,22 @@ Internal Components - Replace the example content by the real content (according to :need:`gd_guidl__arch_design`) - Set the status to valid and start the review/merge process + +Component Architecture Template +------------------------------- + + A component architecture template is available to be used as a starting point for the documentation of the component architecture. It includes the main sections and example content to be adapted according to the real component architecture. + +.. toctree:: + + component_architecture_template + + +Architecture Checklist +---------------------- + +See following architecture inspection checklist for verification of the architecture. + +.. toctree:: + + chklst_arc_inspection diff --git a/score/component_example/docs/detailed_design/detailed_design_example.rst b/score/component_example/docs/detailed_design/detailed_design_example.rst index 26670f3..57c3146 100644 --- a/score/component_example/docs/detailed_design/detailed_design_example.rst +++ b/score/component_example/docs/detailed_design/detailed_design_example.rst @@ -25,53 +25,18 @@ Description Static Diagrams for Unit Interactions ------------------------------------- -.. dd_sta:: dd example static - :id: dd_sta__example_feature__approver - :security: NO - :safety: ASIL_B - :status: valid - :implements: comp_req__example_feature__example_req - :satisfies: comp_arc_sta__mod_temp_component_name__sv - .. uml:: dd_example_ex_sta.puml -Dynamic Diagrams for Unit Interactions --------------------------------------- - -.. dd_dyn:: dd example dynamic - :id: dd_dyn__example_feature__dynamic - :security: NO - :safety: ASIL_B - :status: valid - :implements: comp_req__example_feature__example_req - :satisfies: comp_arc_sta__mod_temp_component_name__sv +Dynamic Diagrams for Unit Interactions (optional) +-------------------------------------------------- .. uml:: dd_example_ex_dyn.puml Units within the Component -------------------------- -From here onwards the needs are defined in the source code and will be automatically generated and linked via doxygen. - -SW Unit -******* - -The unit description is generated from the source code and linked with -the need ID sw_unit__example_feature__unit1. - -Interface -********* - -The interface description is generated from the source code and linked with -the need ID sw_unit_int__example_feature__u1_i1. - -SW Unit -******* - -The unit description is generated from the source code and linked with -the need ID sw_unit__example_feature__unit2. -Interface -********* +The units are defined in the source code. The relationship between a unit and the +component is established implicitly through the file path. -The interface description is generated from the source code and linked with -the need ID sw_unit_int__example_feature__u2_i2. +- unit1: implements the main logic (see source code for details) +- unit2: injected into unit1 via dependency injection for testability diff --git a/score/component_example/docs/detailed_design/index.rst b/score/component_example/docs/detailed_design/index.rst index 55e4ba4..0a18bcb 100644 --- a/score/component_example/docs/detailed_design/index.rst +++ b/score/component_example/docs/detailed_design/index.rst @@ -52,107 +52,48 @@ Rationale Behind Decomposition into Units Static Diagrams for Unit Interactions ------------------------------------- -.. code-block:: rst - - .. dd_sta::