textual-notation-of-model/packages/features/driving/closed_loop_driving_logical_architecture.sysml
3 view(s) · 105 declared member(s) Jump to source ↓
view closedLoopDrivingLogicalStructureViewsource ↓
| Viewpoint | selected (System |
|---|---|
| Framed concerns |
|
| Render | as |
| Exposes | closedclosedclosedclosedclosedclosedclosed |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
view closedLoopDrivingFunctionMappingViewsource ↓
| Viewpoint | selected (System |
|---|---|
| View type | MVD:: |
| Framed concerns |
|
| Exposes | closedclosedclosedclosedclosedclosedclosedClosedClosedClosedClosedClosedClosedDE4 |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
view closedLoopDrivingInternalExchangeViewsource ↓
| Viewpoint | selected (System |
|---|---|
| Framed concerns |
|
| Render | as |
| Depth | -1 |
| Exposes | closedclosed |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
Source
1/*2 * INC-DRIVING-001, phase 7: the logical architecture of the closed-loop driving3 * system. What technology-independent logical elements realize the seven4 * functions of phase 6?5 *6 * The decomposition subject is the system of interest itself, one level below7 * the functional boundary of phase 6: ClosedLoopDrivingLogicalSystem8 * specializes ClosedLoopDrivingFunctionalBoundary, so it keeps the five9 * boundary ports and gives the system an inside of six logical elements. The10 * context elements of phase 2 stay outside and undivided. Functions stay where11 * phase 6 put them; each is allocated to the element that carries it by a12 * native allocation (allocatedTo), a responsibility assignment, not a13 * realization, deployment or runtime claim.14 *15 * Six elements, not seven (owner decision of 2026-11-06): functions share an16 * element when nothing requires them to be separately placeable, and split17 * where a requirement constrains the exchange between them or demands that one18 * keeps working when the other does not. Run identity and planning share the19 * planner, since the identity check is on the checkpoint the planner loads.20 * The commander and the actuation gateway are separate, since the stop21 * response of REQ-DRIVING-028 must survive the command path failing. The22 * publisher is separate, since observation is one way and off the loop.23 *24 * REQ-DRIVING-014 constrains the plan and the command exchanges, planner to25 * supervisor to commander to actuation gateway; phase 8 places them on a26 * technology. Nothing here names a computer, a process, a transport or a27 * signal catalogue, and nothing is a vehicle signal specification.28 *29 * Amended on the owner's decision of 2026-11-06 (GAP-DRIVING-005 of phase30 * 8): the actuation gateway reports its actuation state to the publisher, so31 * the stop it applies itself (REQ-DRIVING-028) is published with its cause32 * (REQ-DRIVING-029) like the stop the supervisor decides. The publisher stays33 * off the loop; the new exchange is one way, like the ones it joins.34 */35package DE4SDV_ClosedLoopDrivingLogicalArchitecture {36 private import DE4SDV_Stakeholders::*;37 private import DE4SDV_TraceVocabulary::LogicalAllocationElement;38 private import DE4SDV_ClosedLoopDrivingOperationalContext::VehicleMotionCommand;39 private import DE4SDV_ClosedLoopDrivingFunctionalArchitecture::ClosedLoopDrivingFunctionalBoundary;40 private import DE4SDV_ClosedLoopDrivingFunctionalArchitecture::ClosedLoopDrivingFunctionalFlow;41 private import DE4SDV_ClosedLoopDrivingFunctionalArchitecture::closedLoopDrivingFunctionalFlow;42 private import DE4SDV_ClosedLoopDrivingFunctionalArchitecture::CheckpointInputs;43 private import DE4SDV_ClosedLoopDrivingFunctionalArchitecture::InputCondition;44 private import DE4SDV_ClosedLoopDrivingFunctionalArchitecture::DrivingPlan;45 private import DE4SDV_ClosedLoopDrivingFunctionalArchitecture::DrivingMode;46 private import DE4SDV_ClosedLoopDrivingFunctionalArchitecture::ActuationState;47 private import DE4SDV_ClosedLoopDrivingFunctionalArchitecture::CameraImagesInbound;48 private import DE4SDV_ClosedLoopDrivingFunctionalArchitecture::EgoMotionInbound;49 private import DE4SDV_ClosedLoopDrivingFunctionalArchitecture::RouteInbound;50 private import DE4SDV_ClosedLoopDrivingFunctionalArchitecture::VehicleCommandOutbound;51 private import DE4SDV_ClosedLoopDrivingFunctionalArchitecture::OperationalStateOutbound;52 private import SAF_Viewpoints::*;53 private import SysideViews::**;54 private import Views::*;5556 /* ──────────── The ports of the exchanges inside the driving system ──────────── */5758 port def CheckpointInputsOutbound {59 doc /* The output port of the checkpoint inputs of one step: the input conditioner provides them. */60 out item checkpointInputs : CheckpointInputs;61 }62 port def CheckpointInputsInbound {63 doc /* The input port of the checkpoint inputs of one step: the planner takes them. */64 in item checkpointInputs : CheckpointInputs;65 }66 port def InputConditionOutbound {67 doc /* The output port of the input condition of one step: the input conditioner reports it. */68 out item inputCondition : InputCondition;69 }70 port def InputConditionInbound {71 doc /* The input port of the input condition of one step: the loop supervisor reads it. */72 in item inputCondition : InputCondition;73 }74 port def DrivingPlanOutbound {75 doc /* The output port of a plan: the planner provides each plan, the loop supervisor passes the newest valid one on. */76 out item plan : DrivingPlan;77 }78 port def DrivingPlanInbound {79 doc /* The input port of a plan: the loop supervisor, the vehicle commander and the state publisher take plans. */80 in item plan : DrivingPlan;81 }82 port def DrivingModeOutbound {83 doc /* The output port of the mode: the loop supervisor sets it. */84 out item mode : DrivingMode;85 }86 port def DrivingModeInbound {87 doc /* The input port of the mode: the vehicle commander and the state publisher follow it. */88 in item mode : DrivingMode;89 }90 port def MotionCommandOutbound {91 doc /* The output port of a command inside the driving system: the vehicle commander issues it. */92 out item command : VehicleMotionCommand;93 }94 port def MotionCommandInbound {95 doc /* The input port of a command inside the driving system: the actuation gateway takes it. */96 in item command : VehicleMotionCommand;97 }98 port def ActuationStateOutbound {99 doc /* The output port of the actuation state inside the driving system: the actuation gateway reports it. */100 out item actuationState : ActuationState;101 }102 port def ActuationStateInbound {103 doc /* The input port of the actuation state inside the driving system: the publisher takes it. */104 in item actuationState : ActuationState;105 }106107 /* ──────────────── The six logical elements of the driving system ──────────────── */108109 part def InputConditioner :> LogicalAllocationElement {110 doc /*111 * Carries the assembly of the checkpoint inputs: it takes the camera112 * images, the ego motion and the route at the boundary of the driving113 * system and provides, for each step, the inputs the checkpoint takes and114 * the condition of those inputs. It is the ingress of the driving system;115 * the element that supplies it with the inputs of phase 2 stays outside.116 */117 port cameraImagesIn : CameraImagesInbound;118 port egoMotionIn : EgoMotionInbound;119 port routeIn : RouteInbound;120 port checkpointInputsOut : CheckpointInputsOutbound;121 port inputConditionOut : InputConditionOutbound;122 }123124 part def TrajectoryPlanner :> LogicalAllocationElement {125 doc /*126 * Carries the identification of the run and the planning of the127 * trajectory: it holds the pinned checkpoint, refuses to plan when the128 * checkpoint is not the one the configuration names, records the run129 * identity, and makes the plans from the checkpoint inputs.130 * The identity check is on the checkpoint this element loads, so the two131 * functions share it.132 */133 port checkpointInputsIn : CheckpointInputsInbound;134 port planOut : DrivingPlanOutbound;135 }136137 part def LoopSupervisor :> LogicalAllocationElement {138 doc /*139 * Carries the supervision of the loop: it detects degraded inputs and140 * plans, sets the mode, priming, driving or stopped with its cause, and141 * passes the newest valid plan on. It is the one authority on the mode;142 * it issues no command of its own.143 */144 port inputConditionIn : InputConditionInbound;145 port planIn : DrivingPlanInbound;146 port validPlanOut : DrivingPlanOutbound;147 port modeOut : DrivingModeOutbound;148 }149150 part def VehicleCommander :> LogicalAllocationElement {151 doc /*152 * Carries the commanding of the vehicle: it computes the steering and153 * acceleration commands from the newest valid plan, the mode and the154 * current motion of the vehicle, within the limits of the vehicle its155 * configuration names, and the stop response as a mode of that one156 * command computation. It is the one command source of the driving157 * system.158 */159 port validPlanIn : DrivingPlanInbound;160 port modeIn : DrivingModeInbound;161 port egoMotionIn : EgoMotionInbound;162 port commandOut : MotionCommandOutbound;163 }164165 part def ActuationGateway :> LogicalAllocationElement {166 doc /*167 * Carries the application of the commands at the actuation: it gives168 * each command to the actuation of the vehicle at the boundary of the169 * driving system and applies the stop response itself when no valid170 * command reaches it in the limit of REQ-DRIVING-028. It is separate from171 * the vehicle commander so that the vehicle stops also when the command172 * path between them does not deliver. It reports its actuation state,173 * the applied command with its time or its own stop with the cause, to174 * the publisher, which is off the loop; nothing of it flows back.175 */176 port commandIn : MotionCommandInbound;177 port vehicleCommandOut : VehicleCommandOutbound;178 port actuationStateOut : ActuationStateOutbound;179 }180181 part def OperationalStatePublisher :> LogicalAllocationElement {182 doc /*183 * Carries the publication of the operational state: each plan, the motion184 * of each step, the health and the stop with its cause, whether the loop185 * supervisor decided it (the mode) or the actuation gateway did (the186 * actuation state), one way, for the state observer outside the driving187 * system. Nothing it provides flows back into the loop, so it is separate188 * from the elements of the loop.189 */190 port planIn : DrivingPlanInbound;191 port egoMotionIn : EgoMotionInbound;192 port modeIn : DrivingModeInbound;193 port actuationStateIn : ActuationStateInbound;194 port operationalStateOut : OperationalStateOutbound;195 }196197 /* ──────────────── The driving system one level inside its boundary ──────────────── */198199 part def ClosedLoopDrivingLogicalSystem :> ClosedLoopDrivingFunctionalBoundary {200 doc /*201 * The driving system of phase 2, one level inside the functional boundary202 * of phase 6: the same system, now with its six logical elements and the203 * exchanges between them. The boundary ports are inherited and delegated204 * to the elements that take or provide their items: the ego motion goes205 * to the input conditioner, the vehicle commander and the state publisher206 * alike. Inside, the plan goes from the planner to the loop supervisor207 * and, as the newest valid plan, on to the vehicle commander; the command208 * goes from the vehicle commander to the actuation gateway. Those are the209 * exchanges REQ-DRIVING-014 constrains and phase 8 places. No exchange210 * runs from the state publisher or the actuation gateway back into the211 * loop. This definition names no computer, process, transport or212 * technology. closedLoopDrivingLogicalSystem is its usage for the views,213 * which draw usages; it is the same system as the context's214 * drivingSystem, not a second one.215 */216 part inputConditioner : InputConditioner;217 part planner : TrajectoryPlanner;218 part loopSupervisor : LoopSupervisor;219 part vehicleCommander : VehicleCommander;220 part actuationGateway : ActuationGateway;221 part statePublisher : OperationalStatePublisher;222223 // The boundary items, delegated from the inherited ports of phase 6.224 connection cameraImagesDelegation225 connect cameraImagesIn to inputConditioner.cameraImagesIn;226 connection egoMotionToConditioner227 connect egoMotionIn to inputConditioner.egoMotionIn;228 connection egoMotionToCommander229 connect egoMotionIn to vehicleCommander.egoMotionIn;230 connection egoMotionToPublisher231 connect egoMotionIn to statePublisher.egoMotionIn;232 connection routeDelegation233 connect routeIn to inputConditioner.routeIn;234 connection vehicleCommandDelegation235 connect actuationGateway.vehicleCommandOut to vehicleCommandOut;236 connection operationalStateDelegation237 connect statePublisher.operationalStateOut to operationalStateOut;238239 // The exchanges between the elements, in the order of the loop.240 connection checkpointInputsExchange241 connect inputConditioner.checkpointInputsOut to planner.checkpointInputsIn;242 connection inputConditionExchange243 connect inputConditioner.inputConditionOut to loopSupervisor.inputConditionIn;244 connection planToSupervisor245 connect planner.planOut to loopSupervisor.planIn;246 connection planToPublisher247 connect planner.planOut to statePublisher.planIn;248 connection validPlanExchange249 connect loopSupervisor.validPlanOut to vehicleCommander.validPlanIn;250 connection modeToCommander251 connect loopSupervisor.modeOut to vehicleCommander.modeIn;252 connection modeToPublisher253 connect loopSupervisor.modeOut to statePublisher.modeIn;254 connection commandExchange255 connect vehicleCommander.commandOut to actuationGateway.commandIn;256 connection actuationStateToPublisher257 connect actuationGateway.actuationStateOut to statePublisher.actuationStateIn;258 }259260 part closedLoopDrivingLogicalSystem : ClosedLoopDrivingLogicalSystem {261 doc /* The driving system as the views draw it: the one usage of the logical definition, the same system as the context's drivingSystem. */262 }263264 /* ─────────────── Function-to-logical-element allocations (allocatedTo) ─────────────── */265266 allocation inputConditioningResponsibility267 allocate ClosedLoopDrivingFunctionalFlow::assembleInputs to ClosedLoopDrivingLogicalSystem::inputConditioner;268 allocation runIdentityResponsibility269 allocate ClosedLoopDrivingFunctionalFlow::identifyRun to ClosedLoopDrivingLogicalSystem::planner;270 allocation planningResponsibility271 allocate ClosedLoopDrivingFunctionalFlow::planTrajectory to ClosedLoopDrivingLogicalSystem::planner;272 allocation supervisionResponsibility273 allocate ClosedLoopDrivingFunctionalFlow::superviseLoop to ClosedLoopDrivingLogicalSystem::loopSupervisor;274 allocation commandingResponsibility275 allocate ClosedLoopDrivingFunctionalFlow::commandVehicle to ClosedLoopDrivingLogicalSystem::vehicleCommander;276 allocation actuationResponsibility277 allocate ClosedLoopDrivingFunctionalFlow::applyCommands to ClosedLoopDrivingLogicalSystem::actuationGateway;278 allocation publicationResponsibility279 allocate ClosedLoopDrivingFunctionalFlow::publishState to ClosedLoopDrivingLogicalSystem::statePublisher;280281 /* ─────────────────────────────── Views ─────────────────────────────── */282283 concern closedLoopDrivingLogicalStructureConcern : ConceptualStructureConcern {284 doc /*285 * System architects and software developers need the logical elements of286 * the driving system, one level inside its functional boundary, each with287 * the responsibility it carries and its ports, before phase 8 places288 * software on them: which elements there are, and why each stands alone.289 */290 subject;291 stakeholder systemArchitect : SystemArchitect;292 stakeholder softwareDeveloper : SoftwareDeveloper;293 }294295 view closedLoopDrivingLogicalStructureView {296 viewpoint selectedLogicalStructureViewpoint : SystemStructureDefinitionViewpoint {297 frame closedLoopDrivingLogicalStructureConcern;298 }299 expose closedLoopDrivingLogicalSystem;300 expose closedLoopDrivingLogicalSystem::inputConditioner;301 expose closedLoopDrivingLogicalSystem::planner;302 expose closedLoopDrivingLogicalSystem::loopSupervisor;303 expose closedLoopDrivingLogicalSystem::vehicleCommander;304 expose closedLoopDrivingLogicalSystem::actuationGateway;305 expose closedLoopDrivingLogicalSystem::statePublisher;306 filter not (@ SysML::AllocationUsage);307 render asTreeDiagram;308 }309310 concern closedLoopDrivingFunctionMappingConcern : ConceptualFunctionMappingConcern {311 doc /*312 * System architects and verification engineers need each function of313 * phase 6 allocated to the logical element that carries it, and each314 * element carrying at least one function: phase 8 places the elements,315 * and phase 10 verifies each requirement on the functions of its element.316 */317 subject;318 stakeholder systemArchitect : SystemArchitect;319 stakeholder verificationEngineer : VerificationEngineer;320 }321322 view closedLoopDrivingFunctionMappingView : MVD::MatrixView {323 viewpoint selectedFunctionMappingViewpoint : SystemFunctionMappingViewpoint {324 frame closedLoopDrivingFunctionMappingConcern;325 }326 view :>> rowView {327 expose closedLoopDrivingFunctionalFlow::identifyRun;328 expose closedLoopDrivingFunctionalFlow::assembleInputs;329 expose closedLoopDrivingFunctionalFlow::planTrajectory;330 expose closedLoopDrivingFunctionalFlow::superviseLoop;331 expose closedLoopDrivingFunctionalFlow::commandVehicle;332 expose closedLoopDrivingFunctionalFlow::applyCommands;333 expose closedLoopDrivingFunctionalFlow::publishState;334 attribute :>> includeReferenceElements = true;335 attribute :>> representation = Rep::name;336 }337 view :>> columnView {338 expose ClosedLoopDrivingLogicalSystem::inputConditioner;339 expose ClosedLoopDrivingLogicalSystem::planner;340 expose ClosedLoopDrivingLogicalSystem::loopSupervisor;341 expose ClosedLoopDrivingLogicalSystem::vehicleCommander;342 expose ClosedLoopDrivingLogicalSystem::actuationGateway;343 expose ClosedLoopDrivingLogicalSystem::statePublisher;344 attribute :>> includeReferenceElements = true;345 attribute :>> representation = Rep::name;346 }347 view :>> cellView {348 expose DE4SDV_ClosedLoopDrivingLogicalArchitecture::*;349 attribute :>> direction = SysideViews::MatrixTraceabilityDirection::row2col;350 }351 }352353 concern closedLoopDrivingInternalExchangeConcern : ConceptualInternalExchangeConcern {354 doc /*355 * Systems engineers and software developers need the exchanges between356 * the logical elements of the driving system, the item each carries and357 * its direction: the plan and the command exchanges that REQ-DRIVING-014358 * and REQ-DRIVING-028 constrain, the actuation state exchange that359 * REQ-DRIVING-029 times, and the boundary items delegated to the elements360 * that take or provide them. Phase 8 places each exchange on a361 * technology.362 */363 subject;364 stakeholder systemsEngineer : SystemsEngineer;365 stakeholder softwareDeveloper : SoftwareDeveloper;366 }367368 view closedLoopDrivingInternalExchangeView {369 viewpoint selectedInternalExchangeViewpoint : SystemInternalExchangeViewpoint {370 frame closedLoopDrivingInternalExchangeConcern;371 }372 expose closedLoopDrivingLogicalSystem;373 expose closedLoopDrivingLogicalSystem::**;374 filter not (@ SysML::AllocationUsage);375 attribute depth = -1;376 attribute showAnnotationRows = false;377 render asInterconnectionDiagram;378 }379}380