textual-notation-of-model/packages/features/middleware/middleware_score_operational_context.sysml
3 view(s) · 116 declared member(s) Jump to source ↓
view scoreMiddlewareStakeholderConcernViewsource ↓
| Viewpoint | selected (Stakeholder |
|---|---|
| Framed concerns |
|
| Render | as |
| Exposes | assumptionsrunnableemergency |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
view scoreTwoDomainOperationalContextViewsource ↓
| Viewpoint | selected (Operational |
|---|---|
| Framed concerns |
|
| Render | as |
| Depth | 2 |
| Exposes | scorescorescore |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
view scoreTwoDomainOperationalStoryViewsource ↓
| Viewpoint | selected (Operational |
|---|---|
| Framed concerns |
|
| Render | as |
| Depth | 1 |
| Exposes | operateoperate |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
Source
1/*2 * DE4SDV middleware integration operational context model slice for the3 * Eclipse S-CORE realization.4 *5 * INC-MW-011, phases 1 and 2: who cares and why (the stakeholder concerns6 * that phases 4 to 10 need and the framing does not already state), and what7 * happens in the world of the two-domain member product: the Linux host with8 * Autoware, Eclipse S-CORE and the adapter, and the AAOS SDV guest with the9 * HMI under the hypervisor. The reference vehicle speed travels over S-CORE10 * communication into Autoware; the AEBS signals of the Autoware-based AEBS11 * stack travel over S-CORE communication inside the host, and the S-CORE12 * SOME/IP gateway carries them across the domain boundary to the HMI (phase 813 * selects it), with the per-field provenance INC-AEBS-010 assigns; the14 * emergency intervention command path stays on the host.15 *16 * Revalidation: the middleware baseline of INC-MW-002 (operational context17 * and story) holds for the S-CORE variant (ASM-MW-023) and is extended where18 * the two-domain member needs it. The Holds and Extends dependencies below19 * record it; no closed slice is edited. No transport, schema or20 * application technology is selected here; no safety, cybersecurity,21 * compliance or upstream-engagement claim is made.22 */2324package DE4SDV_MiddlewareSCOREOperationalContext {25 private import DE4SDV_MethodContext::*;26 private import DE4SDV_OperationalContext::*;27 private import DE4SDV_Stakeholders::*;28 private import DE4SDV_MethodViewpoints::*;29 private import DE4SDV_SYSMODAdapter::*;30 private import DE4SDV_MiddlewareOperationalContext::Features::Middleware::OperationalContext::*;31 private import DE4SDV_MiddlewareSCOREFraming::*;32 private import DE4SDV_AEBSOperationalContext::Features::AEBS::OperationalContext::EmergencyBrakingCommand;33 private import SAF_Viewpoints::*;34 private import Views::*;3536 /* ───────────────────────── Phase 1: who cares and why ───────────────────────── */3738 concern assumptionsOfUseConcern : CommonStandardsConcern {39 doc /*40 * The integrator (software developer and system architect) and the41 * product-line engineer need the assumptions of use that Eclipse42 * S-CORE v0.9.0 states for the application and for the operating43 * system to be registered with source attribution (ASM-MW-021) and44 * checked against the Autoware-based AEBS stack on the Ubuntu x86_6445 * host (ASM-MW-026), so that phases 4, 5 and 8 derive needs,46 * requirements and the realization inside those assumptions.47 * Conformance is not claimed here; it is a constraint to carry.48 */49 subject;50 stakeholder softwareDeveloper : SoftwareDeveloper;51 stakeholder systemArchitect : SystemArchitect;52 stakeholder productLineEngineer : ProductLineEngineer;53 }5455 concern runnableProofBenchConcern : ArgumentationAssuranceConcern {56 doc /*57 * The verification engineer, the maintainer and the open-source58 * reviewer need the bench of the runnable proof (ASM-MW-025) to59 * observe the vehicle-speed path, the cross-domain HMI path and the60 * HMI read-only, to retain evidence bound to the exact model61 * revision and to the pinned S-CORE commit (ASM-MW-021), and to stay62 * separate from the member product, so that phase 10 argues the63 * proof from retained evidence and not from a demonstration.64 */65 subject;66 stakeholder verificationEngineer : VerificationEngineer;67 stakeholder maintainer : Maintainer;68 stakeholder reviewer : OpenSourceReviewer;69 }7071 concern emergencyPathConcern : AssetIdentificationConcern {72 doc /*73 * The safety expert and the system architect need the AEBS emergency74 * intervention command path identified as the safety-relevant asset75 * of the member: it stays inside the Linux host (ASM-MW-028),76 * independent of the S-CORE communication path and of the AAOS SDV77 * guest, so that REQ-MW-006 (reqIsolateSafetyPath) and GAP-MW-029 are78 * carried into the needs and requirements of this increment. No79 * freedom-from-interference claim is made.80 */81 subject;82 stakeholder safetyExpert : SafetyExpert;83 stakeholder systemArchitect : SystemArchitect;84 }8586 view scoreMiddlewareStakeholderConcernView {87 viewpoint selectedStakeholderIdentificationViewpoint : StakeholderIdentificationViewpoint {88 frame assumptionsOfUseConcern;89 frame runnableProofBenchConcern;90 frame emergencyPathConcern;91 }9293 expose assumptionsOfUseConcern;94 expose runnableProofBenchConcern;95 expose emergencyPathConcern;96 render asTreeDiagram;97 }9899 /* Phase 1 revalidation of the INC-MW-002 baseline. */100 dependency scoreProblemStatementExtendsBaselineProblemStatement101 from DE4SDV_MiddlewareSCOREFraming::scoreMiddlewareProblemStatement102 to DE4SDV_MiddlewareIncrementFraming::Features::Middleware::IncrementFraming::middlewareIntegrationProblemStatement;103 dependency emergencyPathConcernCarriesSafetyPathIsolationRequirement104 from emergencyPathConcern105 to DE4SDV_MiddlewareRequirements::Features::Middleware::Requirements::reqIsolateSafetyPath;106 dependency emergencyPathConcernCarriesSafetyPathIsolationGap107 from emergencyPathConcern108 to DE4SDV_MiddlewareStakeholderNeeds::Features::Middleware::StakeholderNeeds::safetyPathIsolationCriteriaGap;109110 /* ───────────────────── Phase 2: what happens in the world ───────────────────── */111112 item def ReferenceVehicleSpeedSignal {113 doc /*114 * VSS Vehicle.Speed [km/h], the reference signal of INC-MW-008: produced115 * by the vehicle-speed provider, carried over S-CORE communication and116 * consumed by Autoware's velocity consumer.117 */118 }119120 item def AEBSSignalFrame {121 doc /*122 * One frame of the AEBS signals that the Autoware-based AEBS stack123 * produces on the Linux host, as the HMI path carries it, with the124 * per-field provenance that the framing's hmiPathInScope states; the125 * integration layer carries it unchanged (REQ-MW-015). Only the IVI126 * frame relay reads two of its fields, the sequence and the frame127 * timestamp.128 * It needs them to discard the frames produced more than the margin of129 * REQ-MW-019 before the HMI application subscribed (phase 8). A System 1130 * item that references no System 2 element, so a System 2 frame type can131 * specialize it; it replaces the System 2 frame type of the HMI flow132 * (owner decision of 2026-10-18). By the same133 * decision it stays opaque, with no DE4SDV VSS extension signal: the two134 * candidates, Vehicle.ADAS.AEBS.DriverWarning.IsActive and135 * Vehicle.ADAS.AEBS.EmergencyBraking.IsCommanded, carry actuator-signal136 * semantics that would be conflated with the warning request and the137 * emergency command.138 */139 }140141 part def LinuxHostExecutionDomain :> OperationalEntity {142 doc /*143 * The Linux execution domain: Ubuntu x86_64 first, Red Hat AutoSD second144 * (ASM-MW-026). It hosts the Autoware-based AEBS stack, the S-CORE145 * services, the adapter, the vehicle-speed provider and the emergency146 * intervention command path, and it is the hypervisor host.147 */148 }149150 part def AAOSSDVGuestExecutionDomain :> OperationalEntity {151 doc /*152 * The AAOS SDV guest execution domain under the hypervisor (ASM-MW-027);153 * it runs the HMI application, the guest end of the HMI path and nothing154 * of the AEBS path.155 */156 }157158 part def HostHypervisor :> OperationalEntity {159 doc /*160 * The hypervisor boundary between the two domains: KVM on the Linux host161 * (ASM-MW-027). It isolates the informational HMI guest from the host;162 * the one-way HMI path is the only exchange that crosses it.163 */164 }165166 part def VehicleSpeedProvider :> OperationalEntity {167 doc /*168 * The source of the reference vehicle speed on the host side; the same169 * reference signal as the AAOS SDV provider of INC-MW-008 and INC-MW-010.170 */171 }172173 part def AAOSSDVHMIApplication :> OperationalEntity {174 doc /* The HMI application of the member product in the AAOS SDV guest, as ASM-MW-024 states it. */175 }176177 part scoreTwoDomainOperationalContext : SystemContext {178 doc /*179 * The operational context of the two-domain member product. The system of180 * interest is the middleware integration layer (the Autoware-to-S-CORE181 * adapter with the S-CORE services) on the Linux host and the guest end of182 * the one-way HMI path; the actors are the host-side application183 * elements, the guest with its HMI application, the hypervisor between184 * them, and the driver who sees the informational display. This is the185 * operational environment, not a deployment decomposition.186 */187 part integrationLayer : SCOREMiddlewareIntegrationLayer :>> systemOfInterest {188 part adapter : ApplicationMiddlewareAdapter;189 part scoreServices : VehiclePlatformMiddleware;190 }191 part linuxHost : LinuxHostExecutionDomain {192 part autowareAEBSStack : ADASApplicationStack;193 part aebNode : AEBNode;194 part vehicleCommandGate : VehicleCommandGate;195 part vehicleSpeedProvider : VehicleSpeedProvider;196 }197 part hypervisor : HostHypervisor;198 part aaosSDVGuest : AAOSSDVGuestExecutionDomain {199 part hmiApplication : AAOSSDVHMIApplication;200 }201 part driver : Driver;202 }203204 /* Operational behavior: the two signal paths and the host-only command path. */205 action def TwoDomainSignalFlow {206 action provideSpeed {207 out speed : ReferenceVehicleSpeedSignal;208 }209210 action carrySpeedOverSCORE {211 in speed : ReferenceVehicleSpeedSignal;212 out carriedSpeed : ReferenceVehicleSpeedSignal;213 }214215 flow from provideSpeed.speed to carrySpeedOverSCORE.speed;216 first provideSpeed then carrySpeedOverSCORE;217218 action runAEBSStackOnHost {219 doc /* The Autoware-based AEBS stack on the Linux host, including the DE4SDV coordinator: its aebsSignals mix native Autoware outputs and coordinator output with the per-field provenance that the framing's HMI path scope item states (hmiPathInScope), and coordinator output is never attributed to Autoware. */220 in carriedSpeed : ReferenceVehicleSpeedSignal;221 out aebsSignals : AEBSSignalFrame;222 out command : EmergencyBrakingCommand;223 }224225 flow from carrySpeedOverSCORE.carriedSpeed to runAEBSStackOnHost.carriedSpeed;226 first carrySpeedOverSCORE then runAEBSStackOnHost;227228 action gateCommandOnHost {229 in command : EmergencyBrakingCommand;230 }231232 flow from runAEBSStackOnHost.command to gateCommandOnHost.command;233234 action carrySignalsAcrossDomainBoundary {235 in aebsSignals : AEBSSignalFrame;236 out carriedSignals : AEBSSignalFrame;237 }238239 flow from runAEBSStackOnHost.aebsSignals to carrySignalsAcrossDomainBoundary.aebsSignals;240241 action presentStateOnHMI {242 in carriedSignals : AEBSSignalFrame;243 }244245 flow from carrySignalsAcrossDomainBoundary.carriedSignals to presentStateOnHMI.carriedSignals;246 first carrySignalsAcrossDomainBoundary then presentStateOnHMI;247 }248249 action scoreTwoDomainSignalFlow : TwoDomainSignalFlow;250251 /* Operational story on the SYSMOD seam. */252 use case def OperateAEBSMemberAcrossTwoDomains :> SYSMODSystemUseCaseBase {253 doc /* The two-domain member in operation: the reference speed reaches Autoware over S-CORE, the AEBS signals reach the HMI across the domain boundary, the emergency command stays on the host. */254 attribute redefines ucMotivation = "The member product needs its middleware integration layer realized on Eclipse S-CORE so that the Autoware-based AEBS stack consumes the reference vehicle speed over S-CORE and the HMI in the AAOS SDV guest shows the AEBS state, while the emergency intervention command path stays on the host.";255 attribute redefines ucTrigger = "The S-CORE services start on the Linux host and the vehicle-speed provider publishes the reference vehicle speed.";256 attribute redefines ucResult = "Autoware consumes the reference vehicle speed through S-CORE, the HMI presents the AEBS state with per-field provenance and degrades fail-closed when its source is stale or unavailable, and the emergency command path is unaffected by the middleware or the guest.";257258 objective {259 doc /*260 * Frame the two-domain operation only. The baseline middleware story261 * (signals, lifecycle, health, diagnostics, updates) remains262 * authoritative and unchanged; this use case adds the S-CORE carriage263 * of the reference signal, the cross-domain HMI path and the host-only264 * emergency command path around it.265 */266 }267 }268269 use case operateAEBSMemberAcrossTwoDomains : OperateAEBSMemberAcrossTwoDomains {270 subject integrationLayer : SCOREMiddlewareIntegrationLayer = scoreTwoDomainOperationalContext::integrationLayer;271 actor autowareAEBSStack : ADASApplicationStack = scoreTwoDomainOperationalContext::linuxHost::autowareAEBSStack;272 actor vehicleSpeedProvider : VehicleSpeedProvider = scoreTwoDomainOperationalContext::linuxHost::vehicleSpeedProvider;273 actor aebNode : AEBNode = scoreTwoDomainOperationalContext::linuxHost::aebNode;274 actor vehicleCommandGate : VehicleCommandGate = scoreTwoDomainOperationalContext::linuxHost::vehicleCommandGate;275 actor hmiApplication : AAOSSDVHMIApplication = scoreTwoDomainOperationalContext::aaosSDVGuest::hmiApplication;276 actor driver : Driver = scoreTwoDomainOperationalContext::driver;277278 objective {279 doc /*280 * Operate the AEBS member across its two execution domains without281 * selecting transport, schema or application technology, and without282 * any safety, compliance or driver-warning claim for the HMI.283 */284 }285286 first start;287 then include carryReferenceVehicleSpeedIntoAutoware;288 then include showAEBSEventOnHMI;289 then include degradeOnSpeedProviderLoss;290 then include tolerateUnavailableOrStaleHMIGuest;291 then include startAndManageSCOREServices;292 then done;293 }294295 use case carryReferenceVehicleSpeedIntoAutoware {296 subject integrationLayer : SCOREMiddlewareIntegrationLayer = scoreTwoDomainOperationalContext::integrationLayer;297 actor vehicleSpeedProvider : VehicleSpeedProvider = scoreTwoDomainOperationalContext::linuxHost::vehicleSpeedProvider;298 actor autowareAEBSStack : ADASApplicationStack = scoreTwoDomainOperationalContext::linuxHost::autowareAEBSStack;299300 objective {301 doc /*302 * SC-MW-001 (normal operation, speed path): the provider publishes the303 * reference vehicle speed, the S-CORE services carry it, the adapter304 * presents it to Autoware unchanged in meaning and unit, and305 * Autoware's velocity consumer uses it; like for like with the306 * INC-MW-008 AAOS SDV path over the same reference signal.307 */308 }309310 first start;311 then done;312 }313314 use case showAEBSEventOnHMI {315 subject integrationLayer : SCOREMiddlewareIntegrationLayer = scoreTwoDomainOperationalContext::integrationLayer;316 actor autowareAEBSStack : ADASApplicationStack = scoreTwoDomainOperationalContext::linuxHost::autowareAEBSStack;317 actor hmiApplication : AAOSSDVHMIApplication = scoreTwoDomainOperationalContext::aaosSDVGuest::hmiApplication;318 actor driver : Driver = scoreTwoDomainOperationalContext::driver;319 actor aebNode : AEBNode = scoreTwoDomainOperationalContext::linuxHost::aebNode;320 actor vehicleCommandGate : VehicleCommandGate = scoreTwoDomainOperationalContext::linuxHost::vehicleCommandGate;321322 objective {323 doc /*324 * SC-MW-002 (normal operation, AEBS event): an AEBS event runs325 * MONITORING, WARNING, INTERVENTION and RELEASED on the host; the326 * adapter and the S-CORE services carry the AEBS signals inside the327 * host, and the layer's S-CORE SOME/IP gateway carries them across the328 * domain boundary; the HMI in the guest presents them in source order329 * with per-field provenance; the driver sees an informational display,330 * not the AEBS driver warning; the emergency intervention command goes331 * from the AEB node to the vehicle command gate on the host, untouched332 * by the middleware and the guest.333 */334 }335336 first start;337 then done;338 }339340 use case degradeOnSpeedProviderLoss {341 subject integrationLayer : SCOREMiddlewareIntegrationLayer = scoreTwoDomainOperationalContext::integrationLayer;342 actor vehicleSpeedProvider : VehicleSpeedProvider = scoreTwoDomainOperationalContext::linuxHost::vehicleSpeedProvider;343 actor autowareAEBSStack : ADASApplicationStack = scoreTwoDomainOperationalContext::linuxHost::autowareAEBSStack;344345 objective {346 doc /*347 * SC-MW-003 (speed provider loss): the provider stops publishing; the348 * S-CORE side and the adapter expose a stale, then unavailable,349 * disposition on the ROS 2 side instead of a frozen value, and the350 * disposition restores when the provider resumes; the counterpart of351 * the INC-MW-010 provider-loss observation (E-MW-014) for the S-CORE352 * variant.353 */354 }355356 first start;357 then done;358 }359360 use case tolerateUnavailableOrStaleHMIGuest {361 subject integrationLayer : SCOREMiddlewareIntegrationLayer = scoreTwoDomainOperationalContext::integrationLayer;362 actor hmiApplication : AAOSSDVHMIApplication = scoreTwoDomainOperationalContext::aaosSDVGuest::hmiApplication;363 actor autowareAEBSStack : ADASApplicationStack = scoreTwoDomainOperationalContext::linuxHost::autowareAEBSStack;364 actor aebNode : AEBNode = scoreTwoDomainOperationalContext::linuxHost::aebNode;365 actor vehicleCommandGate : VehicleCommandGate = scoreTwoDomainOperationalContext::linuxHost::vehicleCommandGate;366367 objective {368 doc /*369 * SC-MW-004 (HMI guest unavailable or stale): when the AEBS signal370 * frames stop reaching the HMI, the HMI shows the stale or unavailable371 * overlay fail-closed; when the guest or the HMI application is down,372 * there is no display. The speed path, the AEBS event handling and the373 * emergency command path on the host are unaffected either way,374 * because the HMI path is one-way and read-only.375 */376 }377378 first start;379 then done;380 }381382 use case startAndManageSCOREServices {383 subject integrationLayer : SCOREMiddlewareIntegrationLayer = scoreTwoDomainOperationalContext::integrationLayer;384 actor autowareAEBSStack : ADASApplicationStack = scoreTwoDomainOperationalContext::linuxHost::autowareAEBSStack;385386 objective {387 doc /*388 * SC-MW-005 (S-CORE service start and lifecycle): the S-CORE services389 * start on the host, become healthy and observable to the390 * Autoware-based AEBS stack, bind the adapter, and shut down in order.391 * The baseline lifecycle and health stories of INC-MW-002 hold; the392 * S-CORE lifecycle mechanism is selected in phase 8.393 */394 }395396 first start;397 then done;398 }399400 /* Phase 2 revalidation of the INC-MW-002 baseline. */401 dependency scoreContextHoldsBaselineOperationalContext402 from scoreTwoDomainOperationalContext403 to DE4SDV_MiddlewareOperationalContext::Features::Middleware::OperationalContext::middlewareOperationalContext;404 dependency scoreStoryExtendsBaselineIntegrationStory405 from operateAEBSMemberAcrossTwoDomains406 to DE4SDV_MiddlewareOperationalContext::Features::Middleware::OperationalContext::'integrate ADAS with vehicle platform';407 dependency scoreHypervisorOnKVMAssumption408 from HostHypervisor409 to DE4SDV_MiddlewareSCOREFraming::asmKVMHypervisorWithAAOSSDVGuest;410 dependency scoreHMIApplicationOnReuseAssumption411 from AAOSSDVHMIApplication412 to DE4SDV_MiddlewareSCOREFraming::asmVisualizationApplicationReusedAsHMI;413 dependency scoreSpeedProviderOnSpeedPathScope414 from VehicleSpeedProvider415 to DE4SDV_MiddlewareSCOREFraming::scoreMiddlewareScope::referenceVehicleSpeedPathInScope;416417 concern scoreTwoDomainContextConcern : OperationalContextConcern {418 doc /*419 * System architects, systems engineers and open-source reviewers need420 * the two execution domains, the hypervisor boundary, the host-side421 * and guest-side actors, the system of interest in both domains and422 * the one-way HMI path visible for the two-domain member.423 */424 subject;425 stakeholder systemArchitect : SystemArchitect;426 stakeholder systemsEngineer : SystemsEngineer;427 stakeholder reviewer : OpenSourceReviewer;428 }429430 view scoreTwoDomainOperationalContextView {431 viewpoint selectedOperationalContextViewpoint : OperationalContextDefinitionViewpoint {432 frame scoreTwoDomainContextConcern;433 }434435 expose scoreTwoDomainOperationalContext;436 expose scoreTwoDomainOperationalContext::*;437 expose scoreTwoDomainSignalFlow;438 attribute depth = 2;439 attribute showAnnotationRows = false;440 render asTreeDiagram;441 }442443 concern scoreTwoDomainStoryConcern : OperationalStoryConcern {444 doc /*445 * Systems engineers, verification engineers and open-source reviewers446 * need the operational story of the two-domain member told in447 * stakeholder language: the speed path, the AEBS event on the HMI, the448 * provider-loss degradation, the unavailable or stale guest, and the449 * S-CORE service lifecycle, with the emergency command staying on the450 * host.451 */452 subject;453 stakeholder systemsEngineer : SystemsEngineer;454 stakeholder verificationEngineer : VerificationEngineer;455 stakeholder reviewer : OpenSourceReviewer;456 }457458 view scoreTwoDomainOperationalStoryView {459 viewpoint selectedOperationalStoryViewpoint : OperationalStoryViewpoint {460 frame scoreTwoDomainStoryConcern;461 }462463 expose operateAEBSMemberAcrossTwoDomains;464 expose operateAEBSMemberAcrossTwoDomains::*;465 attribute depth = 1;466 attribute showAnnotationRows = false;467 render asTreeDiagram;468 }469}470