model-based-product-line-engineering/feature-models/vehicle_execution_environments.sysml

0 view(s) · 8 declared member(s)

Source

1/*2 * PLEML feature model of the vehicle-target execution-environment family.3 *4 * It holds the family's catalogue with the exact-pinned PLEML library, under5 * the decision of ADR 0022. It restates the YAML catalogue6 * vehicle_execution_environments.yaml, which retired at step S7. The family7 * configures System 1 compute targets deployed into SDV member products; the8 * "no concrete" alternatives keep the honest state in which no target is9 * selected. Its configurations are in ../feature-configurations/.10 *11 * Authority since the switch of ADR 0022, as for the SDV product-line12 * feature model: this model and its configurations are the13 * configuration-validity authority of the family. No native evaluation of a14 * PLEML constraint body and no compliance claim.15 *16 * Identity: every ID is the SysML short name of its element, the one the17 * retired YAML catalogue gave the node that the element restates.18 */1920package DE4SDV_VehicleTargetExecutionEnvironmentFeatureModel {21    private import PLEML::*;22    private import DE4SDV_ProductLineDerivation::*;2324    #featureTree occurrence def <'PL-VEHICLE-TARGET-EXECUTION-ENVIRONMENT'> VehicleTargetExecutionEnvironmentFeatureTree {25        doc /* Configurable System 1 compute targets deployed into SDV member26             * products, the root feature. Every feature keeps the PLEML27             * Development binding time. */2829        #feature occurrence <'F-VEHICLE-ENVIRONMENT'> environment[1] {30            doc /* A mandatory grouping feature that holds the compute,31                 * operating-system and runtime alternative groups. */3233            #feature occurrence <'F-VEHICLE-COMPUTE'> computeNode[1] {34                doc /* The compute hardware of the vehicle target. */35            }36            #feature occurrence <'F-VEHICLE-COMPUTE-NXP-CANDIDATE'> nxpVehicleCompute[0..1] :> computeNode default null {37                doc /* An NXP vehicle computer. The exact board and SoC are38                     * not chosen yet. */39                assert constraint <'C-VEHICLE-NXP-REQUIRES-ZEPHYR'> nxpRequiresZephyr :> requiresFeatures {40                    doc /* This candidate configuration pairs the unresolved NXP41                         * target with Zephyr. */42                    in occurrence constrainedFeatures = new FeatureOperand(that, zephyr);43                }44                assert constraint <'C-VEHICLE-NXP-REQUIRES-NATIVE-ZEPHYR'> nxpRequiresNativeZephyr :> requiresFeatures {45                    doc /* Zephyr is modeled as native RTOS execution, not46                         * OCI-container execution. */47                    in occurrence constrainedFeatures = new FeatureOperand(that, nativeZephyr);48                }49            }50            #feature occurrence <'F-VEHICLE-COMPUTE-NONE'> noConcreteComputeNode[0..1] :> computeNode default null {51                doc /* No concrete compute target is chosen yet. */52                assert constraint <'C-VEHICLE-NO-COMPUTE-REQUIRES-NO-OS'> noComputeRequiresNoOperatingSystem :> requiresFeatures {53                    doc /* An unresolved target must not imply a realized operating54                         * system. */55                    in occurrence constrainedFeatures = new FeatureOperand(that, noConcreteOperatingSystem);56                }57                assert constraint <'C-VEHICLE-NO-COMPUTE-REQUIRES-NO-RUNTIME'> noComputeRequiresNoRuntime :> requiresFeatures {58                    doc /* An unresolved target must not imply a realized runtime. */59                    in occurrence constrainedFeatures = new FeatureOperand(that, noConcreteExecutionRuntime);60                }61            }6263            #feature occurrence <'F-VEHICLE-OS'> operatingSystem[1] {64                doc /* The operating system of the vehicle target. */65            }66            #feature occurrence <'F-VEHICLE-OS-ZEPHYR-CANDIDATE'> zephyr[0..1] :> operatingSystem default null {67                doc /* Zephyr, an open-source real-time operating system. */68                assert constraint <'C-VEHICLE-ZEPHYR-REQUIRES-NXP'> zephyrRequiresNXP :> requiresFeatures {69                    doc /* No other Zephyr-capable vehicle compute target is70                         * currently modeled. */71                    in occurrence constrainedFeatures = new FeatureOperand(that, nxpVehicleCompute);72                }73            }74            #feature occurrence <'F-VEHICLE-OS-NONE'> noConcreteOperatingSystem[0..1] :> operatingSystem default null {75                doc /* No concrete operating system is chosen yet. */76            }7778            #feature occurrence <'F-VEHICLE-RUNTIME'> executionRuntime[1] {79                doc /* How the software runs on the vehicle target. */80            }81            #feature occurrence <'F-VEHICLE-RUNTIME-NATIVE-ZEPHYR-CANDIDATE'> nativeZephyr[0..1] :> executionRuntime default null {82                doc /* Software built into the Zephyr image that runs83                     * natively, not in containers. */84                assert constraint <'C-VEHICLE-NATIVE-ZEPHYR-REQUIRES-NXP'> nativeZephyrRequiresNXP :> requiresFeatures {85                    doc /* Prevents a partially resolved candidate configuration. */86                    in occurrence constrainedFeatures = new FeatureOperand(that, nxpVehicleCompute);87                }88            }89            #feature occurrence <'F-VEHICLE-RUNTIME-NONE'> noConcreteExecutionRuntime[0..1] :> executionRuntime default null {90                doc /* No concrete runtime is chosen yet. */91            }92        }93    }9495    #featureModel occurrence def VehicleTargetExecutionEnvironmentFeatureModel {96        doc /* The vehicle-target execution-environment feature model: the97             * feature tree, and the product-model projection that its98             * configurations generate. Each configuration specializes the tree99             * in its own file. */100        @ProductModelProjection {101            packageName = "DE4SDV_ExecutionEnvironments";102            ownerName = "VehicleTargetExecutionEnvironment";103            label = "vehicle-target execution-environment";104        }105        #featureTree occurrence vehicleTargetExecutionEnvironmentFeatureTree : VehicleTargetExecutionEnvironmentFeatureTree :> featureTrees;106    }107108    /*109     * Feature bindings: one per shared-asset variant, the variant as client110     * and the feature as supplier; every variant bound exactly once.111     */112    #FeatureBinding dependency computeNodeNXPVehicleComputeBinding113        from DE4SDV_ExecutionEnvironments::VehicleTargetExecutionEnvironment::computeNode::nxpVehicleCompute114        to VehicleTargetExecutionEnvironmentFeatureTree::environment::nxpVehicleCompute;115    #FeatureBinding dependency computeNodeNoConcreteComputeNodeBinding116        from DE4SDV_ExecutionEnvironments::VehicleTargetExecutionEnvironment::computeNode::noConcreteComputeNode117        to VehicleTargetExecutionEnvironmentFeatureTree::environment::noConcreteComputeNode;118119    #FeatureBinding dependency operatingSystemZephyrBinding120        from DE4SDV_ExecutionEnvironments::VehicleTargetExecutionEnvironment::operatingSystem::zephyr121        to VehicleTargetExecutionEnvironmentFeatureTree::environment::zephyr;122    #FeatureBinding dependency operatingSystemNoConcreteOperatingSystemBinding123        from DE4SDV_ExecutionEnvironments::VehicleTargetExecutionEnvironment::operatingSystem::noConcreteOperatingSystem124        to VehicleTargetExecutionEnvironmentFeatureTree::environment::noConcreteOperatingSystem;125126    #FeatureBinding dependency executionRuntimeNativeZephyrBinding127        from DE4SDV_ExecutionEnvironments::VehicleTargetExecutionEnvironment::executionRuntime::nativeZephyr128        to VehicleTargetExecutionEnvironmentFeatureTree::environment::nativeZephyr;129    #FeatureBinding dependency executionRuntimeNoConcreteExecutionRuntimeBinding130        from DE4SDV_ExecutionEnvironments::VehicleTargetExecutionEnvironment::executionRuntime::noConcreteExecutionRuntime131        to VehicleTargetExecutionEnvironmentFeatureTree::environment::noConcreteExecutionRuntime;132133    /*134     * Correspondence to the governed product-line scope: the family is the135     * deferred "vehicle runtime variability" of the governed scope. Until a136     * reviewed scope decision admits it, admission admits none of its137     * configurations, whatever their validity.138     */139    dependency vehicleTargetExecutionEnvironmentsCorrespondToVehicleRuntimeVariability140        from VehicleTargetExecutionEnvironmentFeatureTree141        to DE4SDV_AEBSProductLineScope::DeferredVariabilitySet::vehicleRuntimeVariability;142}143