textual-notation-of-model/packages/architecture/sdv_platform_stack.sysml

1 view(s) · 116 declared member(s) Jump to source ↓

view sdvPlatformStackStructureViewsource ↓

ViewpointselectedPhysicalStructureViewpoint (PhysicalStructureDefinitionViewpoint)
Framed concerns
  • physicalStructureConcern own frame
RenderasTreeDiagram
ExposesDE4SDV_SDVPlatformStack::*
Sourcetextual-notation-of-model/packages/architecture/sdv_platform_stack.sysml:780
diagram-sdvPlatformStackStructureView.svg
«view» sdvPlatformStackStructureView expose DE4SDV_SDVPlatformStack::* «comment» ────────────────────────────────────────── Stack layer definitions ────────────────────────────────────────── Each layer is an abstract part def. Concrete realizations specialize these defs and appear as variants in the variation section below. «part def» SDVPlatformStack doc Complete layered architecture of a software-defined vehicle computing platform. A configured member product selects one realization from each variation, subject to the constraints of the PLEML feature model. One SoC has a main side and an optional guest side. The main side is the execution domain that runs the vehicle application, on the operating system of osPlatform. With KVM, the main side is the KVM host: its operating system hosts the hypervisor and is not a guest of it. The guest side is a second execution domain under the hypervisor, with guestOSPlatform and guestMiddleware. It is a guest partition of one or more VMs. How many VMs it holds, and which image each one runs, are realization choices (ADR 0025). The middleware variation is the middleware that the vehicle application integrates with through the adapter. Eclipse S-CORE and AUTOSAR Adaptive run on the main side. An AAOS SDV partner runs in the guest (constraint C009 of the feature model), so the androidSDV variant refers to the AAOS SDV of the guest and adds no second instance. parts vehicleApplication : VehicleApplicationLayer middleware : MiddlewareLayer applicationMiddlewareAdapter : ApplicationMiddlewareAdapterLayer osPlatform : OSPlatformLayer hypervisor : HypervisorLayer guestOSPlatform : OSPlatformLayer guestMiddleware : MiddlewareLayer hardware : HardwareLayer features Inter-layer boundary interfaces. Each boundary is a bidirectional interface between adjacent layers. The contracts at these boundaries are what DE4SDV models; the concrete realizations either conform or don't. The middleware-to-OS boundary, per side. Eclipse S-CORE and AUTOSAR Adaptive run on the main-side OS. The guest middleware runs on the guest OS; the AAOS SDV partner is that guest middleware, so it has no boundary to the main-side OS. Only the guest OS is connected to the guest port. The main-side OS is not: with KVM it hosts the hypervisor; with ACRN it runs in a VM too (ACRNHypervisor), and with QVM its relation is left to the realization. The stack does not model these main-side relations as connections. «comment» ────────────────────────────────────────── Layer abstractions ────────────────────────────────────────── Each layer def declares the boundary ports it exposes to adjacent layers. Internal structure is deliberately not modeled. «part def» VehicleApplicationLayer doc Vehicle domain-specific application layer. Provides domain-specific applications such as ADAS (perception, planning, control), body, chassis, powertrain, IVI, telematics, connectivity, and diagnostics. Candidate realizations shown: Autoware, Openpilot, Apollo Auto (ADAS domain). Domain-specific application stacks typically ship their own internal middleware (ROS 2, Cyber RT, custom) for ADAS-internal communication. The boundary port to the vehicle-level middleware handles vehicle signal access, diagnostics, and lifecycle coordination. ports middlewarePort : ApplicationAdapterPort «part def» ApplicationMiddlewareAdapterLayer doc Adapter between domain-specific application stacks and vehicle-level middleware. Each application stack ships its own internal communication (e.g. Autoware uses ROS 2/DDS); the vehicle-level middleware uses a different communication paradigm (e.g. S-CORE uses LoLa, Android SDV uses VSIDL service bundles, AUTOSAR uses SOME/IP). The adapter translates between these. ports applicationPort : ApplicationAdapterPort middlewarePort : MiddlewareAdapterPort «part def» MiddlewareLayer doc Vehicle-level middleware / runtime platform. Provides IPC, lifecycle management, service discovery, diagnostics, persistency, and timing orchestration for the applications of its execution domain. Candidate realizations: Eclipse S-CORE, Android SDV, AUTOSAR Adaptive Platform (AP). The stack has two middleware slots: middleware, the one that the vehicle application integrates with, and guestMiddleware, the one of the guest side. Note: AGL is a full platform (OS + IVI + app framework), not a middleware layer. It is modeled at the OS platform layer. ports applicationPort : MiddlewareAdapterPort osPort : MiddlewareOSPort «part def» OSPlatformLayer doc Operating system / platform layer. Provides scheduling, memory management, driver support, and POSIX or Android framework services. Candidate realizations: Linux (AGL, generic), Android HLOS, QNX, AUTOSAR Adaptive platform. The stack has two OS slots: osPlatform for the main side and guestOSPlatform for the guest side. The hypervisorPort serves an OS that runs as a guest. ports middlewarePort : MiddlewareOSPort hypervisorPort : OSHypervisorPort «part def» HypervisorLayer doc Virtualization / hypervisor layer. Provides partition isolation for mixed-criticality systems where multiple OS domains share the same SoC. One hypervisor per SoC. Optional: single-domain architectures do not use a hypervisor. The variation below includes a "none" variant for this case. Its guest port serves the guest side. Whether the main side hosts the hypervisor or runs as a guest of it depends on the realization: KVM runs in the Linux kernel of the main side, so the main side is its host. The stack connects only the guest OS to the guest port. Candidate realizations: QNX QVM, ACRN, KVM (Linux). ports guestPort : OSHypervisorPort hypervisorPort : HardwareHypervisorPort «part def» HardwareLayer doc Physical compute hardware: SoC, MCU, sensors, actuators. DE4SDV does not model physics, thermodynamics, or mechanics at this layer — only the compute platform boundary that the software stack executes on. Candidate realizations: Qualcomm, NVIDIA, Renesas, NXP, etc. This layer is deliberately abstract; concrete hardware modeling is out of scope for the SDV platform stack slice. ports hypervisorPort : HardwareHypervisorPort «comment» ────────────────────────────────────────── Boundary interface definitions ────────────────────────────────────────── Each interface def declares the contract surface between two adjacent layers. These are abstract contracts; specific timing, safety, and security properties will be added in the reference-contract-packages increment. «port def» ApplicationMiddlewarePort doc Port type for the Vehicle Application ↔ Middleware boundary. Carries vehicle signal access, diagnostics, lifecycle coordination, and service-binding interactions. items vehicleSignals diagnosticCommands lifecycleEvents serviceRequests «interface def» ApplicationMiddlewareInterface doc Contract between the vehicle application layer and the vehicle-level middleware. The application stack expects signal access, timing-aware scheduling, and fault containment from the middleware. The middleware expects the application stack to register as a managed application with defined lifecycle hooks. ends adasSide : ApplicationMiddlewarePort middlewareSide : ApplicationMiddlewarePort «port def» ApplicationAdapterPort doc Port type for the Vehicle Application ↔ Adapter boundary. Carries application-native communication (e.g. ROS 2 topics for Autoware). items applicationNativeMessages applicationLifecycleEvents «port def» MiddlewareAdapterPort doc Port type for the Adapter ↔ Middleware boundary. Carries middleware-native communication (e.g. LoLa for S-CORE, VSIDL for Android SDV, SOME/IP for AUTOSAR). items middlewareNativeMessages middlewareLifecycleEvents «interface def» ApplicationAdapterInterface doc Contract between the vehicle application layer and the adapter. The application stack publishes/subscribes in its native protocol; the adapter translates. ends applicationSide : ApplicationAdapterPort adapterSide : ApplicationAdapterPort «interface def» AdapterMiddlewareInterface doc Contract between the adapter and the vehicle-level middleware. The adapter translates application-native messages to middleware-native service calls/signals. ends adapterSide : MiddlewareAdapterPort middlewareSide : MiddlewareAdapterPort «port def» MiddlewareOSPort doc Port type for the Middleware ↔ OS boundary. Carries scheduling requests, memory allocation, power management, and watchdog/timeout interactions. items schedulingRequests memoryAllocation powerManagement watchdogSignals «interface def» MiddlewareOSInterface doc Contract between the middleware runtime and the operating system. The middleware expects preemptive scheduling, memory isolation, deterministic timing support, and driver access from the OS. The OS expects the middleware to respect resource limits and scheduling policies. ends middlewareSide : MiddlewareOSPort osSide : MiddlewareOSPort «port def» OSHypervisorPort doc Port type for the OS ↔ Hypervisor boundary. Carries partition configuration, inter-VM communication, resource allocation, and isolation properties. items partitionConfig interVMCommunication resourceAllocation «interface def» OSHypervisorInterface doc Contract between an OS domain and the hypervisor. The OS expects CPU/memory/I/O allocation, partition isolation, and inter-VM communication channels from the hypervisor. The hypervisor expects the OS to operate within its allocated partition. ends osSide : OSHypervisorPort hypervisorSide : OSHypervisorPort «port def» HardwareHypervisorPort doc Port type for the Hypervisor ↔ Hardware boundary. Carries hardware resource access, interrupt routing, and platform initialization. items hardwareResources interruptRouting «interface def» HardwareHypervisorInterface doc Contract between the hypervisor and the physical compute hardware. The hypervisor expects access to CPU cores, memory regions, interrupt controllers, and I/O devices. This is the lowest software-visible boundary; below it is hardware only. ends hypervisorSide : HardwareHypervisorPort hardwareSide : HardwareHypervisorPort «comment» ────────────────────────────────────────── Candidate realizations — vehicle application layer (ADAS domain shown) ────────────────────────────────────────── «part def» AutowareStack :> VehicleApplicationLayer doc Autoware (Autoware Foundation). Open-source autonomous driving stack based on ROS 2. License: Apache 2.0. Status: candidate realization — no assumption of conformance to DE4SDV boundary contracts without evidence. ports ^middlewarePort : ApplicationAdapterPort «part def» OpenpilotStack :> VehicleApplicationLayer doc Openpilot (comma.ai). Open-source driver assistance system (L2). Ships its own internal middleware; the boundary port captures vehicle-level integration only. License: MIT / comma.ai custom. Status: candidate realization. ports ^middlewarePort : ApplicationAdapterPort «part def» ApolloStack :> VehicleApplicationLayer doc Apollo Auto (Baidu). Open-source autonomous driving stack using Cyber RT as internal middleware. License: Apache 2.0. Status: candidate realization. ports ^middlewarePort : ApplicationAdapterPort «comment» ────────────────────────────────────────── Candidate realizations — application-middleware adapter layer ────────────────────────────────────────── «part def» AutoE2EStack :> VehicleApplicationLayer doc AutoE2E (Autoware Foundation auto_e2e): a camera-only end-to-end driving stack that plans a trajectory from six camera images, the ego-motion history and a route raster, as an exported checkpoint run by DE4SDV's own programs rather than as a ROS 2 stack. License: Apache 2.0 for the source; the checkpoint's terms are resolved separately (INC-DRIVING-001). Status: candidate realization, admitted to no member; the driving increment's phase 8 places it, phase 10 proves it. No conformance to DE4SDV boundary contracts is assumed without evidence. ports ^middlewarePort : ApplicationAdapterPort «part def» VisionPilotStack :> VehicleApplicationLayer doc VisionPilot (Autoware Foundation vision_pilot): a camera-only driver-assistance application that plans steering and acceleration from one front-camera image and the vehicle speed, one Linux process with its own loop, built without ROS 2 on the DE4SDV bench. License: Apache 2.0 for the source; the terms of its network weights are read separately (INC-DRIVING-002). Status: candidate realization, admitted to no member; the driver-assistance increment's phase 8 places it, phase 10 judges it. No conformance to DE4SDV boundary contracts is assumed without evidence. ports ^middlewarePort : ApplicationAdapterPort «part def» AutowareToSCOREAdapter :> ApplicationMiddlewareAdapterLayer doc Adapts Autoware ROS 2 topics to Eclipse S-CORE LoLa IPC. ports ^applicationPort : ApplicationAdapterPort ^middlewarePort : MiddlewareAdapterPort «part def» AutoE2EToSCOREAdapter :> ApplicationMiddlewareAdapterLayer doc The mw::com binding code of the three programs that realize the closed-loop driving system on Eclipse S-CORE: the driving agent, the actuation adapter and the operational-state publisher of INC-DRIVING-001 phase 8 speak S-CORE Communication between their processes, so the adapter is no program of its own. Derived for the pair AutoE2E and Eclipse S-CORE; no other pairing of AutoE2E has an adapter. ports ^applicationPort : ApplicationAdapterPort ^middlewarePort : MiddlewareAdapterPort «part def» VisionPilotToSCOREAdapter :> ApplicationMiddlewareAdapterLayer doc The DE4SDV S-CORE interface module of the VisionPilot process of INC-DRIVING-002 phase 8. It runs inside the candidate's process, so the adapter is no program of its own. On S-CORE Communication (mw::com), the vehicle interface publishes the driving command and subscribes to the candidate record, and the warning request publisher publishes the warning request. The camera images and the speed of the ego vehicle come from the simulator's client library, not from mw::com. Derived for the pair VisionPilot and Eclipse S-CORE; no other pairing of VisionPilot has an adapter. ports ^applicationPort : ApplicationAdapterPort ^middlewarePort : MiddlewareAdapterPort «part def» AutowareToAAOSSDVAdapter :> ApplicationMiddlewareAdapterLayer doc Candidate boundary between Autoware ROS 2 and AAOS SDV service interfaces. A configured product may select a direct VSIDL-to-ROS 2 realization or a separately justified brokered realization. This definition does not claim generated bindings, transport, deployment, runtime behavior, or interoperability evidence. ports ^applicationPort : ApplicationAdapterPort ^middlewarePort : MiddlewareAdapterPort «part def» AutowareToAUTOSARAdapter :> ApplicationMiddlewareAdapterLayer doc Adapts Autoware ROS 2 topics to AUTOSAR Adaptive SOME/IP services. ports ^applicationPort : ApplicationAdapterPort ^middlewarePort : MiddlewareAdapterPort «part def» OpenpilotToSCOREAdapter :> ApplicationMiddlewareAdapterLayer doc Adapts Openpilot internal communication to S-CORE LoLa. ports ^applicationPort : ApplicationAdapterPort ^middlewarePort : MiddlewareAdapterPort «part def» ApolloToSCOREAdapter :> ApplicationMiddlewareAdapterLayer doc Adapts Apollo Cyber RT to S-CORE LoLa. ports ^applicationPort : ApplicationAdapterPort ^middlewarePort : MiddlewareAdapterPort «comment» ────────────────────────────────────────── Candidate realizations — Middleware layer ────────────────────────────────────────── «part def» EclipseSCORE :> MiddlewareLayer doc Eclipse S-CORE (Safe Open Vehicle Core). Open-source automotive middleware (C++ / Rust). Modules: communication (LoLa), orchestration, persistency, time, lifecycle, diagnostics, baselibs. Targets: Linux, QNX. Not designed for Android HLOS. In the stack it runs on the main side, so the main-side operating system is Linux or QNX (constraint C001 of the feature model). License: Apache 2.0. Status: candidate realization. S-CORE maintainers have not been engaged on SysML v2 model integration. ports ^applicationPort : MiddlewareAdapterPort ^osPort : MiddlewareOSPort «part def» AndroidSDVMiddleware :> MiddlewareLayer doc Android SDV (Google / AOSP): the AAOS SDV middleware, a native Android-derived platform for distributed vehicle services. It runs on Android HLOS (constraint C008 of the feature model). In the stack it runs in the guest domain under a hypervisor: it is the guest middleware, and an AAOS SDV partner of the vehicle application is that guest middleware (C009). The image that carries it is a realization choice. The headless SDV Core image (sdv_core_cf) excludes the JVM, Java services, Android applications and GUI functionality. The display-capable IVI image (sdv_ivi_cf) runs Android applications with a GUI. Every member selects the hmiDisplay capability, common content of every member (ADR 0026); in an integrated member the display is in this guest. Internal structure modeled in: textual-notation-of-model/packages/architecture/aaos_sdv_middleware_boundary.sysml (DE4SDV_AAOSSDVMiddlewareBoundary package). Key elements: Orchestrator, Service Lifecycle Manager, Health Monitor, Update Manager, VSIDL/Middleware, Service Discovery, RPC, Data Tunnel, SOME/IP interoperability, Automotive Services (Diagnostics, Configuration, Calibration, Vehicle Power Mode, User Profile). License: Apache 2.0 (AOSP). Status: candidate realization. Upstream AAOS SDV maintainers have not been engaged on DE4SDV model integration (GAP-MW-005). ports ^applicationPort : MiddlewareAdapterPort ^osPort : MiddlewareOSPort «part def» AUTOSARAdaptive :> MiddlewareLayer doc AUTOSAR Adaptive Platform (AP). Service-oriented automotive middleware standard. This entry is a placeholder for the standard interface contract, not a specific open-source implementation. License: varies by implementation. Status: candidate realization — interface contract only. ports ^applicationPort : MiddlewareAdapterPort ^osPort : MiddlewareOSPort «comment» ────────────────────────────────────────── Candidate realizations — OS platform layer ────────────────────────────────────────── «part def» LinuxPlatform :> OSPlatformLayer doc Generic Linux platform (POSIX, preemptive scheduling). Includes AGL and custom Linux distributions. License: GPL (kernel) + Apache 2.0 / varies (user space). Status: candidate realization. ports ^middlewarePort : MiddlewareOSPort ^hypervisorPort : OSHypervisorPort «part def» AndroidHLOS :> OSPlatformLayer doc Android High-Level OS (Google / AOSP). Linux kernel (GKI) + Android framework. License: Apache 2.0 (AOSP) + GPL (kernel). Status: candidate realization. ports ^middlewarePort : MiddlewareOSPort ^hypervisorPort : OSHypervisorPort «part def» QNXPlatform :> OSPlatformLayer doc QNX Neutrino RTOS (BlackBerry / QNX). Real-time OS with a microkernel and a POSIX API. License: commercial (not open-source). Status: candidate realization — included for mixed-criticality architectures; acknowledged as non-OSS. ports ^middlewarePort : MiddlewareOSPort ^hypervisorPort : OSHypervisorPort «comment» ────────────────────────────────────────── Candidate realizations — Hypervisor layer ────────────────────────────────────────── «part def» QNXQVM :> HypervisorLayer doc QNX Virtual Machine (QVM) hypervisor. Host for mixed-criticality: QNX + Linux + Android guests. License: commercial (QNX). Status: candidate realization. ports ^guestPort : OSHypervisorPort ^hypervisorPort : HardwareHypervisorPort «part def» ACRNHypervisor :> HypervisorLayer doc ACRN (Project ACRN, Linux Foundation). Open-source hypervisor for automotive and IoT. Supports Linux and Android guests. It runs each execution domain in a VM, the service VM included, so in the stack the main side is an ACRN guest too. License: BSD-2-Clause. Status: candidate realization. ports ^guestPort : OSHypervisorPort ^hypervisorPort : HardwareHypervisorPort «part def» KVMHypervisor :> HypervisorLayer doc KVM (Kernel-based Virtual Machine, Linux). Open-source virtualization in the Linux kernel. In the stack the main side hosts it: KVM runs in the kernel of the main-side operating system, and only the guest OS is a KVM guest. License: GPL / LGPL. Status: candidate realization. ports ^guestPort : OSHypervisorPort ^hypervisorPort : HardwareHypervisorPort «comment» ────────────────────────────────────────── Compatibility rules and design notes ────────────────────────────────────────── The compatibility rules between the layer realizations are the constraints of the PLEML feature model, model-based-product-line-engineering/feature-models/sdv_product_line.sysml: the exclusions C001 and C003 to C005, the requires constraints C007 to C011 and the pair exclusions of Openpilot and Apollo. This superset does not restate them. The constraint definitions below are design notes, not rules. «constraint def» ApplicationMiddlewareCoexistence doc Application ↔ Middleware coexistence. Domain-specific application stacks (e.g. Autoware, Openpilot, Apollo for ADAS) each ship their own internal communication middleware. They coexist with the vehicle-level middleware (S-CORE, Android SDV, AUTOSAR Adaptive) as separate layers — not as alternatives at the same layer. The application stack handles domain-internal pipelines (e.g. ADAS perception→planning→control). The vehicle middleware handles vehicle signal access, diagnostics, lifecycle, and inter-domain communication. No invalid combination exists at this boundary in principle, but integration effort varies significantly: Autoware + S-CORE: ROS 2 IPC must bridge to LoLa IPC Openpilot + anything: custom device model, limited integration Apollo + anything: Cyber RT must bridge to external middleware «constraint def» ApplicationMiddlewareAdapterCompatibility doc Adapter compatibility across application and middleware selections. The adapter variation must match both the selected application stack and the selected vehicle-level middleware. The adapter is present only when a non-none vehicle middleware is selected; when middleware = none, the adapter is also none and the application↔adapter and adapter↔middleware boundaries are absent. Intended pairings: Autoware ↔ AutowareToSCOREAdapter ↔ EclipseSCORE Autoware ↔ AutowareToAAOSSDVAdapter ↔ AndroidSDVMiddleware Autoware ↔ AutowareToAUTOSARAdapter ↔ AUTOSARAdaptive Openpilot ↔ OpenpilotToSCOREAdapter ↔ EclipseSCORE Apollo ↔ ApolloToSCOREAdapter ↔ EclipseSCORE «constraint def» AGLPlatformScope doc AGL (Automotive Grade Linux) scope note. AGL is a full platform (OS + IVI framework + app framework + compositor), not just an OS kernel. When AGL is selected as the OS platform variant, it includes its own application framework and does not simultaneously run S-CORE or Android SDV middleware — AGL is an alternative to that combination, not a layer beside it. This is a modeling note, not a hard constraint. AGL could coexist with a domain application stack on a separate compute domain via a hypervisor, but not on the same domain as S-CORE. «comment» ────────────────────────────────────────── Configured member product base ────────────────────────────────────────── ConfiguredSDVVariant is the abstract base for configured member products. Concrete configured variants are generated by the PLE configurator (tools/configure_variant.py) from the receipts of the PLEML feature configurations, not hand-written here. See: model-based-product-line-engineering/feature-models/sdv_product_line.sysml model-based-product-line-engineering/feature-configurations/ model-based-product-line-engineering/product-models/ «part def» ConfiguredSDVVariant :> SDVPlatformStack doc A configured member product of the SDV product line. Selects one variant from each variation, subject to the constraints of the PLEML feature model. Concrete configured variants are generated by the PLE configurator (tools/configure_variant.py) from the receipts of the PLEML feature configurations. «concern» physicalStructureConcern : PhysicalStructureConcern subject ref stakeholders systemsEngineer : SystemsEngineer reviewer : OpenSourceReviewer require constraints ^doc Reviewer question: What physical hardware, software, and mechanical elements make up the candidate system, and in which internal roles are they used?

Hover a model element for details open raw SVG.

Source

1/*2 * DE4SDV SDV platform stack architecture model slice.3 *4 * This package models the layered architecture of a software-defined vehicle5 * as a product-line variation structure. It defines the stack layers, their6 * boundary interfaces, and the variation points where configurable choices7 * select between open-source realizations.8 *9 * Scope of this slice:10 *   - Stack layer definitions (vehicle applications, middleware, OS, hypervisor, hardware)11 *   - Boundary interface definitions between adjacent layers12 *   - Variation points with candidate variant realizations, inlined13 *     as structural variation points on the stack's layer parts, for the14 *     main side and the optional guest side of one SoC15 *   - Design notes on layer coexistence; the compatibility rules are the16 *     constraints of the PLEML feature model17 *18 * Out of scope for this slice:19 *   - Internal architecture of any specific OSS project (Autoware, S-CORE, etc.)20 *   - Allocation of functional responsibilities to execution platforms21 *   - Timing/safety/security property binding to specific stacks22 *   - Compliance or type-approval claims23 *   - Physical/mechanical domain modeling24 *25 * Conventions:26 *   - Layer definitions use `part def` with doc annotations27 *   - Boundary interfaces use `interface def` with directional ports28 *   - Variability uses native SysML v2 `variation` / `variant` notation29 *   - Candidate realizations are `part def` specializations of layer defs,30 *     marked as candidates with doc-only provenance (no compliance claim)31 *   - Design notes use doc-only `constraint def`s; the compatibility32 *     rules are not restated here33 *   - File uses a flat top-level package name (DE4SDV_SDVPlatformStack)34 *     to avoid cross-file sibling-package import issues in SysIDE35 */3637package DE4SDV_SDVPlatformStack {38  private import SAF_Viewpoints::*;39  private import DE4SDV_Stakeholders::*;40  private import Views::*;414243  /* ──────────────────────────────────────────44   * Stack layer definitions45   * ──────────────────────────────────────────46   * Each layer is an abstract part def. Concrete realizations47   * specialize these defs and appear as variants in the variation48   * section below.49   */5051  part def SDVPlatformStack {52    doc /*53     * Complete layered architecture of a software-defined vehicle54     * computing platform. A configured member product selects one55     * realization from each variation, subject to the constraints of the56     * PLEML feature model.57     *58     * One SoC has a main side and an optional guest side. The main side is59     * the execution domain that runs the vehicle application, on the60     * operating system of osPlatform. With KVM, the main side is the KVM61     * host: its operating system hosts the hypervisor and is not a guest of62     * it. The guest side is a second execution domain under the63     * hypervisor, with guestOSPlatform and guestMiddleware. It is a guest64     * partition of one or more VMs. How many VMs it holds, and which image65     * each one runs, are realization choices (ADR 0025).66     *67     * The middleware variation is the middleware that the vehicle68     * application integrates with through the adapter. Eclipse S-CORE and69     * AUTOSAR Adaptive run on the main side. An AAOS SDV partner runs in70     * the guest (constraint C009 of the feature model), so the androidSDV71     * variant refers to the AAOS SDV of the guest and adds no second72     * instance.73     */7475    variation part vehicleApplication : VehicleApplicationLayer {76      /* ADAS domain candidates shown; other domain applications (body,77       * chassis, telematics, IVI) to be added in domain-specific increments. */78      variant part autoware : AutowareStack;79      variant part openpilot : OpenpilotStack;80      variant part apollo : ApolloStack;81      variant part autoE2E : AutoE2EStack;82      variant part visionPilot : VisionPilotStack;83    }8485    variation part middleware : MiddlewareLayer {86      /* The middleware that the vehicle application integrates with. The87       * AAOS SDV partner is a reference to the AAOS SDV of the guest. */88      variant part eclipseSCORE : EclipseSCORE;89      variant ref part androidSDV : AndroidSDVMiddleware references guestMiddleware::androidSDV;90      variant part autosarAdaptive : AUTOSARAdaptive;91      variant part none[0]; /* single-domain architecture, no vehicle-level middleware */92    }9394    variation part applicationMiddlewareAdapter : ApplicationMiddlewareAdapterLayer {95      variant part autowareToSCORE : AutowareToSCOREAdapter;96      variant part autowareToAAOSSDV : AutowareToAAOSSDVAdapter;97      variant part autowareToAUTOSAR : AutowareToAUTOSARAdapter;98      variant part openpilotToSCORE : OpenpilotToSCOREAdapter;99      variant part apolloToSCORE : ApolloToSCOREAdapter;100      variant part autoE2EToSCORE : AutoE2EToSCOREAdapter;101      variant part visionPilotToSCORE : VisionPilotToSCOREAdapter;102      variant part none[0]; /* no adapter when no vehicle-level middleware */103    }104105    variation part osPlatform : OSPlatformLayer {106      /* The main side: the operating system of the execution domain that107       * runs the vehicle application. */108      variant part linux : LinuxPlatform;109      variant part android : AndroidHLOS;110      variant part qnx : QNXPlatform;111    }112113    variation part hypervisor : HypervisorLayer {114      variant part qvm : QNXQVM;115      variant part acrn : ACRNHypervisor;116      variant part kvm : KVMHypervisor;117      variant part none[0]; /* single-domain architecture, no hypervisor */118    }119120    variation part guestOSPlatform : OSPlatformLayer {121      /* The guest side: the operating system of the second execution122       * domain, under the hypervisor of the SoC. The domain holds one or123       * more VMs. */124      variant part android : AndroidHLOS;125      variant part none[0]; /* no guest domain */126    }127128    variation part guestMiddleware : MiddlewareLayer {129      /* The middleware of the guest side, on the guest operating system. */130      variant part androidSDV : AndroidSDVMiddleware;131      variant part none[0]; /* no guest middleware */132    }133134    part hardware : HardwareLayer;135136    /*137     * Inter-layer boundary interfaces.138     * Each boundary is a bidirectional interface between adjacent layers.139     * The contracts at these boundaries are what DE4SDV models; the140     * concrete realizations either conform or don't.141     */142    interface applicationMiddlewareBoundary : ApplicationAdapterInterface143      connect vehicleApplication.middlewarePort to applicationMiddlewareAdapter.applicationPort;144145    interface adapterMiddlewareBoundary : AdapterMiddlewareInterface146      connect applicationMiddlewareAdapter.middlewarePort to middleware.applicationPort;147148    /*149     * The middleware-to-OS boundary, per side. Eclipse S-CORE and AUTOSAR150     * Adaptive run on the main-side OS. The guest middleware runs on the151     * guest OS; the AAOS SDV partner is that guest middleware, so it has152     * no boundary to the main-side OS.153     */154    interface eclipseSCOREOSBoundary : MiddlewareOSInterface155      connect middleware::eclipseSCORE.osPort to osPlatform.middlewarePort;156157    interface autosarAdaptiveOSBoundary : MiddlewareOSInterface158      connect middleware::autosarAdaptive.osPort to osPlatform.middlewarePort;159160    interface guestMiddlewareOSBoundary : MiddlewareOSInterface161      connect guestMiddleware.osPort to guestOSPlatform.middlewarePort;162163    /*164     * Only the guest OS is connected to the guest port. The main-side OS is165     * not: with KVM it hosts the hypervisor; with ACRN it runs in a VM too166     * (ACRNHypervisor), and with QVM its relation is left to the167     * realization. The stack does not model these main-side relations as168     * connections.169     */170    interface guestOSHypervisorBoundary : OSHypervisorInterface171      connect guestOSPlatform.hypervisorPort to hypervisor.guestPort;172173    interface hypervisorHardwareBoundary : HardwareHypervisorInterface174      connect hypervisor.hypervisorPort to hardware.hypervisorPort;175  }176177  /* ──────────────────────────────────────────178   * Layer abstractions179   * ──────────────────────────────────────────180   * Each layer def declares the boundary ports it exposes to adjacent181   * layers. Internal structure is deliberately not modeled.182   */183184  part def VehicleApplicationLayer {185    doc /*186     * Vehicle domain-specific application layer.187     * Provides domain-specific applications such as ADAS (perception,188     * planning, control), body, chassis, powertrain, IVI, telematics,189     * connectivity, and diagnostics.190     *191     * Candidate realizations shown: Autoware, Openpilot, Apollo Auto (ADAS domain).192     * Domain-specific application stacks typically ship their own internal middleware193     * (ROS 2, Cyber RT, custom) for ADAS-internal communication.194     * The boundary port to the vehicle-level middleware handles195     * vehicle signal access, diagnostics, and lifecycle coordination.196     */197198    port middlewarePort : ApplicationAdapterPort;199  }200201  part def ApplicationMiddlewareAdapterLayer {202    doc /*203     * Adapter between domain-specific application stacks and vehicle-level middleware.204     * Each application stack ships its own internal communication (e.g. Autoware uses ROS 2/DDS);205     * the vehicle-level middleware uses a different communication paradigm (e.g. S-CORE uses LoLa,206     * Android SDV uses VSIDL service bundles, AUTOSAR uses SOME/IP). The adapter translates207     * between these.208     */209210    port applicationPort : ApplicationAdapterPort;211    port middlewarePort : MiddlewareAdapterPort;212  }213214  part def MiddlewareLayer {215    doc /*216     * Vehicle-level middleware / runtime platform.217     * Provides IPC, lifecycle management, service discovery,218     * diagnostics, persistency, and timing orchestration for219     * the applications of its execution domain.220     *221     * Candidate realizations: Eclipse S-CORE, Android SDV,222     * AUTOSAR Adaptive Platform (AP). The stack has two middleware slots:223     * middleware, the one that the vehicle application integrates with,224     * and guestMiddleware, the one of the guest side.225     *226     * Note: AGL is a full platform (OS + IVI + app framework),227     * not a middleware layer. It is modeled at the OS platform layer.228     */229230    port applicationPort : MiddlewareAdapterPort;231    port osPort : MiddlewareOSPort;232  }233234  part def OSPlatformLayer {235    doc /*236     * Operating system / platform layer.237     * Provides scheduling, memory management, driver support,238     * and POSIX or Android framework services.239     *240     * Candidate realizations: Linux (AGL, generic), Android HLOS,241     * QNX, AUTOSAR Adaptive platform. The stack has two OS slots:242     * osPlatform for the main side and guestOSPlatform for the guest243     * side. The hypervisorPort serves an OS that runs as a guest.244     */245246    port middlewarePort : MiddlewareOSPort;247    port hypervisorPort : OSHypervisorPort;248  }249250  part def HypervisorLayer {251    doc /*252     * Virtualization / hypervisor layer.253     * Provides partition isolation for mixed-criticality systems254     * where multiple OS domains share the same SoC. One hypervisor255     * per SoC.256     *257     * Optional: single-domain architectures do not use a hypervisor.258     * The variation below includes a "none" variant for this case.259     *260     * Its guest port serves the guest side. Whether the main side hosts261     * the hypervisor or runs as a guest of it depends on the realization:262     * KVM runs in the Linux kernel of the main side, so the main side is263     * its host. The stack connects only the guest OS to the guest port.264     *265     * Candidate realizations: QNX QVM, ACRN, KVM (Linux).266     */267268    port guestPort : OSHypervisorPort;269    port hypervisorPort : HardwareHypervisorPort;270  }271272  part def HardwareLayer {273    doc /*274     * Physical compute hardware: SoC, MCU, sensors, actuators.275     * DE4SDV does not model physics, thermodynamics, or mechanics276     * at this layer — only the compute platform boundary that277     * the software stack executes on.278     *279     * Candidate realizations: Qualcomm, NVIDIA, Renesas, NXP, etc.280     * This layer is deliberately abstract; concrete hardware modeling281     * is out of scope for the SDV platform stack slice.282     */283284    port hypervisorPort : HardwareHypervisorPort;285  }286287  /* ──────────────────────────────────────────288   * Boundary interface definitions289   * ──────────────────────────────────────────290   * Each interface def declares the contract surface between291   * two adjacent layers. These are abstract contracts; specific292   * timing, safety, and security properties will be added in293   * the reference-contract-packages increment.294   */295296  port def ApplicationMiddlewarePort {297    doc /*298     * Port type for the Vehicle Application ↔ Middleware boundary.299     * Carries vehicle signal access, diagnostics, lifecycle300     * coordination, and service-binding interactions.301     */302    inout item vehicleSignals;303    inout item diagnosticCommands;304    inout item lifecycleEvents;305    inout item serviceRequests;306  }307308  interface def ApplicationMiddlewareInterface {309    doc /*310     * Contract between the vehicle application layer and the311     * vehicle-level middleware. The application stack expects signal312     * access, timing-aware scheduling, and fault containment313     * from the middleware. The middleware expects the application314     * stack to register as a managed application with defined315     * lifecycle hooks.316     */317    end adasSide : ApplicationMiddlewarePort;318    end middlewareSide : ApplicationMiddlewarePort;319  }320321  port def ApplicationAdapterPort {322    doc /*323     * Port type for the Vehicle Application ↔ Adapter boundary.324     * Carries application-native communication (e.g. ROS 2 topics for Autoware).325     */326    inout item applicationNativeMessages;327    inout item applicationLifecycleEvents;328  }329330  port def MiddlewareAdapterPort {331    doc /*332     * Port type for the Adapter ↔ Middleware boundary.333     * Carries middleware-native communication (e.g. LoLa for S-CORE, VSIDL for Android SDV, SOME/IP for AUTOSAR).334     */335    inout item middlewareNativeMessages;336    inout item middlewareLifecycleEvents;337  }338339  interface def ApplicationAdapterInterface {340    doc /*341     * Contract between the vehicle application layer and the adapter. The application stack publishes/subscribes in its native protocol; the adapter translates.342     */343    end applicationSide : ApplicationAdapterPort;344    end adapterSide : ApplicationAdapterPort;345  }346347  interface def AdapterMiddlewareInterface {348    doc /*349     * Contract between the adapter and the vehicle-level middleware. The adapter translates application-native messages to middleware-native service calls/signals.350     */351    end adapterSide : MiddlewareAdapterPort;352    end middlewareSide : MiddlewareAdapterPort;353  }354355  port def MiddlewareOSPort {356    doc /*357     * Port type for the Middleware ↔ OS boundary.358     * Carries scheduling requests, memory allocation,359     * power management, and watchdog/timeout interactions.360     */361    inout item schedulingRequests;362    inout item memoryAllocation;363    inout item powerManagement;364    inout item watchdogSignals;365  }366367  interface def MiddlewareOSInterface {368    doc /*369     * Contract between the middleware runtime and the370     * operating system. The middleware expects preemptive371     * scheduling, memory isolation, deterministic timing372     * support, and driver access from the OS. The OS expects373     * the middleware to respect resource limits and374     * scheduling policies.375     */376    end middlewareSide : MiddlewareOSPort;377    end osSide : MiddlewareOSPort;378  }379380  port def OSHypervisorPort {381    doc /*382     * Port type for the OS ↔ Hypervisor boundary.383     * Carries partition configuration, inter-VM communication,384     * resource allocation, and isolation properties.385     */386    inout item partitionConfig;387    inout item interVMCommunication;388    inout item resourceAllocation;389  }390391  interface def OSHypervisorInterface {392    doc /*393     * Contract between an OS domain and the hypervisor.394     * The OS expects CPU/memory/I/O allocation, partition395     * isolation, and inter-VM communication channels from396     * the hypervisor. The hypervisor expects the OS to397     * operate within its allocated partition.398     */399    end osSide : OSHypervisorPort;400    end hypervisorSide : OSHypervisorPort;401  }402403  port def HardwareHypervisorPort {404    doc /*405     * Port type for the Hypervisor ↔ Hardware boundary.406     * Carries hardware resource access, interrupt routing,407     * and platform initialization.408     */409    inout item hardwareResources;410    inout item interruptRouting;411  }412413  interface def HardwareHypervisorInterface {414    doc /*415     * Contract between the hypervisor and the physical416     * compute hardware. The hypervisor expects access to417     * CPU cores, memory regions, interrupt controllers,418     * and I/O devices. This is the lowest software-visible419     * boundary; below it is hardware only.420     */421    end hypervisorSide : HardwareHypervisorPort;422    end hardwareSide : HardwareHypervisorPort;423  }424425  /* ──────────────────────────────────────────426   * Candidate realizations — vehicle application layer (ADAS domain shown)427   * ────────────────────────────────────────── */428  part def AutowareStack :> VehicleApplicationLayer {429    doc /*430     * Autoware (Autoware Foundation).431     * Open-source autonomous driving stack based on ROS 2.432     * License: Apache 2.0.433     * Status: candidate realization — no assumption of434     * conformance to DE4SDV boundary contracts without435     * evidence.436     */437  }438439  part def OpenpilotStack :> VehicleApplicationLayer {440    doc /*441     * Openpilot (comma.ai).442     * Open-source driver assistance system (L2).443     * Ships its own internal middleware; the boundary port444     * captures vehicle-level integration only.445     * License: MIT / comma.ai custom.446     * Status: candidate realization.447     */448  }449450  part def ApolloStack :> VehicleApplicationLayer {451    doc /*452     * Apollo Auto (Baidu).453     * Open-source autonomous driving stack using Cyber RT454     * as internal middleware.455     * License: Apache 2.0.456     * Status: candidate realization.457     */458  }459460  /* ──────────────────────────────────────────461   * Candidate realizations — application-middleware adapter layer462   * ────────────────────────────────────────── */463  part def AutoE2EStack :> VehicleApplicationLayer {464    doc /*465     * AutoE2E (Autoware Foundation auto_e2e): a camera-only end-to-end466     * driving stack that plans a trajectory from six camera images, the467     * ego-motion history and a route raster, as an exported checkpoint run468     * by DE4SDV's own programs rather than as a ROS 2 stack.469     * License: Apache 2.0 for the source; the checkpoint's terms are470     * resolved separately (INC-DRIVING-001).471     * Status: candidate realization, admitted to no member; the driving472     * increment's phase 8 places it, phase 10 proves it. No conformance to473     * DE4SDV boundary contracts is assumed without evidence.474     */475  }476477  part def VisionPilotStack :> VehicleApplicationLayer {478    doc /*479     * VisionPilot (Autoware Foundation vision_pilot): a camera-only480     * driver-assistance application that plans steering and acceleration481     * from one front-camera image and the vehicle speed, one Linux process482     * with its own loop, built without ROS 2 on the DE4SDV bench.483     * License: Apache 2.0 for the source; the terms of its network weights484     * are read separately (INC-DRIVING-002).485     * Status: candidate realization, admitted to no member; the486     * driver-assistance increment's phase 8 places it, phase 10 judges it.487     * No conformance to DE4SDV boundary contracts is assumed without488     * evidence.489     */490  }491492  part def AutowareToSCOREAdapter :> ApplicationMiddlewareAdapterLayer {493    doc /*494     * Adapts Autoware ROS 2 topics to Eclipse S-CORE LoLa IPC.495     */496  }497498  part def AutoE2EToSCOREAdapter :> ApplicationMiddlewareAdapterLayer {499    doc /*500     * The mw::com binding code of the three programs that realize the501     * closed-loop driving system on Eclipse S-CORE: the driving agent, the502     * actuation adapter and the operational-state publisher of503     * INC-DRIVING-001 phase 8 speak S-CORE Communication between their504     * processes, so the adapter is no program of its own. Derived for the505     * pair AutoE2E and Eclipse S-CORE; no other pairing of AutoE2E has an506     * adapter.507     */508  }509510  part def VisionPilotToSCOREAdapter :> ApplicationMiddlewareAdapterLayer {511    doc /*512     * The DE4SDV S-CORE interface module of the VisionPilot process of513     * INC-DRIVING-002 phase 8. It runs inside the candidate's process, so514     * the adapter is no program of its own. On S-CORE Communication515     * (mw::com), the vehicle interface publishes the driving command and516     * subscribes to the candidate record, and the warning request publisher517     * publishes the warning request. The camera images and the speed of the518     * ego vehicle come from the simulator's client library, not from519     * mw::com. Derived for the pair VisionPilot and Eclipse S-CORE; no other520     * pairing of VisionPilot has an adapter.521     */522  }523524  part def AutowareToAAOSSDVAdapter :> ApplicationMiddlewareAdapterLayer {525    doc /*526     * Candidate boundary between Autoware ROS 2 and AAOS SDV service527     * interfaces. A configured product may select a direct VSIDL-to-ROS 2528     * realization or a separately justified brokered realization. This529     * definition does not claim generated bindings, transport, deployment,530     * runtime behavior, or interoperability evidence.531     */532  }533534  part def AutowareToAUTOSARAdapter :> ApplicationMiddlewareAdapterLayer {535    doc /*536     * Adapts Autoware ROS 2 topics to AUTOSAR Adaptive SOME/IP services.537     */538  }539540  part def OpenpilotToSCOREAdapter :> ApplicationMiddlewareAdapterLayer {541    doc /*542     * Adapts Openpilot internal communication to S-CORE LoLa.543     */544  }545546  part def ApolloToSCOREAdapter :> ApplicationMiddlewareAdapterLayer {547    doc /*548     * Adapts Apollo Cyber RT to S-CORE LoLa.549     */550  }551552  /* ──────────────────────────────────────────553   * Candidate realizations — Middleware layer554   * ────────────────────────────────────────── */555  part def EclipseSCORE :> MiddlewareLayer {556    doc /*557     * Eclipse S-CORE (Safe Open Vehicle Core).558     * Open-source automotive middleware (C++ / Rust).559     * Modules: communication (LoLa), orchestration, persistency,560     * time, lifecycle, diagnostics, baselibs.561     * Targets: Linux, QNX. Not designed for Android HLOS.562     * In the stack it runs on the main side, so the main-side operating563     * system is Linux or QNX (constraint C001 of the feature model).564     * License: Apache 2.0.565     * Status: candidate realization. S-CORE maintainers have566     * not been engaged on SysML v2 model integration.567     */568  }569570  part def AndroidSDVMiddleware :> MiddlewareLayer {571    doc /*572     * Android SDV (Google / AOSP): the AAOS SDV middleware, a native573     * Android-derived platform for distributed vehicle services.574     * It runs on Android HLOS (constraint C008 of the feature model). In575     * the stack it runs in the guest domain under a hypervisor: it is the576     * guest middleware, and an AAOS SDV partner of the vehicle application577     * is that guest middleware (C009).578     *579     * The image that carries it is a realization choice. The headless SDV580     * Core image (sdv_core_cf) excludes the JVM, Java services, Android581     * applications and GUI functionality. The display-capable IVI image582     * (sdv_ivi_cf) runs Android applications with a GUI. Every member583     * selects the hmiDisplay capability, common content of every member584     * (ADR 0026); in an integrated member the display is in this guest.585     *586     * Internal structure modeled in:587     *   textual-notation-of-model/packages/architecture/aaos_sdv_middleware_boundary.sysml588     * (DE4SDV_AAOSSDVMiddlewareBoundary package).589     *590     * Key elements: Orchestrator, Service Lifecycle Manager, Health Monitor,591     * Update Manager, VSIDL/Middleware, Service Discovery, RPC, Data Tunnel,592     * SOME/IP interoperability, Automotive Services (Diagnostics, Configuration,593     * Calibration, Vehicle Power Mode, User Profile).594     *595     * License: Apache 2.0 (AOSP).596     * Status: candidate realization. Upstream AAOS SDV maintainers have597     * not been engaged on DE4SDV model integration (GAP-MW-005).598     */599  }600601  part def AUTOSARAdaptive :> MiddlewareLayer {602    doc /*603     * AUTOSAR Adaptive Platform (AP).604     * Service-oriented automotive middleware standard.605     * This entry is a placeholder for the standard interface606     * contract, not a specific open-source implementation.607     * License: varies by implementation.608     * Status: candidate realization — interface contract only.609     */610  }611612  /* ──────────────────────────────────────────613   * Candidate realizations — OS platform layer614   * ────────────────────────────────────────── */615  part def LinuxPlatform :> OSPlatformLayer {616    doc /*617     * Generic Linux platform (POSIX, preemptive scheduling).618     * Includes AGL and custom Linux distributions.619     * License: GPL (kernel) + Apache 2.0 / varies (user space).620     * Status: candidate realization.621     */622  }623624  part def AndroidHLOS :> OSPlatformLayer {625    doc /*626     * Android High-Level OS (Google / AOSP).627     * Linux kernel (GKI) + Android framework.628     * License: Apache 2.0 (AOSP) + GPL (kernel).629     * Status: candidate realization.630     */631  }632633  part def QNXPlatform :> OSPlatformLayer {634    doc /*635     * QNX Neutrino RTOS (BlackBerry / QNX).636     * Real-time OS with a microkernel and a POSIX API.637     * License: commercial (not open-source).638     * Status: candidate realization — included for mixed-criticality639     * architectures; acknowledged as non-OSS.640     */641  }642643  /* ──────────────────────────────────────────644   * Candidate realizations — Hypervisor layer645   * ────────────────────────────────────────── */646  part def QNXQVM :> HypervisorLayer {647    doc /*648     * QNX Virtual Machine (QVM) hypervisor.649     * Host for mixed-criticality: QNX + Linux + Android guests.650     * License: commercial (QNX).651     * Status: candidate realization.652     */653  }654655  part def ACRNHypervisor :> HypervisorLayer {656    doc /*657     * ACRN (Project ACRN, Linux Foundation).658     * Open-source hypervisor for automotive and IoT.659     * Supports Linux and Android guests.660     * It runs each execution domain in a VM, the service VM included, so in661     * the stack the main side is an ACRN guest too.662     * License: BSD-2-Clause.663     * Status: candidate realization.664     */665  }666667  part def KVMHypervisor :> HypervisorLayer {668    doc /*669     * KVM (Kernel-based Virtual Machine, Linux).670     * Open-source virtualization in the Linux kernel.671     * In the stack the main side hosts it: KVM runs in the kernel of the672     * main-side operating system, and only the guest OS is a KVM guest.673     * License: GPL / LGPL.674     * Status: candidate realization.675     */676  }677678  /* ──────────────────────────────────────────679   * Compatibility rules and design notes680   * ──────────────────────────────────────────681   * The compatibility rules between the layer realizations are the682   * constraints of the PLEML feature model,683   * model-based-product-line-engineering/feature-models/sdv_product_line.sysml:684   * the exclusions C001 and C003 to C005, the requires constraints C007685   * to C011 and the pair exclusions of Openpilot and Apollo. This686   * superset does not restate them. The constraint definitions below are687   * design notes, not rules.688   */689690  constraint def ApplicationMiddlewareCoexistence {691    doc /*692     * Application ↔ Middleware coexistence.693     *694     * Domain-specific application stacks (e.g. Autoware, Openpilot, Apollo for ADAS) each695     * ship their own internal communication middleware. They696     * coexist with the vehicle-level middleware (S-CORE, Android SDV,697     * AUTOSAR Adaptive) as separate layers — not as alternatives698     * at the same layer.699     *700     * The application stack handles domain-internal pipelines701     * (e.g. ADAS perception→planning→control).702     * The vehicle middleware handles vehicle signal access,703     * diagnostics, lifecycle, and inter-domain communication.704     *705     * No invalid combination exists at this boundary in principle,706     * but integration effort varies significantly:707     *   Autoware + S-CORE: ROS 2 IPC must bridge to LoLa IPC708     *   Openpilot + anything: custom device model, limited integration709     *   Apollo + anything: Cyber RT must bridge to external middleware710     */711  }712713  constraint def ApplicationMiddlewareAdapterCompatibility {714    doc /*715     * Adapter compatibility across application and middleware selections.716     *717     * The adapter variation must match both the selected application stack718     * and the selected vehicle-level middleware. The adapter is present only719     * when a non-none vehicle middleware is selected; when middleware = none,720     * the adapter is also none and the application↔adapter and adapter↔middleware721     * boundaries are absent.722     *723     * Intended pairings:724     *   Autoware ↔ AutowareToSCOREAdapter ↔ EclipseSCORE725     *   Autoware ↔ AutowareToAAOSSDVAdapter ↔ AndroidSDVMiddleware726     *   Autoware ↔ AutowareToAUTOSARAdapter ↔ AUTOSARAdaptive727     *   Openpilot ↔ OpenpilotToSCOREAdapter ↔ EclipseSCORE728     *   Apollo ↔ ApolloToSCOREAdapter ↔ EclipseSCORE729     */730  }731732  constraint def AGLPlatformScope {733    doc /*734     * AGL (Automotive Grade Linux) scope note.735     *736     * AGL is a full platform (OS + IVI framework + app framework +737     * compositor), not just an OS kernel. When AGL is selected as738     * the OS platform variant, it includes its own application739     * framework and does not simultaneously run S-CORE or740     * Android SDV middleware — AGL is an alternative to that741     * combination, not a layer beside it.742     *743     * This is a modeling note, not a hard constraint. AGL could744     * coexist with a domain application stack on a separate compute domain745     * via a hypervisor, but not on the same domain as S-CORE.746     */747  }748749  /* ──────────────────────────────────────────750   * Configured member product base751   * ──────────────────────────────────────────752   * ConfiguredSDVVariant is the abstract base for configured member753   * products. Concrete configured variants are generated by the PLE754   * configurator (tools/configure_variant.py) from the receipts of the755   * PLEML feature configurations, not hand-written here.756   *757   * See:758   *   model-based-product-line-engineering/feature-models/sdv_product_line.sysml759   *   model-based-product-line-engineering/feature-configurations/760   *   model-based-product-line-engineering/product-models/761   */762  part def ConfiguredSDVVariant :> SDVPlatformStack {763    doc /*764     * A configured member product of the SDV product line.765     * Selects one variant from each variation, subject to the766     * constraints of the PLEML feature model.767     *768     * Concrete configured variants are generated by the PLE configurator769     * (tools/configure_variant.py) from the receipts of the PLEML feature770     * configurations.771     */772  }773774  concern physicalStructureConcern : PhysicalStructureConcern {775    subject;776    stakeholder systemsEngineer : SystemsEngineer;777    stakeholder reviewer : OpenSourceReviewer;778  }779780  view sdvPlatformStackStructureView {781    viewpoint selectedPhysicalStructureViewpoint : PhysicalStructureDefinitionViewpoint {782      frame physicalStructureConcern;783    }784785    expose DE4SDV_SDVPlatformStack::*;786    render asTreeDiagram;787  }788}789