
In the realm of Systems Engineering, particularly when dealing with safety-critical domains like autonomous driving, the gap between high-level business goals and low-level engineering logic can be vast. SysML (Systems Modeling Language) bridges this gap through formal modeling. One of the most powerful constructs in SysML is the Requirement Diagram, which acts as the backbone for ensuring that a system meets its intended safety standards.
This tutorial explores the architecture of a Requirement Diagram using a practical example: a self-driving car system. We will analyze how to structure requirements, link them to use cases, and leverage modern AI tools to generate these complex diagrams efficiently.
The Architecture of a SysML Requirement Diagram
A Requirement Diagram is not merely a list of text; it is a graph that defines the logical flow of system validation. It establishes traceability matrices that tell us exactly which specific requirements satisfy a high-level use case.
Let’s break down the architecture shown in the visual example:
- Use Case Layer (The “What”): At the top of the hierarchy, we have the
Use Caseelements (e.g., Stop at Red Light). These represent the functional scenarios the driver or system must handle. - Requirement Layer (The “How”): Below the use cases are the
Requirementelements. These are the specific constraints (Functional or Performance) that must be met to successfully execute the use case. - Relationships (Traceability): The arrows connecting these boxes define the logical dependencies. The most critical relationship is
<<satisfy>>, which proves that a requirement is sufficient to cover a use case.
Key Relationships Explained
Understanding the direction and type of the arrows is crucial for accurate modeling.
- <<satisfy>> (Satisfaction): This is the primary link. It indicates that the element at the tail of the arrow (the Requirement) fulfills the element at the head (the Use Case). In the diagram, you will see
<<satisfy>>links connecting specific requirements like Lane Change Execution to the broader Lane Change use case. - <<deriveReq>> (Derivation): This relationship flows from a high-level requirement down to a more detailed, child requirement. For example, the requirement Stop at Red Light is derived into the more specific Lane Change Detection logic.
- <<refine>> (Refinement): This often connects a requirement to a model element that provides more detail, ensuring the requirement is not just text but is backed by functional behavior.
Implementing the Diagram: From Concept to Code
While modern tools like Visual Paradigm allow for drag-and-drop modeling, the underlying logic can be defined programmatically using SysML or textual modeling languages. This approach is often used in Model-Based Systems Engineering (MBSE) to automate diagram generation.
Below is a representation of how the structure of the “Self-Driving Car” safety requirements might be structured in a modeling script.
// Define the System Boundary
namespace SelfDrivingCar_System {
// 1. Define the Use Cases (Top Level Goals)
usecase Stop_at_Red_Light;
usecase Lane_Change;
usecase Brake_On_Obstacle;
// 2. Define High-Level Requirements
requirement Collision_Avoidance {
text: "System shall avoid collision by applying safe braking or path re-routing.";
type: Functional;
}
// 3. Define Detailed Requirements (Functional & Performance)
requirement Stop_at_Red_Light_Req {
text: "System shall come to a complete stop at red traffic lights.";
type: Functional;
}
requirement Lane_Change_Execution {
text: "System shall execute safe lane change within 2 seconds.";
type: Performance;
}
requirement Obstacle_Response {
text: "System shall apply braking or steering actions when an obstacle is detected.";
type: Functional;
}
requirement Safe_Braking {
text: "System shall apply braking with deceleration no more than 2 m/s^2.";
type: Performance;
}
// 4. Establish Relationships
// Satisfaction Links (Requirement -> Use Case)
Stop_at_Red_Light_Req satisfies Stop_at_Red_Light;
Lane_Change_Execution satisfies Lane_Change;
Obstacle_Response satisfies Brake_On_Obstacle;
Safe_Braking satisfies Brake_On_Obstacle;
// Derivation Links (Parent Requirement -> Child Requirement)
Collision_Avoidance derivesLane Change_Detection;
Lane_Change_Execution derives Lane_Change_Detection;
}
AI-Assisted Modeling Workflow
The image provided demonstrates the future of systems engineering: Natural Language to SysML. Instead of manually dragging boxes and drawing arrows, users can now issue a prompt to an AI agent.
Example Prompt: “Generate a SysML requirement diagram for safety-critical behaviors in a self-driving car.”
The AI engine parses this intent, identifies the standard safety patterns (like braking distance and collision avoidance), and constructs the graph. This reduces the setup time for complex diagrams from hours to seconds.
Conclusion
By structuring your requirements hierarchically and linking them to specific use cases, you create a robust framework for system validation. Whether you are building a diagram manually or using an AI chatbot to generate it, understanding the semantic meaning of the <<satisfy>> and <<deriveReq>> arrows ensures that your safety-critical systems are logically sound and auditable.
