textual-notation-of-model/packages/methods/de4sdv/de4sdv_product_line_derivation.sysml
0 view(s) · 10 declared member(s)
Source
1/*2 * DE4SDV product-line derivation semantic kernel.3 *4 * Metadata definitions that a feature model and its configurations apply:5 * the shared-asset variations that no configuration selects (derived6 * variations), the rules that derive their variants, the product-model7 * projection a feature model generates, the projection name of each8 * configuration, and the features whose binding time is not yet decided.9 *10 * In these definitions a feature is a feature of a PLEML feature model, not11 * the ontology class Feature (kernel ProductLineFeatureCandidate), as the12 * ontology classification of ADR 0022 decision 8 states.13 *14 * The definitions annotate native SysML v2 variations, dependencies and the15 * occurrences of a feature model. They declare no variation-point part16 * definition and no selection record, and they import no PLEML package17 * (ADR 0022 confines PLEML imports to the feature models). Kernel identity18 * follows ADR 0011: each definition is an ontology class that ingestion binds19 * by metatype, declared name and this source file.20 *21 * Authority: since the switch of ADR 0022 the PLEML feature models and the22 * derivation rules that apply these definitions are the derivation authority23 * (ADR 0022 decision 4). The YAML catalogue and the configurator's24 * derived_asset_selections were a non-authoritative shadow until step S725 * retired them. Only the feature models and their configurations apply these26 * definitions: a repository test refuses any other file of the model roots27 * that imports this package or applies them.28 */2930package DE4SDV_ProductLineDerivation {31 private import ScalarValues::String;3233 metadata def DerivedVariation {34 doc /* Declares that a shared-asset variation is derived: no configuration selects its35 * variant, and its derivation rules derive the variant from the selected features36 * of the feature model. Applied to a dependency with exactly one client, the37 * variation, whose suppliers are its source features: the features of the feature38 * model whose selected alternative the rules condition on. Supplier order carries39 * no meaning. A valid configuration derives exactly one variant of the variation:40 * exactly one of its rules must match, and a configuration that matches no rule or41 * several is rejected. A derived variant is never a feature and never a manual42 * product choice, so a feature binding or configuration entry that targets one is43 * refused. The short name of the dependency is the stable identity of the44 * derivation. Feature here means a feature of a PLEML feature model, not the45 * ontology class Feature. */46 :> annotatedElement : SysML::Dependency;47 }4849 metadata def DerivationRule {50 doc /* A rule that derives one variant of a derived variation. Applied to a dependency51 * with exactly one client, that variant, whose suppliers are the premises: one52 * premise per source feature of the variation, each a direct sub-feature of a53 * distinct source feature, that is, a feature of the feature model with an54 * authored subsetting of it. Supplier order carries no meaning. The client is a55 * variant of a variation that exactly one derived variation names; a rule without56 * one is invalid. The rule matches a valid configuration that selects every57 * premise; derivation applies to valid configurations only. */58 :> annotatedElement : SysML::Dependency;59 }6061 metadata def ProductModelProjection {62 doc /* Feature-model metadata naming the product-model projection that each63 * configuration of the annotated feature model generates. ownerName is the64 * shared-asset part definition that owns the variations the feature bindings and65 * derived variations resolve, and packageName is the package that owns it; every66 * generated product model specializes that part definition. label names the67 * projection in the generated text. The names identify nothing: they must agree68 * with the owner of the bound and derived variants. */69 :> annotatedElement : SysML::OccurrenceDefinition;70 :> annotatedElement : SysML::OccurrenceUsage;71 attribute packageName : String {72 doc /* The package that owns the shared-asset part definition. */73 }74 attribute ownerName : String {75 doc /* The shared-asset part definition that every generated product model specializes. */76 }77 attribute label : String {78 doc /* The projection label in the generated text. */79 }80 }8182 metadata def ProductModelProjectionName {83 doc /* Configuration metadata: the name of the part definition that the product-model84 * projection of the annotated configuration declares. It annotates the85 * configuration and is not one of its features. */86 :> annotatedElement : SysML::OccurrenceDefinition;87 :> annotatedElement : SysML::OccurrenceUsage;88 attribute partDefinitionName : String {89 doc /* The name of the generated product-model part definition. */90 }91 }9293 metadata def UnassignedBindingTime {94 doc /* Feature metadata: the binding time of the annotated feature of the feature model95 * is not yet decided. The feature keeps its default binding time, and no96 * configuration verdict depends on the annotation. An annotated feature does not97 * redefine bindingTime; a feature that does both is refused. A feature that a98 * feature binding, a derived variation or a derivation rule names has a decided99 * binding time, so it never carries this annotation. Feature here means a feature100 * of a PLEML feature model, not the ontology class Feature. */101 :> annotatedElement : SysML::OccurrenceDefinition;102 :> annotatedElement : SysML::OccurrenceUsage;103 }104}105