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

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

Source

1/*2 * PLEML feature model of the engineering 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 * engineering_execution_environments.yaml, which retired at step S7. The7 * family configures System 2 engineering, simulation and verification hosts;8 * it is not System 1 product variability. Its configurations are in9 * ../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_EngineeringExecutionEnvironmentFeatureModel {21    private import PLEML::*;22    private import DE4SDV_ProductLineDerivation::*;2324    #featureTree occurrence def <'PL-ENGINEERING-EXECUTION-ENVIRONMENT'> EngineeringExecutionEnvironmentFeatureTree {25        doc /* Configurable System 2 engineering, simulation, and verification26             * hosts, the root feature. Every feature keeps the PLEML27             * Development binding time. */2829        #feature occurrence <'F-ENG-ENVIRONMENT'> environment[1] {30            doc /* A mandatory grouping feature that holds the compute,31                 * operating-system and runtime alternative groups. */3233            #feature occurrence <'F-ENG-COMPUTE'> computeNode[1] {34                doc /* The compute hardware of the engineering host. */35            }36            #feature occurrence <'F-ENG-COMPUTE-JETSON-ORIN-NANO'> jetsonOrinNano[0..1] :> computeNode default null {37                doc /* The NVIDIA Jetson Orin Nano Developer Kit Super (838                     * GiB, ARM64), the maintained Jetson host. */39                assert constraint <'C-ENG-JETSON-REQUIRES-TEGRA-LINUX'> jetsonRequiresTegraLinux :> requiresFeatures {40                    doc /* The maintained Jetson target is modeled with Ubuntu/Tegra41                         * Linux, not macOS; exact identity is inspected rather than42                         * historical test provenance. */43                    in occurrence constrainedFeatures = new FeatureOperand(that, ubuntu2204Tegra);44                }45                assert constraint <'C-ENG-JETSON-REQUIRES-NATIVE-OCI'> jetsonRequiresNativeOCI :> requiresFeatures {46                    doc /* INC-AEBS-009A used native Linux ARM64 OCI execution. */47                    in occurrence constrainedFeatures = new FeatureOperand(that, nativeLinuxArm64OCI);48                }49            }50            #feature occurrence <'F-ENG-COMPUTE-APPLE-SILICON'> appleSiliconMac[0..1] :> computeNode default null {51                doc /* An Apple Silicon Mac (M-series, ARM64) as the52                     * engineering host. */53                assert constraint <'C-ENG-APPLE-REQUIRES-MACOS'> appleSiliconRequiresMacOS :> requiresFeatures {54                    doc /* The candidate denotes an Apple Silicon macOS engineering55                         * host. */56                    in occurrence constrainedFeatures = new FeatureOperand(that, macOSAppleSilicon);57                }58                assert constraint <'C-ENG-APPLE-REQUIRES-VIRTUAL-LINUX-OCI'> appleSiliconRequiresVirtualizedOCI :> requiresFeatures {59                    doc /* Linux containers on macOS execute through virtualization and60                         * are not native-Linux evidence. */61                    in occurrence constrainedFeatures = new FeatureOperand(that, virtualizedLinuxArm64OCIOnMacOS);62                }63            }64            #feature occurrence <'F-ENG-COMPUTE-INTEL-X86-64-NESTED-KVM'> intelX8664NestedKvmHost[0..1] :> computeNode default null {65                doc /* An Intel x86-64 Linux host with nested66                     * virtualization, for the AAOS build and Cuttlefish. */67                assert constraint <'C-ENG-AOSP-HOST-REQUIRES-LINUX-X86-64'> aospHostRequiresLinuxX8664 :> requiresFeatures {68                    doc /* The candidate AAOS build host requires a Linux x86_6469                         * environment. */70                    in occurrence constrainedFeatures = new FeatureOperand(that, linuxX8664AOSPBuild);71                }72                assert constraint <'C-ENG-AOSP-HOST-REQUIRES-NESTED-KVM'> aospHostRequiresNestedKvm :> requiresFeatures {73                    doc /* The candidate Cuttlefish path requires a nested-KVM-capable74                         * runtime. */75                    in occurrence constrainedFeatures = new FeatureOperand(that, nestedKvmCuttlefish);76                }77            }7879            #feature occurrence <'F-ENG-OS'> operatingSystem[1] {80                doc /* The operating system of the engineering host. */81            }82            #feature occurrence <'F-ENG-OS-UBUNTU-2204-TEGRA'> ubuntu2204Tegra[0..1] :> operatingSystem default null {83                doc /* Ubuntu 22.04 with the NVIDIA Tegra kernel and84                     * platform support. */85            }86            #feature occurrence <'F-ENG-OS-MACOS-APPLE-SILICON'> macOSAppleSilicon[0..1] :> operatingSystem default null {87                doc /* macOS on Apple Silicon. */88            }89            #feature occurrence <'F-ENG-OS-LINUX-X86-64-AOSP'> linuxX8664AOSPBuild[0..1] :> operatingSystem default null {90                doc /* Linux on x86-64, set up for the AAOS build. */91            }9293            #feature occurrence <'F-ENG-RUNTIME'> executionRuntime[1] {94                doc /* How the engineering software runs on the host. */95            }96            #feature occurrence <'F-ENG-RUNTIME-NATIVE-LINUX-ARM64-OCI'> nativeLinuxArm64OCI[0..1] :> executionRuntime default null {97                doc /* OCI containers that run natively on ARM64 Linux,98                     * with a Docker-compatible runtime. */99            }100            #feature occurrence <'F-ENG-RUNTIME-VIRTUAL-LINUX-ARM64-OCI-MACOS'> virtualizedLinuxArm64OCIOnMacOS[0..1] :> executionRuntime default null {101                doc /* ARM64 Linux OCI containers that run in a Linux VM on102                     * macOS. */103            }104            #feature occurrence <'F-ENG-RUNTIME-NESTED-KVM-CUTTLEFISH'> nestedKvmCuttlefish[0..1] :> executionRuntime default null {105                doc /* Cuttlefish, the virtual Android device, in nested106                     * KVM. */107            }108        }109    }110111    #featureModel occurrence def EngineeringExecutionEnvironmentFeatureModel {112        doc /* The engineering execution-environment feature model: the feature113             * tree, and the product-model projection that its configurations114             * generate. Each configuration specializes the tree in its own115             * file. */116        @ProductModelProjection {117            packageName = "DE4SDV_ExecutionEnvironments";118            ownerName = "EngineeringExecutionEnvironment";119            label = "engineering execution-environment";120        }121        #featureTree occurrence engineeringExecutionEnvironmentFeatureTree : EngineeringExecutionEnvironmentFeatureTree :> featureTrees;122    }123124    /*125     * Feature bindings: one per shared-asset variant, the variant as client126     * and the feature as supplier; every variant bound exactly once.127     */128    #FeatureBinding dependency computeNodeJetsonOrinNanoBinding129        from DE4SDV_ExecutionEnvironments::EngineeringExecutionEnvironment::computeNode::jetsonOrinNano130        to EngineeringExecutionEnvironmentFeatureTree::environment::jetsonOrinNano;131    #FeatureBinding dependency computeNodeAppleSiliconMacBinding132        from DE4SDV_ExecutionEnvironments::EngineeringExecutionEnvironment::computeNode::appleSiliconMac133        to EngineeringExecutionEnvironmentFeatureTree::environment::appleSiliconMac;134    #FeatureBinding dependency computeNodeIntelX8664NestedKvmHostBinding135        from DE4SDV_ExecutionEnvironments::EngineeringExecutionEnvironment::computeNode::intelX8664NestedKvmHost136        to EngineeringExecutionEnvironmentFeatureTree::environment::intelX8664NestedKvmHost;137138    #FeatureBinding dependency operatingSystemUbuntu2204TegraBinding139        from DE4SDV_ExecutionEnvironments::EngineeringExecutionEnvironment::operatingSystem::ubuntu2204Tegra140        to EngineeringExecutionEnvironmentFeatureTree::environment::ubuntu2204Tegra;141    #FeatureBinding dependency operatingSystemMacOSAppleSiliconBinding142        from DE4SDV_ExecutionEnvironments::EngineeringExecutionEnvironment::operatingSystem::macOSAppleSilicon143        to EngineeringExecutionEnvironmentFeatureTree::environment::macOSAppleSilicon;144    #FeatureBinding dependency operatingSystemLinuxX8664AOSPBuildBinding145        from DE4SDV_ExecutionEnvironments::EngineeringExecutionEnvironment::operatingSystem::linuxX8664AOSPBuild146        to EngineeringExecutionEnvironmentFeatureTree::environment::linuxX8664AOSPBuild;147148    #FeatureBinding dependency executionRuntimeNativeLinuxArm64OCIBinding149        from DE4SDV_ExecutionEnvironments::EngineeringExecutionEnvironment::executionRuntime::nativeLinuxArm64OCI150        to EngineeringExecutionEnvironmentFeatureTree::environment::nativeLinuxArm64OCI;151    #FeatureBinding dependency executionRuntimeVirtualizedLinuxArm64OCIOnMacOSBinding152        from DE4SDV_ExecutionEnvironments::EngineeringExecutionEnvironment::executionRuntime::virtualizedLinuxArm64OCIOnMacOS153        to EngineeringExecutionEnvironmentFeatureTree::environment::virtualizedLinuxArm64OCIOnMacOS;154    #FeatureBinding dependency executionRuntimeNestedKvmCuttlefishBinding155        from DE4SDV_ExecutionEnvironments::EngineeringExecutionEnvironment::executionRuntime::nestedKvmCuttlefish156        to EngineeringExecutionEnvironmentFeatureTree::environment::nestedKvmCuttlefish;157158    /*159     * Correspondence to the governed product-line scope: the whole family is160     * the excluded System 2 concern "engineering execution environments",161     * outside System 1 product variability (ADR 0014). Admission therefore162     * admits none of its configurations, whatever their validity.163     */164    dependency engineeringExecutionEnvironmentsCorrespondToExcludedSystem2Concern165        from EngineeringExecutionEnvironmentFeatureTree166        to DE4SDV_AEBSProductLineScope::ExcludedSystem2ConcernSet::engineeringExecutionEnvironments;167}168