textual-notation-of-model/packages/features/ee/ee_architecture_operational_context.sysml
2 view(s) · 71 declared member(s) Jump to source ↓
view eeArchitectureOperationalContextViewsource ↓
| Viewpoint | ee (Operational |
|---|---|
| Framed concerns |
|
| Render | as |
| Depth | 2 |
| Exposes | eeeevehicle |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
view eeArchitectureOperationalStoryViewsource ↓
| Viewpoint | ee (Operational |
|---|---|
| Framed concerns |
|
| Render | as |
| Depth | 1 |
| Exposes | vehiclevehicle |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
Source
1/*2 * DE4SDV E/E architecture: Phase 2 operational context.3 *4 * INC-EE-001, phase 2: what happens in the world of the vehicle network. The5 * source of the driving command on the central computer gives the command,6 * the Eclipse S-CORE path hands it to the vehicle network, the network7 * carries it on one of its two routes to the actuation ECU on CAN, and the8 * vehicle takes the command that the actuation ECU applies. The source and9 * the S-CORE path are System 1 parts outside the vehicle network, as phase 010 * draws the boundary. The testbed, the replay, the fault injection, the11 * vehicle model, the records and the evaluators are System 2 and stay out of12 * this context. No timing, safety, compliance or production-readiness claim13 * is made.14 */1516package DE4SDV_EEArchitectureOperationalContext {17 private import DE4SDV_MethodContext::*;18 private import DE4SDV_OperationalContext::*;19 private import DE4SDV_Stakeholders::*;20 private import DE4SDV_SYSMODAdapter::*;21 private import DE4SDV_EEArchitectureFraming::*;22 private import DE4SDV_DriverAssistanceOperationalContext::DrivingCommand;23 private import DE4SDV_DriverAssistanceOperationalContext::SCORECommandAndWarningPath;24 private import SAF_Viewpoints::*;25 private import Views::*;2627 /* ───────────────────── Phase 2: what happens in the world ───────────────────── */2829 part def DrivingCommandSource :> OperationalEntity {30 doc /*31 * What gives the driving command on the central computer. In this32 * increment the driver-assistance candidate of INC-DRIVING-002 gives the33 * driving command, and that increment fixes its form at its baseline34 * (asmEECommandFromDrivingBaseline). A System 1 part outside the vehicle35 * network and no enabling system. In verification a System 2 part stands36 * in for it (eeVerificationEnvironment).37 */38 }3940 part eeArchitectureOperationalContext : SystemContext {41 doc /*42 * The operational context of the vehicle network. Inside the system of43 * interest, as phase 0 draws it: the network side of the central44 * computer, the Ethernet backbone, the two zone controllers, a CAN bus in45 * each zone, the direct link and the actuation ECU on CAN that receives46 * the command and acts on it; it stays a black box until the architecture47 * phases. The source of the driving command on the central computer and48 * the Eclipse S-CORE path are System 1 parts outside the vehicle network49 * and no enabling systems; the central computer lies across the boundary.50 * Around it the vehicle only takes the command that the actuation ECU51 * applies. System 1 roles only: the testbed, the replay, the fault52 * injection, the vehicle model, the records and the evaluators stay in53 * eeVerificationEnvironment. This is the operational environment, not a54 * deployment decomposition.55 */56 part vehicleNetwork : EEVehicleNetworkSystem :>> systemOfInterest;57 part commandSource : DrivingCommandSource {58 doc /*59 * The source of the driving command on the central computer.60 */61 }62 part scorePath : SCORECommandAndWarningPath {63 doc /*64 * The Eclipse S-CORE path of the existing increments on the central65 * computer: it hands the driving command to the network side of the66 * central computer (asmEEScoreCommandSource); the scope holds one flow,67 * so it carries no warning request in this increment.68 */69 }70 part vehicle : SubjectVehicle {71 doc /*72 * The vehicle whose steering, acceleration and brakes move it: it takes73 * the command that the actuation ECU applies and sends nothing back.74 */75 }76 }7778 /* Operational behavior: the command crosses the boundary once in and once out; nothing flows back. */79 action def VehicleNetworkCommandOperation {80 doc /*81 * One command in the world: the source gives it, the Eclipse S-CORE path82 * hands it to the vehicle network, the network carries it on one of its83 * two routes to the actuation ECU, which applies it to the vehicle or,84 * when it detects a fault, applies nothing; nothing flows back from the85 * vehicle.86 */87 action giveDrivingCommand {88 doc /*89 * The command source: gives the driving command.90 */91 out drivingCommand : DrivingCommand;92 }9394 action carryCommandOverSCORE {95 doc /*96 * The S-CORE path: hands the driving command to the vehicle network.97 */98 in drivingCommand : DrivingCommand;99 out carriedCommand : DrivingCommand;100 }101102 flow from giveDrivingCommand.drivingCommand to carryCommandOverSCORE.drivingCommand;103 first giveDrivingCommand then carryCommandOverSCORE;104105 action carryAndApplyCommand {106 doc /*107 * The vehicle network: carries the command on a route to the actuation108 * ECU, which applies a command that reaches it whole and applies none109 * that it rejects. Where the requirements ask for a stop response, the110 * stop response reaches the vehicle on the same flow.111 */112 in drivingCommand : DrivingCommand;113 out appliedCommand : DrivingCommand;114 }115116 flow from carryCommandOverSCORE.carriedCommand to carryAndApplyCommand.drivingCommand;117 first carryCommandOverSCORE then carryAndApplyCommand;118119 action moveVehicle {120 doc /*121 * The vehicle: steering, acceleration and brakes move it; nothing flows122 * back to the vehicle network.123 */124 in appliedCommand : DrivingCommand;125 }126127 flow from carryAndApplyCommand.appliedCommand to moveVehicle.appliedCommand;128 }129130 action vehicleNetworkCommandOperation : VehicleNetworkCommandOperation;131132 /* Operational story on the SYSMOD seam. */133 use case def CarryDrivingCommandToActuation :> SYSMODSystemUseCaseBase {134 doc /*135 * The vehicle network in operation: it carries the driving command to the136 * actuation ECU on each of its two routes, applies no command that a137 * fault has made invalid, and leaves the vehicle the stop response when138 * no valid command reaches the actuation.139 */140 attribute redefines ucMotivation = "The product line needs a vehicle network that carries the driving command from the central computer to an actuation ECU on CAN and keeps, on each of two routes, the properties that the model asks of the command paths of earlier increments.";141 attribute redefines ucTrigger = "The command source on the central computer gives driving commands, and the Eclipse S-CORE path hands each one to the vehicle network.";142 attribute redefines ucResult = "On each route a command that reaches the actuation ECU whole is applied to the vehicle, a command that is lost, delayed, repeated or corrupted on its way is detected and not applied, and when no valid command reaches the actuation the vehicle gets the stop response.";143144 objective {145 doc /*146 * Frame the two routes, the command fault and the link that goes down,147 * only. The criteria and their limits are fixed with the requirements148 * (phase 5); a time limit counts on the clock of the virtual vehicle and149 * makes no timing claim for a vehicle network.150 */151 }152 }153154 use case vehicleNetworkStory : CarryDrivingCommandToActuation {155 subject vehicleNetwork : EEVehicleNetworkSystem = eeArchitectureOperationalContext::vehicleNetwork;156 actor commandSource : DrivingCommandSource = eeArchitectureOperationalContext::commandSource;157 actor scorePath : SCORECommandAndWarningPath = eeArchitectureOperationalContext::scorePath;158 actor vehicle : SubjectVehicle = eeArchitectureOperationalContext::vehicle;159160 objective {161 doc /*162 * Operate the vehicle network without selecting the medium of the direct163 * link or a realization, and without any timing, safety, compliance or164 * production-readiness claim.165 */166 }167168 first start;169 then include carryCommandThroughZoneController;170 then include carryCommandOverDirectLink;171 then include rejectFaultyCommandOnTheRoute;172 then include respondToLinkDownOnTheRoute;173 then done;174 }175176 use case carryCommandThroughZoneController {177 subject vehicleNetwork : EEVehicleNetworkSystem = eeArchitectureOperationalContext::vehicleNetwork;178 actor commandSource : DrivingCommandSource = eeArchitectureOperationalContext::commandSource;179 actor scorePath : SCORECommandAndWarningPath = eeArchitectureOperationalContext::scorePath;180 actor vehicle : SubjectVehicle = eeArchitectureOperationalContext::vehicle;181182 objective {183 doc /*184 * SC-EE-001 (route through a zone controller): the command enters the185 * vehicle network from the Eclipse S-CORE path, crosses the Ethernet186 * backbone and a zone controller, which passes it to CAN, reaches the187 * actuation ECU, and the actuation ECU applies it to the vehicle. No188 * timing claim for a vehicle network is made.189 */190 }191192 first start;193 then done;194 }195196 use case carryCommandOverDirectLink {197 subject vehicleNetwork : EEVehicleNetworkSystem = eeArchitectureOperationalContext::vehicleNetwork;198 actor commandSource : DrivingCommandSource = eeArchitectureOperationalContext::commandSource;199 actor scorePath : SCORECommandAndWarningPath = eeArchitectureOperationalContext::scorePath;200 actor vehicle : SubjectVehicle = eeArchitectureOperationalContext::vehicle;201202 objective {203 doc /*204 * SC-EE-002 (direct link): the command enters the vehicle network from205 * the Eclipse S-CORE path, goes over the direct link from the central206 * computer, which passes no zone controller, reaches the actuation ECU,207 * and the actuation ECU applies it to the vehicle. Phases 6 to 8 decide208 * what the link is. No timing claim for a vehicle network is made.209 */210 }211212 first start;213 then done;214 }215216 use case rejectFaultyCommandOnTheRoute {217 subject vehicleNetwork : EEVehicleNetworkSystem = eeArchitectureOperationalContext::vehicleNetwork;218 actor commandSource : DrivingCommandSource = eeArchitectureOperationalContext::commandSource;219 actor scorePath : SCORECommandAndWarningPath = eeArchitectureOperationalContext::scorePath;220 actor vehicle : SubjectVehicle = eeArchitectureOperationalContext::vehicle;221222 objective {223 doc /*224 * SC-EE-003 (command fault on the route): on either route a command is225 * lost, delayed, repeated or corrupted on its way; the actuation detects226 * it and applies no command that it rejects. How it detects the fault is227 * fixed with the requirements (phase 5) and decided in the architecture228 * phases. No timing claim for a vehicle network is made.229 */230 }231232 first start;233 then done;234 }235236 use case respondToLinkDownOnTheRoute {237 subject vehicleNetwork : EEVehicleNetworkSystem = eeArchitectureOperationalContext::vehicleNetwork;238 actor commandSource : DrivingCommandSource = eeArchitectureOperationalContext::commandSource;239 actor scorePath : SCORECommandAndWarningPath = eeArchitectureOperationalContext::scorePath;240 actor vehicle : SubjectVehicle = eeArchitectureOperationalContext::vehicle;241242 objective {243 doc /*244 * SC-EE-004 (link down): on either route one link of the route goes down;245 * no valid command reaches the actuation, and the vehicle gets the stop246 * response that the engineering question names, after REQ-DRIVING-028 of247 * INC-DRIVING-001, not from the driver-assistance increment, whose248 * adapter has no stop response (gapEEActuationEnd). As there, the249 * response and its time limit are fixed with the requirements (phase 5).250 * No timing claim for a vehicle network is made.251 */252 }253254 first start;255 then done;256 }257258 /* Traces to the Phase 0 records this context implements. */259 dependency vehicleNetworkStoryAnswersProblem260 from vehicleNetworkStory261 to DE4SDV_EEArchitectureFraming::eeArchitectureProblem;262 dependency commandSourceOnDrivingBaseline263 from DrivingCommandSource264 to DE4SDV_EEArchitectureFraming::asmEECommandFromDrivingBaseline;265 dependency scorePathOnScoreCommandSource266 from eeArchitectureOperationalContext::scorePath267 to DE4SDV_EEArchitectureFraming::asmEEScoreCommandSource;268 dependency routeScenariosOnZoneRouteGap269 from vehicleNetworkStory270 to DE4SDV_EEArchitectureFraming::gapEEZoneRouteInVehicles;271272 comment actuationEndComment about DE4SDV_EEArchitectureFraming::gapEEActuationEnd273 /*274 * Phase 2 draws no input from the vehicle to the actuation ECU. Whether275 * the actuation end takes a vehicle speed for its conversion of the276 * command, and which element holds the detection, the rejection and the277 * stop response, phases 6 to 8 decide inside the black box; this context278 * changes neither the driver-assistance nor the closed-loop adapter. A279 * speed input would reopen this context.280 */281282 comment stackAndNetworkBoundaryComment about DE4SDV_EEArchitectureFraming::gapEEStackAndNetworkBoundary283 /*284 * The central computer lies across the boundary: its network side is285 * inside the vehicle network, the command source and the S-CORE path are286 * outside. This context reuses no element of the platform stack, no SoC287 * and no VehicleNetworkBoundary; how the vehicle network relates to them288 * is for phase 3.289 */290291 concern eeArchitectureContextConcern : OperationalContextConcern {292 doc /*293 * System architects, systems engineers and open-source reviewers need to294 * see what is inside the vehicle network and what is around it: the295 * source of the driving command, the Eclipse S-CORE path and the vehicle,296 * and which item crosses the boundary in which direction. The actuation297 * ECU is inside; the source and the S-CORE path are outside; the vehicle298 * only receives.299 */300 subject;301 stakeholder systemArchitect : SystemArchitect;302 stakeholder systemsEngineer : SystemsEngineer;303 stakeholder reviewer : OpenSourceReviewer;304 }305306 view eeArchitectureOperationalContextView {307 viewpoint eeArchitectureContextViewpoint : OperationalContextDefinitionViewpoint {308 frame eeArchitectureContextConcern;309 }310311 expose eeArchitectureOperationalContext;312 expose eeArchitectureOperationalContext::*;313 expose vehicleNetworkCommandOperation;314 attribute depth = 2;315 attribute showAnnotationRows = false;316 render asTreeDiagram;317 }318319 concern eeArchitectureStoryConcern : OperationalStoryConcern {320 doc /*321 * Systems engineers, verification engineers and open-source reviewers322 * need the vehicle network told in stakeholder language: the driving323 * command on each of its two routes, a command that a fault makes324 * invalid, and a link of the route that goes down.325 */326 subject;327 stakeholder systemsEngineer : SystemsEngineer;328 stakeholder verificationEngineer : VerificationEngineer;329 stakeholder reviewer : OpenSourceReviewer;330 }331332 view eeArchitectureOperationalStoryView {333 viewpoint eeArchitectureStoryViewpoint : OperationalStoryViewpoint {334 frame eeArchitectureStoryConcern;335 frame eeVehicleCommandConcern;336 }337338 expose vehicleNetworkStory;339 expose vehicleNetworkStory::*;340 attribute depth = 1;341 attribute showAnnotationRows = false;342 render asTreeDiagram;343 }344}345