textual-notation-of-model/packages/features/driving/driver_assistance_logical_architecture.sysml
3 view(s) · 68 declared member(s) Jump to source ↓
view driverAssistanceLogicalStructureViewsource ↓
| Viewpoint | selected (System |
|---|---|
| Framed concerns |
|
| Render | as |
| Exposes | driverdriverdriverdriverdriver |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
view driverAssistanceFunctionMappingViewsource ↓
| Viewpoint | selected (System |
|---|---|
| View type | MVD:: |
| Framed concerns |
|
| Exposes | driverdriverdriverdriverDriverDriverDriverDriverDE4 |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
view driverAssistanceInternalExchangeViewsource ↓
| Viewpoint | selected (System |
|---|---|
| Framed concerns |
|
| Render | as |
| Depth | -1 |
| Exposes | driverdriver |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
Source
1/*2 * DE4SDV driver-assistance logical architecture.3 *4 * INC-DRIVING-002, phase 7: the logical architecture of the candidate5 * driver-assistance system. What technology-independent logical elements6 * realize the four functions of phase 6?7 *8 * The decomposition subject is the system of interest itself, one level below9 * the functional boundary of phase 6: DriverAssistanceLogicalSystem10 * specializes DriverAssistanceFunctionalBoundary, so it keeps the four11 * boundary ports and gives the system an inside of four logical elements.12 * The context elements of phase 2 stay outside and undivided. Functions stay13 * where phase 6 put them; each is allocated to the element that carries it by14 * a native allocation (allocatedTo), a responsibility assignment, not a15 * realization, deployment or runtime claim.16 *17 * Four elements, one per function (owner decision of 2026-11-15). The18 * identity recorder stands alone because the record covers the files of the19 * other elements and comes before any command, so phase 8 realizes it beside20 * the software that gives the commands. The warning requester stands alone21 * because how the candidate gives a warning request at its boundary is open22 * (gapWarningOutput). The driving commander is the one command source, and23 * the emergency braking stays a mode of its one function, as phase 6 decided24 * (gapNoSeparateEmergencyFunction). The vehicle-ahead assessor is the one25 * producer of the assessment that both decisions take.26 *27 * REQ-DRIVING-042 orders the warning request before the emergency braking,28 * and REQ-DRIVING-044 the identity record before the first driving command:29 * phase 6 allocated each to the functions of two elements, so each order30 * crosses one exchange, the warning state and the candidate record.31 * REQ-DRIVING-038 and REQ-DRIVING-043 constrain how the driving command and32 * the warning request travel outside the system; phase 8 carries them by the33 * elements it places on those exchanges. Nothing here names a computer, a34 * process, a transport or a signal catalogue.35 */36package DE4SDV_DriverAssistanceLogicalArchitecture {37 private import DE4SDV_Stakeholders::*;38 private import DE4SDV_TraceVocabulary::LogicalAllocationElement;39 private import DE4SDV_DriverAssistanceFunctionalArchitecture::DriverAssistanceFunctionalBoundary;40 private import DE4SDV_DriverAssistanceFunctionalArchitecture::DriverAssistanceFunctionalFlow;41 private import DE4SDV_DriverAssistanceFunctionalArchitecture::driverAssistanceFunctionalFlow;42 private import DE4SDV_DriverAssistanceFunctionalArchitecture::VehicleAheadAssessment;43 private import DE4SDV_DriverAssistanceFunctionalArchitecture::WarningRequestState;44 private import DE4SDV_DriverAssistanceFunctionalArchitecture::CandidateIdentityRecord;45 private import DE4SDV_DriverAssistanceFunctionalArchitecture::FrontCameraImageInbound;46 private import DE4SDV_DriverAssistanceFunctionalArchitecture::VehicleSpeedInbound;47 private import DE4SDV_DriverAssistanceFunctionalArchitecture::DrivingCommandOutbound;48 private import DE4SDV_DriverAssistanceFunctionalArchitecture::WarningRequestOutbound;49 private import SAF_Viewpoints::*;50 private import SysideViews::**;51 private import Views::*;5253 /* ──────────── The ports of the exchanges inside the driver-assistance system ──────────── */5455 port def VehicleAheadAssessmentOutbound {56 doc /* The output port of the assessment of the vehicle ahead: the vehicle-ahead assessor provides it. */57 out item assessment : VehicleAheadAssessment;58 }59 port def VehicleAheadAssessmentInbound {60 doc /* The input port of the assessment of the vehicle ahead: the warning requester and the driving commander take it. */61 in item assessment : VehicleAheadAssessment;62 }63 port def WarningRequestStateOutbound {64 doc /* The output port of the warning state: the warning requester reports whether the request has started, and when. */65 out item warningState : WarningRequestState;66 }67 port def WarningRequestStateInbound {68 doc /* The input port of the warning state: the driving commander takes it before any emergency braking. */69 in item warningState : WarningRequestState;70 }71 port def CandidateIdentityRecordOutbound {72 doc /* The output port of the candidate record: the identity recorder provides it. */73 out item candidateRecord : CandidateIdentityRecord;74 }75 port def CandidateIdentityRecordInbound {76 doc /* The input port of the candidate record: the driving commander takes it before its first driving command. */77 in item candidateRecord : CandidateIdentityRecord;78 }7980 /* ──────────── The four logical elements of the driver-assistance system ──────────── */8182 part def CandidateIdentityRecorder :> LogicalAllocationElement {83 doc /*84 * Carries the identification of the candidate: before the first driving85 * command of each run, it records the candidate identity, as the terms of86 * the requirements define it, and provides the record to the driving87 * commander. The record covers the network and configuration files of88 * the other elements and comes before any of them commands, so it is a89 * responsibility of its own: phase 8 realizes it beside the software that90 * gives the commands, not inside it.91 */92 port candidateRecordOut : CandidateIdentityRecordOutbound;93 }9495 part def VehicleAheadAssessor :> LogicalAllocationElement {96 doc /*97 * Carries the assessment of the vehicle ahead: from each front-camera98 * image and the speed of the vehicle, it perceives the lane and the99 * closest vehicle ahead in it, estimates the distance and the closing100 * speed, and provides the time to collision, the needed deceleration and101 * whether a collision is imminent. It is the one producer of the102 * assessment that both decisions take, and the only element that reads103 * the front-camera image, whose distance estimate depends on the camera104 * calibration (gapCameraImageAndGeometry). Phase 8 realizes it on the105 * perception software.106 */107 port frontCameraImageIn : FrontCameraImageInbound;108 port vehicleSpeedIn : VehicleSpeedInbound;109 port assessmentOut : VehicleAheadAssessmentOutbound;110 }111112 part def CollisionWarningRequester :> LogicalAllocationElement {113 doc /*114 * Carries the request of the collision warning: it starts the warning115 * request at the boundary of the system when the assessment shows an116 * imminent collision, starts none while none is imminent, and reports117 * whether the request has started, and when, to the driving commander. It118 * stands alone so that phase 8 can place the request on a realization of119 * its own, since how the candidate gives a warning request at its120 * boundary is open (gapWarningOutput). It is the only source of the121 * warning request.122 */123 port assessmentIn : VehicleAheadAssessmentInbound;124 port warningRequestOut : WarningRequestOutbound;125 port warningStateOut : WarningRequestStateOutbound;126 }127128 part def DrivingCommander :> LogicalAllocationElement {129 doc /*130 * Carries the commanding of the vehicle: it gives the driving command,131 * the steering and the acceleration, from the assessment and the speed of132 * the vehicle, none before it has the candidate record, and the emergency133 * braking only after the warning state shows that the request has134 * started. The emergency braking is a mode of this one command function,135 * not an element of its own; whether the candidate's braking can stand136 * for the common capability stays open (gapNoSeparateEmergencyFunction),137 * and phase 8 answers it. It is the one command source of the system, and138 * nothing it provides goes to another element.139 */140 port assessmentIn : VehicleAheadAssessmentInbound;141 port vehicleSpeedIn : VehicleSpeedInbound;142 port warningStateIn : WarningRequestStateInbound;143 port candidateRecordIn : CandidateIdentityRecordInbound;144 port drivingCommandOut : DrivingCommandOutbound;145 }146147 /* ──────────── The driver-assistance system one level inside its boundary ──────────── */148149 part def DriverAssistanceLogicalSystem :> DriverAssistanceFunctionalBoundary {150 doc /*151 * The candidate driver-assistance system of phase 2, one level inside the152 * functional boundary of phase 6: the same system, now with its four153 * logical elements and the exchanges between them. The boundary ports are154 * inherited and delegated to the elements that take or provide their155 * items: the front-camera image goes to the vehicle-ahead assessor, the156 * vehicle speed to the assessor and to the driving commander alike, the157 * driving command leaves from the driving commander and the warning158 * request from the warning requester. Inside, the assessment goes from159 * the assessor to the warning requester and to the driving commander, the160 * warning state from the warning requester to the driving commander, and161 * the candidate record from the identity recorder to the driving162 * commander. The warning state carries the order of REQ-DRIVING-042163 * across two elements, and the candidate record that of REQ-DRIVING-044.164 * No exchange runs from the driving commander to another element. This165 * definition names no computer, process, transport or technology.166 * driverAssistanceLogicalSystem is its usage for the views, which draw167 * usages; it is the same system as the context's candidateSystem, not a168 * second one.169 */170 part identityRecorder : CandidateIdentityRecorder;171 part vehicleAheadAssessor : VehicleAheadAssessor;172 part warningRequester : CollisionWarningRequester;173 part drivingCommander : DrivingCommander;174175 // The boundary items, delegated from the inherited ports of phase 6.176 connection frontCameraImageDelegation177 connect frontCameraImageIn to vehicleAheadAssessor.frontCameraImageIn;178 connection vehicleSpeedToAssessor179 connect vehicleSpeedIn to vehicleAheadAssessor.vehicleSpeedIn;180 connection vehicleSpeedToCommander181 connect vehicleSpeedIn to drivingCommander.vehicleSpeedIn;182 connection drivingCommandDelegation183 connect drivingCommander.drivingCommandOut to drivingCommandOut;184 connection warningRequestDelegation185 connect warningRequester.warningRequestOut to warningRequestOut;186187 // The exchanges between the elements, in the order of the functional flow.188 connection assessmentToRequester189 connect vehicleAheadAssessor.assessmentOut to warningRequester.assessmentIn;190 connection assessmentToCommander191 connect vehicleAheadAssessor.assessmentOut to drivingCommander.assessmentIn;192 connection warningStateExchange193 connect warningRequester.warningStateOut to drivingCommander.warningStateIn;194 connection candidateRecordExchange195 connect identityRecorder.candidateRecordOut to drivingCommander.candidateRecordIn;196 }197198 part driverAssistanceLogicalSystem : DriverAssistanceLogicalSystem {199 doc /* The driver-assistance system as the views draw it: the one usage of the logical definition, the same system as the context's candidateSystem. */200 }201202 /* ─────────────── Function-to-logical-element allocations (allocatedTo) ─────────────── */203204 allocation candidateIdentityResponsibility205 allocate DriverAssistanceFunctionalFlow::identifyCandidate to DriverAssistanceLogicalSystem::identityRecorder;206 allocation vehicleAheadAssessmentResponsibility207 allocate DriverAssistanceFunctionalFlow::assessVehicleAhead to DriverAssistanceLogicalSystem::vehicleAheadAssessor;208 allocation collisionWarningResponsibility209 allocate DriverAssistanceFunctionalFlow::requestWarning to DriverAssistanceLogicalSystem::warningRequester;210 allocation drivingCommandResponsibility211 allocate DriverAssistanceFunctionalFlow::commandVehicle to DriverAssistanceLogicalSystem::drivingCommander;212213 /* ─────────────────────────────── Views ─────────────────────────────── */214215 concern driverAssistanceLogicalStructureConcern : ConceptualStructureConcern {216 doc /*217 * System architects and software developers need the logical elements of218 * the driver-assistance system, one level inside its functional boundary,219 * each with the responsibility it carries and its ports, before phase 8220 * places software on them: which elements there are, and why each stands221 * alone.222 */223 subject;224 stakeholder systemArchitect : SystemArchitect;225 stakeholder softwareDeveloper : SoftwareDeveloper;226 }227228 view driverAssistanceLogicalStructureView {229 viewpoint selectedLogicalStructureViewpoint : SystemStructureDefinitionViewpoint {230 frame driverAssistanceLogicalStructureConcern;231 }232 expose driverAssistanceLogicalSystem;233 expose driverAssistanceLogicalSystem::identityRecorder;234 expose driverAssistanceLogicalSystem::vehicleAheadAssessor;235 expose driverAssistanceLogicalSystem::warningRequester;236 expose driverAssistanceLogicalSystem::drivingCommander;237 filter not (@ SysML::AllocationUsage);238 render asTreeDiagram;239 }240241 concern driverAssistanceFunctionMappingConcern : ConceptualFunctionMappingConcern {242 doc /*243 * System architects and verification engineers need each function of244 * phase 6 allocated to the logical element that carries it, and each245 * element carrying a function: phase 8 places the elements, and phase 10246 * verifies each requirement on the functions of its element.247 */248 subject;249 stakeholder systemArchitect : SystemArchitect;250 stakeholder verificationEngineer : VerificationEngineer;251 }252253 view driverAssistanceFunctionMappingView : MVD::MatrixView {254 viewpoint selectedFunctionMappingViewpoint : SystemFunctionMappingViewpoint {255 frame driverAssistanceFunctionMappingConcern;256 }257 view :>> rowView {258 expose driverAssistanceFunctionalFlow::identifyCandidate;259 expose driverAssistanceFunctionalFlow::assessVehicleAhead;260 expose driverAssistanceFunctionalFlow::requestWarning;261 expose driverAssistanceFunctionalFlow::commandVehicle;262 attribute :>> includeReferenceElements = true;263 attribute :>> representation = Rep::name;264 }265 view :>> columnView {266 expose DriverAssistanceLogicalSystem::identityRecorder;267 expose DriverAssistanceLogicalSystem::vehicleAheadAssessor;268 expose DriverAssistanceLogicalSystem::warningRequester;269 expose DriverAssistanceLogicalSystem::drivingCommander;270 attribute :>> includeReferenceElements = true;271 attribute :>> representation = Rep::name;272 }273 view :>> cellView {274 expose DE4SDV_DriverAssistanceLogicalArchitecture::*;275 attribute :>> direction = SysideViews::MatrixTraceabilityDirection::row2col;276 }277 }278279 concern driverAssistanceInternalExchangeConcern : ConceptualInternalExchangeConcern {280 doc /*281 * Systems engineers and software developers need the exchanges between282 * the logical elements of the driver-assistance system, the item each283 * carries and its direction: the warning state, across which284 * REQ-DRIVING-042 orders the warning request before the emergency285 * braking; the candidate record, across which REQ-DRIVING-044 orders the286 * identity record before the first driving command; the assessment that287 * both decisions take; and the boundary items delegated to the elements288 * that take or provide them. Phase 8 places each exchange on a289 * technology.290 */291 subject;292 stakeholder systemsEngineer : SystemsEngineer;293 stakeholder softwareDeveloper : SoftwareDeveloper;294 }295296 view driverAssistanceInternalExchangeView {297 viewpoint selectedInternalExchangeViewpoint : SystemInternalExchangeViewpoint {298 frame driverAssistanceInternalExchangeConcern;299 }300 expose driverAssistanceLogicalSystem;301 expose driverAssistanceLogicalSystem::**;302 filter not (@ SysML::AllocationUsage);303 attribute depth = -1;304 attribute showAnnotationRows = false;305 render asInterconnectionDiagram;306 }307}308