Demo page details
Page source code: requirements.rst
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
|
π Requirements TeenΒΆ
Demo feature hint: Constraints
For requirements two constraints are defined, which check if the status
is set correctly and if a release
is linked.
If these constraints are not fulfilled, the need object gets a colored right border and the footer contains the reason why a constraint is not fulfilled.
Constraints can be defined in the conf.py
file:
needs_constraints = {
"status_set": {
"check_0": "status is not None and status in ['open', 'in progress', 'closed']",
"severity": "LOW",
"error_message": "Status is invalid or not set!"
},
"release_set": {
"check_0": "len(release)>0",
"severity": "CRITICAL",
"error_message": "Requirement is not planned for any release!"
},
}
Depending on the severity, the build is stopped or a warning gets printed:
/sphinx-needs-demo/docs/granny_car/requirements.rst:20: WARNING: Constraint len(release)>0 for need GRANNY_EXAMPLE FAILED! severity: CRITICAL Requirement is not planned for any release! [needs.constraint]
The car must include advanced safety features such as automatic braking, collision avoidance systems, and adaptive cruise control to ensure the safety of teenage drivers. |
The car should be equipped with built-in Wi-Fi, Bluetooth connectivity, and compatibility with smartphone integration systems to enable seamless communication and entertainment for teenagers on the go.
|
The car must offer a range of customization options, including exterior colors, interior finishes, and optional accessories, allowing teenagers to personalize their vehicles to reflect their individual styles and preferences. |
Object traceability details: Customization Options
ID |
Title |
Type |
Author |
---|---|---|---|
Peter Parker |
person |
||
Customization Options |
req |
The car should prioritize fuel efficiency, with a focus on eco-friendly technologies such as hybrid or electric powertrains, to minimize environmental impact and reduce operating costs for teenage drivers. |
The carβs interface should be intuitive and easy to use, with a touchscreen infotainment system, voice recognition capabilities, and simplified controls to enhance the driving experience for teenage users. |
We need to adapt the configuration of our RADAR system depending on the final customer. Demo feature hint: Variant handlingThis Requirement is using variant handling.
Depending on the value of the The variant matrix looks like this:
The used code for the options is:
author:
customer_a:ROBERT, customer_b:SARAH status:
customer_a:open, customer_b:closed The value of Setting values of options can be done dynamically and triggered from outside. So different build commands could result in a totally different document thanks
to the used |
|||||||||
Object traceability details: Customer-specific RADAR configuration
ID |
Title |
Type |
Author |
---|---|---|---|
Sarah Smith |
person |
||
Customer-specific RADAR configuration |
req |
The autonomous driving system integrated into the teenagerβs vehicle must encompass a robust sensor suite comprising lidar, radar, cameras, and ultrasonic sensors to provide comprehensive environmental perception. Utilizing deep learning algorithms, the system should enable real-time object detection, classification, and trajectory prediction for efficient obstacle avoidance. It should employ a hierarchical control architecture, incorporating motion planning algorithms such as MPC (Model Predictive Control) to ensure smooth and safe trajectory tracking. Additionally, the system must support secure communication protocols for remote monitoring and control, allowing guardians to access and manage settings through a secure web interface. |
Object traceability details: Autonomous Driving
ID |
Title |
Type |
Author |
---|---|---|---|
Autonomous Driving |
req |