textual-notation-of-model/packages/features/driving/driver_assistance_functional_architecture.sysml
5 view(s) · 119 declared member(s) Jump to source ↓
view driverAssistanceFunctionBreakdownViewsource ↓
| Viewpoint | selected (System |
|---|---|
| Framed concerns |
|
| Render | as |
| Exposes | driver |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
view driverAssistanceRequirementFunctionMappingViewsource ↓
| Viewpoint | selected (System |
|---|---|
| View type | MVD:: |
| Framed concerns |
|
| Exposes | reqreqreqreqreqreqreqreqreqdriverdriverdriverdriverDE4 |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
view driverAssistanceSystemProcessViewsource ↓
| Viewpoint | selected (System |
|---|---|
| View type | Action |
| Framed concerns |
|
| Exposes | DriverDriverDriverDriverDriverDriver |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
view driverAssistanceModeDependenceTableViewsource ↓
| Viewpoint | selected (System |
|---|---|
| View type | TVD:: |
| Framed concerns |
|
| Exposes | DriverDriverDriverDriver |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
view driverAssistanceFunctionalInterfaceViewsource ↓
| Viewpoint | selected (System |
|---|---|
| Framed concerns |
|
| Render | as |
| Exposes | DrivingFrontVehicleWarning |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
Source
1/*2 * DE4SDV driver-assistance functional architecture.3 *4 * INC-DRIVING-002, phase 6: the functions of the candidate driver-assistance5 * system and the requirements of phase 5 each carries. Four functions record6 * the candidate identity, assess the vehicle ahead, request the collision7 * warning and command the vehicle. The emergency braking is a mode of the one8 * command function, not a second command source: it leaves in the driving9 * command, as the term of phase 5 allows, and whether the candidate's braking10 * can stand for the common capability stays open11 * (gapNoSeparateEmergencyFunction). Every requirement but REQ-DRIVING-038 and12 * REQ-DRIVING-043 is allocated to a function. Those two constrain how the13 * driving command and the warning request travel to the actuation and to the14 * AAOS SDV, over the Eclipse S-CORE path, not what a function does: phase 815 * carries them by the elements it places on those exchanges16 * (gapScoreIntegration). An allocation assigns responsibility only17 * (allocatedTo); it asserts no satisfaction. No logical element, platform,18 * transport or technology is chosen, and no safety claim is made.19 *20 * The system in operation is a process, not a second architecture: the21 * vehicle's front camera and motion sensing give the image and the speed, the22 * command and warning path carries the driving command to the vehicle's23 * actuation and the warning request to the warning presentation, which gives24 * the driver the collision warning on the display and as a sound. Those are25 * functions of the context elements, outside the scope of the system, and26 * DriverAssistanceSystemProcess runs the system as one action between them,27 * with the times between the warning request, each mode of the warning and28 * the start of the emergency braking. Its participants are the parts of the29 * one operational context of phase 2, bound by reference. The functions whose30 * behavior differs by mode depend on the modes of DriverAssistanceModes, and31 * the conceptual interfaces of the system are the ports of32 * DriverAssistanceFunctionalBoundary, whose items specialize the items of33 * phase 2. No vehicle signal specification is imported or used anywhere in34 * this package: the interface items are conceptual, their quantities are ISQ35 * quantity values, and the signal typing of an interface starts in phase 8.36 * The functions state what the system has to do, not what the candidate does37 * at its inspected revision; phase 8 maps them to its software.38 */3940package DE4SDV_DriverAssistanceFunctionalArchitecture {41 private import DE4SDV_Stakeholders::*;42 private import DE4SDV_TraceVocabulary::AllocatableFunction;43 private import DE4SDV_DriverAssistanceFraming::driverWarningSequenceConcern;44 private import DE4SDV_DriverAssistanceFraming::DriverAssistanceSystem;45 private import DE4SDV_OperationalContext::SubjectVehicle;46 private import DE4SDV_OperationalContext::Driver;47 private import DE4SDV_DriverAssistanceOperationalContext::FrontCameraImage;48 private import DE4SDV_DriverAssistanceOperationalContext::VehicleSpeed;49 private import DE4SDV_DriverAssistanceOperationalContext::DrivingCommand;50 private import DE4SDV_DriverAssistanceOperationalContext::WarningRequest;51 private import DE4SDV_DriverAssistanceOperationalContext::CollisionWarning;52 private import DE4SDV_DriverAssistanceOperationalContext::SCORECommandAndWarningPath;53 private import DE4SDV_DriverAssistanceOperationalContext::DriverWarningPresentation;54 private import DE4SDV_DriverAssistanceOperationalContext::driverAssistanceOperationalContext;55 private import DE4SDV_DriverAssistanceNeedsRequirements::*;56 private import ScalarValues::Boolean;57 private import ScalarValues::Natural;58 private import SAF_Viewpoints::*;59 private import StandardViewDefinitions::*;60 private import SysideViews::**;61 private import Views::*;6263 /* ──────────── Items the functions exchange inside the driver-assistance system ──────────── */6465 item def VehicleAheadAssessment {66 doc /*67 * For one front-camera image: whether a vehicle ahead is in the lane of68 * the vehicle, the distance to it in the direction of travel, the speed at69 * which the vehicle closes on it, the time to collision, which has no value70 * while the vehicle does not close on it, the needed deceleration, and71 * whether a collision is imminent, each as the terms of the requirements72 * define it.73 */74 }7576 item def WarningRequestState {77 doc /* Whether the warning request has started, and its start time in simulation time. */78 }7980 item def CandidateIdentityRecord {81 doc /* The candidate identity of the run, as the terms of the requirements define it, recorded before its first driving command. */82 }8384 /* ──────────────── The functions of the context elements of phase 2 ──────────────── */8586 action def DriverAssistanceContextFunction {87 doc /*88 * A behavior of a context element of phase 2 while the driver-assistance89 * system operates. It is outside the scope of the driver-assistance90 * system: the system does not provide it and no requirement of phase 5 is91 * allocated to it.92 */93 }9495 action def CaptureFrontCameraImage :> DriverAssistanceContextFunction {96 doc /* The vehicle's front camera: captures the road ahead, its lanes and the vehicles in them, and gives the image with its capture time. */97 out frontCameraImage : FrontCameraImage;98 }99100 action def SampleVehicleSpeed :> DriverAssistanceContextFunction {101 doc /* The vehicle's motion sensing: samples the speed of the vehicle and gives it with its sample time. */102 out vehicleSpeed : VehicleSpeed;103 }104105 action def CarryDrivingCommand :> DriverAssistanceContextFunction {106 doc /* The command and warning path: carries each driving command from the boundary of the system to the actuation of the vehicle, with no exchange beside it. */107 in drivingCommand : DrivingCommand;108 out carriedCommand : DrivingCommand;109 }110111 action def CarryWarningRequest :> DriverAssistanceContextFunction {112 doc /* The command and warning path: carries the warning request from the boundary of the system to the warning presentation, with no exchange beside it. */113 in warningRequest : WarningRequest;114 out carriedWarningRequest : WarningRequest;115 }116117 action def ActuateVehicle :> DriverAssistanceContextFunction {118 doc /*119 * The vehicle's actuation: applies the steering and the acceleration of120 * each driving command that reaches it, braking included, which moves the121 * vehicle and changes what its front camera sees next. By its form it can122 * detect a command lost, delayed, repeated or corrupted on the path;123 * rejecting what it detects is the share of the product that holds the124 * path (REQ-MW-006), which phase 8 allocates.125 */126 in drivingCommand : DrivingCommand;127 }128129 action def ShowCollisionWarning :> DriverAssistanceContextFunction {130 doc /*131 * The warning presentation: gives the driver the collision warning on the132 * display, starting within 0.2 s of wall-clock time after the warning133 * request starts at the boundary of the system, the time on the path134 * included.135 */136 in warningRequest : WarningRequest;137 out collisionWarning : CollisionWarning;138 }139140 action def SoundCollisionWarning :> DriverAssistanceContextFunction {141 doc /*142 * The warning presentation: gives the driver the collision warning as a143 * sound, starting within 0.2 s of wall-clock time after the warning144 * request starts at the boundary of the system, the time on the path145 * included.146 */147 in warningRequest : WarningRequest;148 out collisionWarning : CollisionWarning;149 }150151 action def ReceiveCollisionWarning :> DriverAssistanceContextFunction {152 doc /* The driver: gets the collision warning on the display and as a sound, and sends nothing back to the system. */153 in shownWarning : CollisionWarning;154 in soundedWarning : CollisionWarning;155 }156157 /* ─────────────────────────────── Functions ─────────────────────────────── */158159 action def IdentifyCandidate :> AllocatableFunction {160 doc /*161 * Before the first driving command of each run, records the candidate162 * identity: the upstream revision, the difference between the source of163 * the system and that revision, the SHA-256 of each network file the164 * system loads and of each file of its configuration, and the settings of165 * its launch, verbatim.166 */167 out candidateRecord : CandidateIdentityRecord;168 }169170 action def AssessVehicleAhead :> AllocatableFunction {171 doc /*172 * Perceives from the front-camera image the lane of the vehicle and the173 * closest vehicle ahead in it, and estimates, with the speed of the174 * vehicle, the distance to that vehicle in the direction of travel and the175 * speed at which the vehicle closes on it. From them it works out the time176 * to collision and the needed deceleration, and whether a collision is177 * imminent: a time to collision of at most 4.0 s and a needed deceleration178 * of at least 1.0 m/s².179 */180 in frontCameraImage : FrontCameraImage;181 in vehicleSpeed : VehicleSpeed;182 out assessment : VehicleAheadAssessment;183 }184185 action def RequestCollisionWarning :> AllocatableFunction {186 doc /*187 * Starts the warning request at the boundary of the system when a188 * collision with a vehicle ahead becomes imminent, and starts none while189 * no collision is imminent; a request may go on after the imminence ends,190 * as when the braking ends it. Starting with the imminence puts the191 * request ahead of the emergency braking, which starts only once the192 * needed deceleration reaches 5.0 m/s²: in each setting at a constant193 * approach speed the two are at least 1.11 s apart. Reports whether the194 * request has started, and when, to the command of the vehicle.195 */196 in assessment : VehicleAheadAssessment;197 out warningRequest : WarningRequest;198 out warningState : WarningRequestState;199 }200201 action def GiveDrivingCommand :> AllocatableFunction {202 doc /*203 * Gives the one driving command of the system, the steering and the204 * acceleration, from the assessment of the vehicle ahead and the speed of205 * the vehicle. It gives none before the candidate identity is recorded.206 * Until an emergency braking starts, it follows the lane and keeps the207 * speed and the distance to the vehicle ahead, braking included, with a208 * deceleration below 5.0 m/s². It starts the emergency braking, a command209 * for 5.0 m/s² or more, only while a collision is imminent and only after210 * the warning request has started, and commands at least 5.0 m/s² while211 * the needed deceleration is at least 5.0 m/s². When a collision is212 * imminent it brakes the vehicle to a relative impact speed of at most the213 * maximum relative impact speed for the relative approach speed. It gives214 * each command with its issue time, a sequence count and a check value,215 * the form by which the actuation can detect its loss, delay, repetition216 * or corruption on the path.217 */218 in assessment : VehicleAheadAssessment;219 in currentSpeed : VehicleSpeed;220 in warningState : WarningRequestState;221 in candidateRecord : CandidateIdentityRecord;222 out drivingCommand : DrivingCommand;223 }224225 /* ─────────────────── The functional breakdown of one step ─────────────────── */226227 action def DriverAssistanceFunctionalFlow {228 doc /*229 * The driver-assistance system broken into its functions, and the items230 * they exchange in one step. The front-camera image and the vehicle speed231 * come from the context of phase 2; the driving command and the warning232 * request go to the command and warning path, which takes them to the233 * actuation of the vehicle and to the warning presentation. Only the234 * command of commandVehicle leaves as the driving command, and only the235 * request of requestWarning as the warning request.236 */237 in item frontCameraImage : FrontCameraImage;238 in item vehicleSpeed : VehicleSpeed;239 out item drivingCommand : DrivingCommand;240 out item warningRequest : WarningRequest;241242 action identifyCandidate : IdentifyCandidate {243 out candidateRecord;244 }245246 action assessVehicleAhead : AssessVehicleAhead {247 in frontCameraImage = DriverAssistanceFunctionalFlow::frontCameraImage;248 in vehicleSpeed = DriverAssistanceFunctionalFlow::vehicleSpeed;249 out assessment;250 }251252 action requestWarning : RequestCollisionWarning {253 in assessment;254 out warningRequest = DriverAssistanceFunctionalFlow::warningRequest;255 out warningState;256 }257 flow from assessVehicleAhead.assessment to requestWarning.assessment;258 first assessVehicleAhead then requestWarning;259260 action commandVehicle : GiveDrivingCommand {261 in assessment;262 in currentSpeed = DriverAssistanceFunctionalFlow::vehicleSpeed;263 in warningState;264 in candidateRecord;265 out drivingCommand = DriverAssistanceFunctionalFlow::drivingCommand;266 }267 flow from assessVehicleAhead.assessment to commandVehicle.assessment;268 flow from requestWarning.warningState to commandVehicle.warningState;269 flow from identifyCandidate.candidateRecord to commandVehicle.candidateRecord;270 first requestWarning then commandVehicle;271 }272273 action driverAssistanceFunctionalFlow : DriverAssistanceFunctionalFlow;274275 /* ─────────── The system process: the system between the context elements ─────────── */276277 action def DriverAssistanceSystemProcess {278 doc /*279 * One cycle of the driver-assistance system in operation, as a process.280 * The participants are the context parts of phase 2 themselves and the281 * system of interest, bound by reference: the process declares no part of282 * its own, so the increment has one context. Each participant owns and283 * performs its functions, as the swim lane of its functions: the vehicle's284 * front camera and motion sensing give the image and the speed, the285 * system assesses, warns and commands as one action of the process, and286 * the command and warning path carries the driving command to the287 * vehicle's actuation and the warning request to the warning288 * presentation, which gives the driver the collision warning on the289 * display and as a sound. The functions of the context elements are290 * outside the scope of the driver-assistance system; its functional scope291 * is the one functional flow usage it performs. The items that cross its292 * boundary are the flows of the process, each chained through the293 * participant that gives and the one that takes, and nothing flows back294 * from the driver. The sequence and its times: the system gives its295 * warning request at its boundary at least 1.0 s of simulation time296 * before the start of its emergency braking, which leaves in its driving297 * command (REQ-DRIVING-042); within that lead, the path and the warning298 * presentation start each mode of the warning within 0.2 s of wall-clock299 * time after the request, so that each mode starts at least 0.8 s before300 * the emergency braking while the simulation runs no faster than301 * wall-clock time, which is the obligation of System 2. Phase 8 divides302 * the 0.2 s between the path and the warning presentation. No transport,303 * display or sound technology is fixed here.304 */305 ref part vehicle : SubjectVehicle = driverAssistanceOperationalContext::vehicle {306 doc /* The vehicle of phase 2: its front camera and motion sensing give the input, and its actuation applies the driving command. */307 perform action captureImage : CaptureFrontCameraImage;308 perform action sampleSpeed : SampleVehicleSpeed;309 perform action actuateVehicle : ActuateVehicle;310 }311312 ref part candidateSystem : DriverAssistanceSystem = driverAssistanceOperationalContext::candidateSystem {313 doc /* The system of interest of phase 2: it performs its whole functional flow, the one usage its functional boundary performs, and gives its warning request at least 1.0 s of simulation time before the start of its emergency braking. */314 perform driverAssistanceFunctionalFlow;315 }316317 ref part scorePath : SCORECommandAndWarningPath = driverAssistanceOperationalContext::scorePath {318 doc /* The command and warning path of phase 2: it carries the driving command to the actuation and the warning request to the warning presentation, with no exchange beside it. */319 perform action carryCommand : CarryDrivingCommand;320 perform action carryWarningRequest : CarryWarningRequest;321 }322323 ref part warningPresentation : DriverWarningPresentation = driverAssistanceOperationalContext::aaosSDVGuest::warningPresentation {324 doc /* The warning presentation of phase 2: it starts each mode of the warning, on the display and as a sound, within 0.2 s of wall-clock time after the request, the time on the path included, and sends nothing to the system. */325 perform action showWarning : ShowCollisionWarning;326 perform action soundWarning : SoundCollisionWarning;327 }328329 ref part driver : Driver = driverAssistanceOperationalContext::driver {330 doc /* The driver of phase 2: gets the collision warning; nothing flows back to the system. */331 perform action receiveWarning : ReceiveCollisionWarning;332 }333334 flow from vehicle.captureImage.frontCameraImage to candidateSystem.driverAssistanceFunctionalFlow.frontCameraImage;335 flow from vehicle.sampleSpeed.vehicleSpeed to candidateSystem.driverAssistanceFunctionalFlow.vehicleSpeed;336 flow from candidateSystem.driverAssistanceFunctionalFlow.drivingCommand to scorePath.carryCommand.drivingCommand;337 flow from candidateSystem.driverAssistanceFunctionalFlow.warningRequest to scorePath.carryWarningRequest.warningRequest;338 flow from scorePath.carryCommand.carriedCommand to vehicle.actuateVehicle.drivingCommand;339 flow from scorePath.carryWarningRequest.carriedWarningRequest to warningPresentation.showWarning.warningRequest;340 flow from scorePath.carryWarningRequest.carriedWarningRequest to warningPresentation.soundWarning.warningRequest;341 flow from warningPresentation.showWarning.collisionWarning to driver.receiveWarning.shownWarning;342 flow from warningPresentation.soundWarning.collisionWarning to driver.receiveWarning.soundedWarning;343 }344345 action driverAssistanceSystemProcess : DriverAssistanceSystemProcess;346347 /* ────────────────────────────────── Modes ────────────────────────────────── */348349 state def DriverAssistanceModes {350 doc /*351 * The modes of the driver-assistance system. Identifying holds every352 * driving command until the candidate identity is recorded; assisting353 * follows the lane and the speed with no collision imminent; warning is354 * the imminence of a collision before an emergency braking, with the355 * warning request given; emergency braking holds a deceleration of at356 * least 5.0 m/s² while the needed deceleration is at least 5.0 m/s², until357 * the collision is no longer imminent. The modes follow from the358 * requirements, not from a term of phase 5.359 */360 state identifying {361 doc /* The candidate identity of the run is not yet recorded: commandVehicle gives no driving command (REQ-DRIVING-044). */362 }363 state assisting {364 doc /*365 * No collision with a vehicle ahead is imminent: requestWarning starts no366 * warning request (REQ-DRIVING-040), and commandVehicle follows the lane367 * and keeps the speed and the distance to the vehicle ahead with a368 * deceleration below 5.0 m/s² and starts no emergency braking369 * (REQ-DRIVING-041).370 */371 }372 state warning {373 doc /*374 * A collision with a vehicle ahead is imminent and no emergency braking375 * has started: requestWarning gives the warning request from the start376 * of the imminence (REQ-DRIVING-042), and commandVehicle starts the377 * emergency braking once the needed deceleration reaches 5.0 m/s², after378 * the request has started.379 */380 }381 state emergencyBraking {382 doc /*383 * From the first command for 5.0 m/s² or more until the collision is no384 * longer imminent: commandVehicle commands a deceleration of at least 5.0385 * m/s² while the needed deceleration is at least 5.0 m/s²386 * (REQ-DRIVING-036), and brakes the vehicle to a relative impact speed of387 * at most the maximum relative impact speed for the relative approach388 * speed (REQ-DRIVING-037).389 */390 }391 transition first identifying then assisting; // the candidate identity is recorded392 transition first assisting then warning; // a collision with a vehicle ahead becomes imminent393 transition first warning then emergencyBraking; // the needed deceleration reaches 5.0 m/s²394 transition first warning then assisting; // the collision is no longer imminent395 transition first emergencyBraking then assisting; // the collision is no longer imminent396 }397398 /* ────────── The functions whose behavior differs by mode depend on it ────────── */399400 dependency commandVehicleDependsOnIdentifyingMode401 from DriverAssistanceFunctionalFlow::commandVehicle402 to DriverAssistanceModes::identifying;403 dependency commandVehicleDependsOnAssistingMode404 from DriverAssistanceFunctionalFlow::commandVehicle405 to DriverAssistanceModes::assisting;406 dependency commandVehicleDependsOnWarningMode407 from DriverAssistanceFunctionalFlow::commandVehicle408 to DriverAssistanceModes::warning;409 dependency commandVehicleDependsOnEmergencyBrakingMode410 from DriverAssistanceFunctionalFlow::commandVehicle411 to DriverAssistanceModes::emergencyBraking;412 dependency requestWarningDependsOnAssistingMode413 from DriverAssistanceFunctionalFlow::requestWarning414 to DriverAssistanceModes::assisting;415 dependency requestWarningDependsOnWarningMode416 from DriverAssistanceFunctionalFlow::requestWarning417 to DriverAssistanceModes::warning;418419 /* ────────── The conceptual interfaces of the system: one functional chain ────────── */420421 item def FrontCameraImageInput :> FrontCameraImage {422 doc /*423 * The front-camera image as it enters the driver-assistance system at its424 * input, with its capture time in simulation time. The calibration of the425 * camera, its intrinsic matrix and its pose in the vehicle frame, travels426 * with its images: the distance to the vehicle ahead is estimated with it,427 * and the system builds no calibration of its own.428 */429 attribute captureTime : ISQ::DurationValue;430 }431432 item def VehicleSpeedInput :> VehicleSpeed {433 doc /* The speed of the vehicle as it enters the system at its input, with its sample time in simulation time. */434 attribute speed : ISQ::SpeedValue;435 attribute sampleTime : ISQ::DurationValue;436 }437438 item def DrivingCommandOutput :> DrivingCommand {439 doc /*440 * The driving command as it leaves the system at its boundary: the441 * steering angle and the acceleration, a braking as a negative442 * acceleration, with the three parts by which the actuation can detect a443 * failure of the path (REQ-DRIVING-039): its issue time in simulation444 * time, by which a delay shows; a sequence count, one more than that of445 * the command before it, by which a loss or a repetition shows; and a446 * check value over the other parts, by which a corruption shows.447 */448 attribute steeringAngle : ISQ::AngularMeasureValue;449 attribute acceleration : ISQ::AccelerationValue;450 attribute issueTime : ISQ::DurationValue;451 attribute sequenceCount : Natural;452 attribute checkValue : Natural;453 }454455 item def CollisionWarningRequestOutput :> WarningRequest {456 doc /*457 * The warning request as it leaves the system at its boundary: whether it458 * asks for the collision warning, with its issue time in simulation time.459 * A request starts when it begins to ask.460 */461 attribute requested : Boolean;462 attribute issueTime : ISQ::DurationValue;463 }464465 port def FrontCameraImageInbound {466 doc /* The input port of the front-camera image: the vehicle's front camera provides it. */467 in item frontCameraImage : FrontCameraImageInput;468 }469470 port def VehicleSpeedInbound {471 doc /* The input port of the vehicle speed: the vehicle's motion sensing provides it. */472 in item vehicleSpeed : VehicleSpeedInput;473 }474475 port def DrivingCommandOutbound {476 doc /* The output port of the driving command: the command and warning path takes it to the actuation. */477 out item drivingCommand : DrivingCommandOutput;478 }479480 port def WarningRequestOutbound {481 doc /* The output port of the warning request: the command and warning path takes it to the warning presentation. */482 out item warningRequest : CollisionWarningRequestOutput;483 }484485 part def DriverAssistanceFunctionalBoundary :> DriverAssistanceSystem {486 doc /*487 * The driver-assistance system at its functional boundary, the one place488 * its conceptual interfaces are stated: two input ports the vehicle489 * provides and two output ports the command and warning path takes, each490 * with one directed item typed by an item definition of this package that491 * specializes the item of phase 2. It performs the functional flow and492 * binds its inputs and outputs to the ports. It is not a logical element:493 * neither it nor its ports names a computer, a process, a transport or a494 * technology.495 */496 port frontCameraImageIn : FrontCameraImageInbound;497 port vehicleSpeedIn : VehicleSpeedInbound;498 port drivingCommandOut : DrivingCommandOutbound;499 port warningRequestOut : WarningRequestOutbound;500501 perform driverAssistanceFunctionalFlow : DriverAssistanceFunctionalFlow {502 in item frontCameraImage = frontCameraImageIn.frontCameraImage;503 in item vehicleSpeed = vehicleSpeedIn.vehicleSpeed;504 out item drivingCommand = drivingCommandOut.drivingCommand;505 out item warningRequest = warningRequestOut.warningRequest;506 }507 }508509 /* ─────────────── Requirement-to-function allocations (allocatedTo) ─────────────── */510511 /* Recording the candidate identity. */512 allocation candidateIdentityRecordResponsibility513 allocate reqRecordCandidateIdentity to DriverAssistanceFunctionalFlow::identifyCandidate;514515 /* Assessing the vehicle ahead: the needed deceleration and the imminence. */516 allocation neededDecelerationResponsibility517 allocate reqEmergencyBrakingForImminentCollision to DriverAssistanceFunctionalFlow::assessVehicleAhead;518 allocation warningImminenceResponsibility519 allocate reqWithholdWarningRequest to DriverAssistanceFunctionalFlow::assessVehicleAhead;520 allocation brakingImminenceResponsibility521 allocate reqWithholdEmergencyBraking to DriverAssistanceFunctionalFlow::assessVehicleAhead;522523 /* Requesting the collision warning. */524 allocation warningStartResponsibility525 allocate reqWithholdWarningRequest to DriverAssistanceFunctionalFlow::requestWarning;526 allocation warningLeadResponsibility527 allocate reqWarningRequestBeforeEmergencyBraking to DriverAssistanceFunctionalFlow::requestWarning;528529 /* Commanding the vehicle, the emergency braking included. */530 allocation emergencyBrakingDemandResponsibility531 allocate reqEmergencyBrakingForImminentCollision to DriverAssistanceFunctionalFlow::commandVehicle;532 allocation impactSpeedResponsibility533 allocate reqImpactSpeedWithinLimit to DriverAssistanceFunctionalFlow::commandVehicle;534 allocation detectableCommandResponsibility535 allocate reqDetectableDrivingCommand to DriverAssistanceFunctionalFlow::commandVehicle;536 allocation emergencyBrakingStartResponsibility537 allocate reqWithholdEmergencyBraking to DriverAssistanceFunctionalFlow::commandVehicle;538 allocation brakingAfterWarningResponsibility539 allocate reqWarningRequestBeforeEmergencyBraking to DriverAssistanceFunctionalFlow::commandVehicle;540 allocation commandAfterIdentityResponsibility541 allocate reqRecordCandidateIdentity to DriverAssistanceFunctionalFlow::commandVehicle;542543 /* ─────────────────────────────── Views ─────────────────────────────── */544545 concern driverAssistanceFunctionsConcern : FunctionalBehaviorConcern {546 doc /*547 * System architects and verification engineers need the functions of the548 * driver-assistance system and each requirement of phase 5 mapped to the549 * functions that carry it: phase 7 gives the functions to logical550 * elements, and phase 10 verifies each requirement on its functions.551 */552 subject;553 stakeholder systemArchitect : SystemArchitect;554 stakeholder verificationEngineer : VerificationEngineer;555 }556557 view driverAssistanceFunctionBreakdownView {558 viewpoint selectedFunctionalBreakdownViewpoint : SystemFunctionalBreakdownStructureViewpoint {559 frame driverAssistanceFunctionsConcern;560 }561 expose driverAssistanceFunctionalFlow;562 render asTreeDiagram;563 }564565 view driverAssistanceRequirementFunctionMappingView : MVD::MatrixView {566 viewpoint selectedRequirementFunctionViewpoint : SystemRequirementTraceabilityViewpoint {567 frame driverAssistanceFunctionsConcern;568 }569 view :>> rowView {570 expose reqEmergencyBrakingForImminentCollision;571 expose reqImpactSpeedWithinLimit;572 expose reqDrivingCommandOverSCORE;573 expose reqDetectableDrivingCommand;574 expose reqWithholdWarningRequest;575 expose reqWithholdEmergencyBraking;576 expose reqWarningRequestBeforeEmergencyBraking;577 expose reqWarningRequestOverSCORE;578 expose reqRecordCandidateIdentity;579 attribute :>> includeReferenceElements = true;580 attribute :>> representation = Rep::name;581 }582 view :>> columnView {583 expose driverAssistanceFunctionalFlow::identifyCandidate;584 expose driverAssistanceFunctionalFlow::assessVehicleAhead;585 expose driverAssistanceFunctionalFlow::requestWarning;586 expose driverAssistanceFunctionalFlow::commandVehicle;587 attribute :>> includeReferenceElements = true;588 attribute :>> representation = Rep::name;589 }590 view :>> cellView {591 expose DE4SDV_DriverAssistanceFunctionalArchitecture::*;592 attribute :>> direction = SysideViews::MatrixTraceabilityDirection::row2col;593 }594 }595596 /* ─────────── The system in operation as a process, with the warning sequence ─────────── */597598 concern driverAssistanceProcessConcern : SystemProcessConcern {599 doc /*600 * System architects and systems engineers need the driver-assistance601 * system in operation as a process: the functions that the vehicle, the602 * command and warning path, the warning presentation and the driver603 * perform, which of those functions are outside the scope of the system,604 * what the system provides and what it expects from each context element,605 * and which items cross its boundary in which direction.606 */607 subject;608 stakeholder systemArchitect : SystemArchitect;609 stakeholder systemsEngineer : SystemsEngineer;610 }611612 view driverAssistanceSystemProcessView : ActionFlowView {613 viewpoint selectedSystemProcessViewpoint : SystemProcessViewpoint {614 frame driverAssistanceProcessConcern;615 frame driverWarningSequenceConcern;616 }617 expose DriverAssistanceSystemProcess::*;618 expose DriverAssistanceSystemProcess::vehicle::*;619 expose DriverAssistanceSystemProcess::candidateSystem::*;620 expose DriverAssistanceSystemProcess::scorePath::*;621 expose DriverAssistanceSystemProcess::warningPresentation::*;622 expose DriverAssistanceSystemProcess::driver::*;623 attribute showAnnotationRows = false;624 attribute maxCompartmentEntries = 0;625 }626627 /* ───────────── The modes, and the functions that depend on them ───────────── */628629 concern driverAssistanceModeDependenceConcern : SystemStateConcern {630 doc /*631 * System architects and software developers need the modes of the632 * driver-assistance system and each function whose behavior differs by633 * mode: what commandVehicle commands before the candidate identity is634 * recorded, while assisting, while a collision is imminent and in an635 * emergency braking, and when requestWarning starts its request, so that636 * the behavior of each function is designed and built per mode.637 */638 subject;639 stakeholder systemArchitect : SystemArchitect;640 stakeholder softwareDeveloper : SoftwareDeveloper;641 }642643 view driverAssistanceModeDependenceTableView : TVD::TableView {644 viewpoint selectedSystemStateTableViewpoint : SystemStateViewpoint {645 frame driverAssistanceModeDependenceConcern;646 }647 expose DriverAssistanceModes::identifying;648 expose DriverAssistanceModes::assisting;649 expose DriverAssistanceModes::warning;650 expose DriverAssistanceModes::emergencyBraking;651 filter @ SysML::StateUsage;652 attribute :>> maxRowHeight = 300;653 view Mode :> columnViews {654 attribute :>> featureToRender = CT::declaredName;655 }656 view DependentFunctions :> columnViews {657 attribute :>> featureToRender = CT::documentation;658 attribute :>> columnWidth = 360;659 }660 }661662 /* ─────────────── The conceptual interfaces of the system ─────────────── */663664 concern driverAssistanceInterfaceConcern : FunctionalInterfaceConcern {665 doc /*666 * Systems engineers and software developers need the conceptual interfaces667 * of the driver-assistance system before phase 7 allocates the functions668 * and phase 8 places software on them: the port of the functional chain669 * for each item that crosses its boundary, the direction of that item, the670 * item of phase 2 the port's item specializes, and the parts of the671 * driving command by which the actuation detects a failure of the path.672 * Signal typing at a software contract belongs to phase 8.673 */674 subject;675 stakeholder systemsEngineer : SystemsEngineer;676 stakeholder softwareDeveloper : SoftwareDeveloper;677 }678679 view driverAssistanceFunctionalInterfaceView {680 viewpoint selectedFunctionalInterfaceViewpoint : SystemInterfaceDefinitionViewpoint {681 frame driverAssistanceInterfaceConcern;682 }683 expose DrivingCommandOutbound;684 expose FrontCameraImageInbound;685 expose VehicleSpeedInbound;686 expose WarningRequestOutbound;687 attribute showAnnotationRows = false;688 render asTreeDiagram;689 }690}691