textual-notation-of-model/packages/methods/de4sdv/de4sdv_product_line.sysml
0 view(s) · 15 declared member(s)
Source
1/*2 * DE4SDV reusable product-line semantic kernel.3 *4 * This package keeps product-line vocabulary out of feature-specific slices.5 * It follows the DE4SDV/ISO 26580-aligned distinction that common capabilities6 * are not features unless they distinguish member products.7 *8 * SysML v2 variability is modeled with native `variation` / `variant` notation:9 * a variation marks the varying definition or usage, and its owned variant10 * usages enumerate allowed choices. Do not introduce a project-local11 * variation-point part definition in place of native SysML v2 variation semantics.12 */1314package DE4SDV_ProductLine {15 doc instantiatesCanonicalArchitectureOntologyDefinition /* Explicit binding from a composite member product's contained architecture instances16 * (its logical-system and software usages) to the canonical architecture usages whose17 * allocation and evidence records govern them. The modeled dependencies originate from18 * the contained usages, not from the member-product root; the executable mapping must19 * therefore define which elements carry this relationship and how a query walks it before20 * any product-level query reachability is claimed. Vocabulary only for now: no21 * sysml_mapping is declared because a generic dependency traversal cannot distinguish22 * canonical-architecture bindings from ordinary part-to-part dependencies without23 * inventing a naming heuristic. Declaring an executable mapping requires an explicit24 * canonical-usage selector (for example an API-side allowlist of canonical packages), not25 * a name-based filter. The binding does not restate allocations at product level and does26 * not make a composite projection a resolved configured product. */27 comment about instantiatesCanonicalArchitectureOntologyDefinition /* not queryable; no product-to-canonical reachability claimed. Vocabulary only; no28 * executable mapping and no canonical-package selector are introduced. The selector29 * discussion in the retained definition is a future prerequisite, not implementation in30 * this package. */313233 doc FeatureConfigurationOntologyDefinition /* A selection of features that describes a member34 * product or scenario. Its variation choices are derived from the selected features.35 * Common capabilities are not configuration choices: admission against the governed36 * scope checks that the selections represent the common content. */37 comment about FeatureConfigurationOntologyDefinition /* Definition text is model-resident.38 * Configurations are recorded where the configuration authority of ADR 0022 puts them: as39 * Bill-of-Features records until the switch, and as PLEML feature configurations from the40 * switch. This package adds no selection algebra and no consumer wiring. */414243 doc VariantOntologyDefinition /* A native SysML v2 variant usage owned by a variation point and representing one allowed44 * choice for that variation. */45 comment about VariantOntologyDefinition /* Native SysML variant usage owned by a variation remains the representation; no new46 * reusable variant class or selection authority. */474849 doc VariationPointOntologyDefinition /* A native SysML v2 variation definition or usage that identifies an element whose50 * allowed instances vary across product-line configurations. */51 comment about VariationPointOntologyDefinition /* Native SysML variation definition/usage remains the representation, not a generic52 * variation-point part taxonomy or configurator adoption. */535455 /* Vocabulary roles of the reviewed product-line relationships.56 * The ontology declares these relationships by domain and range only; no57 * authored definition text exists, so these comments record the58 * model-resident vocabulary home and claim boundary, not a new meaning. The59 * comment names end in VocabularyRole and never reuse a predicate, class or60 * declaration name, because named comments are package members re-exported by61 * wildcard imports. */6263 comment specifiesFeatureVocabularyRole about ProductLineFeatureCandidate /* Vocabulary role64 * of the reviewed relationship specifiesFeature: domain Requirement (kernel65 * RequirementCandidate), range Feature (kernel ProductLineFeatureCandidate).66 * Vocabulary only: no runtime traversal, no sysml_mapping, no semantic-support67 * claim and no PLEML dependency. A native realization is deferred until feature68 * usages exist in models; any realization is an explicit signature/migration69 * review. */7071 comment specifiesCommonCapabilityVocabularyRole about CommonProductLineCapability /* Vocabulary72 * role of the reviewed relationship specifiesCommonCapability: domain Requirement73 * (kernel RequirementCandidate), range CommonCapability (kernel74 * CommonProductLineCapability). Vocabulary only: no runtime traversal, no75 * sysml_mapping, no semantic-support claim and no PLEML dependency. Any future76 * native realization is decided together with specifiesFeature. */7778 comment variesAtVocabularyRole about ProductLineFeatureCandidate /* Vocabulary role of the79 * reviewed relationship variesAt: domain Feature (kernel80 * ProductLineFeatureCandidate), range VariationPoint (native SysML v2 variation81 * definition/usage; see VariationPointOntologyDefinition). The identity is kept as82 * navigation vocabulary only. Its model authority is the native variation83 * structure: a realization is a derived fact over native variation/variant84 * membership, and its evidence gate is a feature usage that participates in a85 * variation's variant membership. The governed product-line scope meets that gate: its86 * admitted alternatives are variants typed by feature candidates. variesAt still stays87 * vocabulary-only until a consumer needs it and a reviewed derived realization has88 * exact-revision traversal evidence: no runtime traversal, no sysml_mapping, no89 * variation-point part taxonomy, no YAML edge mapping and no PLEML dependency. The90 * switch of ADR 0022 does not change this grounding: a PLEML feature binding of a91 * variant is not that evidence gate. */9293 comment FeatureConfigurationVocabularyRole about FeatureConfigurationOntologyDefinition /* Vocabulary94 * only. No configurator authority; configuration authority follows ADR 0022. Until the95 * switch, the YAML Feature Catalogue and Bill-of-Features configuration decision layer,96 * evaluated by the configurator, selects the features. From the switch, the PLEML97 * feature configurations, evaluated by the DE4SDV evaluator, select them, and the class98 * grounds on the pinned PLEML library definition FeatureConfiguration. The served kernel99 * mapping stays external exactly while that library is outside the API baseline100 * (ADR 0011). This package declares no FeatureConfiguration definition, no selection101 * algebra and no model relationship. */102103 comment appliesToMemberProductVocabularyRole about FeatureConfigurationOntologyDefinition /* Vocabulary104 * role of the reviewed relationship appliesToMemberProduct: domain105 * FeatureConfiguration, range MemberProduct (kernel ProductLineMemberProduct).106 * Vocabulary only, with no sysml_mapping and no runtime traversal. No configurator107 * authority; configuration authority follows ADR 0022. The relationship is a DE4SDV108 * derived fact: a configuration applies to each member product whose definition owns a109 * usage typed by the part definition that the configuration's product-model projection110 * declares. Until the switch, the configurator generates that part definition under the111 * Bill-of-Features name. From the switch, the PLEML feature configuration's owned112 * ProductModelProjectionName annotation names it, and the generator keeps the name113 * (ADR 0022 decision 5). A configuration whose projection no member product uses114 * applies to no member product, and the governed scope stays the admission authority.115 * Existing runtime exclusions are preserved verbatim and are not collapsed into116 * hasSubject. */117118 comment selectsFeatureVocabularyRole about FeatureConfigurationOntologyDefinition /* Vocabulary119 * role of the reviewed relationship selectsFeature: domain FeatureConfiguration,120 * range Feature (kernel ProductLineFeatureCandidate). Vocabulary only, with no121 * sysml_mapping and no runtime traversal. No configurator authority; configuration122 * authority follows ADR 0022. The relationship is a DE4SDV derived fact: a123 * configuration selects options of the catalogue, and it selects the governed Feature124 * that those options realize through their correspondences to the governed product-line125 * scope, as the governed-scope admission check derives it. Until the switch, the126 * options are the Bill-of-Features selections, evaluated by the configurator. From the127 * switch, they are the features that a PLEML feature configuration selects by128 * redefining each with multiplicity 1. */129130 comment selectsVariantVocabularyRole about FeatureConfigurationOntologyDefinition /* Vocabulary131 * role of the reviewed relationship selectsVariant: domain FeatureConfiguration,132 * range Variant (native SysML v2 variant usage; see VariantOntologyDefinition).133 * Vocabulary only. No configurator authority; configuration authority follows ADR 0022.134 * A configuration selects no variant directly: its variants are derived from its135 * selected features, through the Bill-of-Features mappings and the configurator until136 * the switch, and through the PLEML feature bindings and the DE4SDV derivation rules137 * from the switch. Native variant usages own the choice space. No new model138 * relationship kind, no sysml_mapping and no runtime traversal; model-native configured139 * products use the native variant-selection construct of ADR 0006. */140141 comment configuredByVocabularyRole about ProductLineConfiguredProduct /* Vocabulary142 * role of the reviewed relationship configuredBy: domain ConfiguredProduct (kernel143 * ProductLineConfiguredProduct), range FeatureConfiguration (the pinned PLEML144 * definition FeatureConfiguration). The relationship maps the configured product onto145 * the PLEML feature configuration through the ontology, so the kernel imports no PLEML146 * package (ADR 0022 confines PLEML imports to the feature models). Vocabulary only,147 * with no sysml_mapping and no runtime traversal. No configurator authority;148 * configuration authority follows ADR 0022. The relationship is a DE4SDV derived fact.149 * PLEML binds the product model of a member product to its feature configuration with150 * its FeatureConfigurationBinding metadata, but no DE4SDV model outside the feature151 * models applies PLEML metadata. The derivation reads the effective part usages of the152 * configured product: its own usages and the inherited usages that it does not153 * redefine. A configured product is configured by a feature configuration when one of154 * these usages is typed by the part definition of that configuration's product-model155 * projection. The configuration's owned ProductModelProjectionName annotation names156 * that part definition. The derivation binds the generated part definition by157 * validated identity, never by partDefinitionName alone. Exactly one feature158 * configuration configures a configured product. A configuration can configure more159 * than one configured product. A specialization of a configured product that adds160 * System 2 instrumentation, such as a test article, is configured by the same161 * configuration and counts for the phase 9 of its increment. It never becomes a162 * product-line member, because membership is never inferred from specializing a member163 * definition. */164165166 part def ProductLine {167 doc /* A family of related member products managed through shared assets and variability. */168 }169170 part def SDVProductLine :> ProductLine {171 doc /* Software-defined vehicle product line managed through DE4SDV product-line semantics. */172 }173174 part def ProductLineMemberProduct {175 doc /* A product variant that belongs to a product line; the configured product of an admitted configuration specializes its definition. */176 }177178 part def ProductLineConfiguredProduct {179 doc /* A product that a feature configuration configures, the main output of phase 9. It180 * composes, by its own part or by a part it inherits, the product-model projection181 * that the configurator generates from the evaluation receipt of the configuration,182 * and it adds the shared assets and the realizations that the projection does not183 * own. The selections stay in the feature configuration and in the projection: the184 * configured product records none. A configured product whose configuration is185 * admitted also specializes the definition of its member in the governed scope. A186 * configured product that is not admitted specializes no member definition.187 * Configuration evidence only: it proves no runtime behavior and satisfies no188 * requirement. */189 }190191 part def ProductLineCharacteristic {192 doc /* The product-line classification base: a characteristic is a common capability, a feature candidate, deferred scope, or a native SysML v2 variation choice. */193 }194195 part def CommonProductLineCapability :> ProductLineCharacteristic {196 private doc ontologyDefinition /* A capability or characteristic present in all relevant member products; not a feature197 * unless it distinguishes variants. */198 doc /* Capability required across member products; not a feature unless it distinguishes member products. */199 comment /* Phase 3 instantiates no common capability: core elements are common by200 * default and get no record, because ClassifyCapabilities records only201 * feature candidates. The definition stays for the ontology's202 * CommonCapability class, the disjointness below and the records that203 * use it. */204 /* Feature/common-capability disjointness (ADR 0020, decision 7) as a checked205 * constraint: the licensed toolchain rejects the standalone KerML disjoining in a206 * SysML package, so the axiom is a checked constraint on both definitions. */207 assert constraint notAFeatureCandidate { not (that istype ProductLineFeatureCandidate) }208 }209210 part def ProductLineFeatureCandidate :> ProductLineCharacteristic {211 private doc ontologyDefinition /* A distinguishing characteristic expressing variability among member products. In the212 * kernel a feature is a candidate until member-product variability is shown; it must213 * not be accepted as a feature before that. */214 doc /* Candidate distinguishing characteristic; must not be accepted as a feature until member-product variability is shown. */215 comment /* The ontology Feature stays this kernel definition before and after the switch216 * of ADR 0022, and R001 governs it. A feature of a PLEML feature model is a217 * distinct element: a configurable option of the catalogue, never itself a218 * Feature and never typed by a product-line characteristic. A correspondence in219 * the feature models relates an option to the governed element it restates, and220 * the governed scope classifies that element. An option relates to a Feature221 * only through a correspondence to a governed feature candidate, as the222 * middleware, operating-system and hypervisor options that realize an admitted223 * alternative do. Options that correspond only to common content, reference-only224 * alternatives or deferred variability, grouping options and options without a225 * governed element are PLEML features that relate to no Feature. The derived226 * adapter is no PLEML feature: its variant is derived, never selected (ADR 0022227 * decision 4). */228 assert constraint notACommonCapability { not (that istype CommonProductLineCapability) }229 }230231 part def DeferredProductLineScope :> ProductLineCharacteristic {232 doc /* Product-line scope deliberately deferred from the current increment, including recorded gaps. */233 }234235 part def ProductLineVariantChoice :> ProductLineCharacteristic {236 doc /* Descriptive project vocabulary for variant choices in YAML/Markdown traces. Concrete SysML variant usages should be represented with native `variant` membership and should not rely on this type as a substitute for variation semantics. */237 }238239 part def DeferredVariantChoice :> ProductLineVariantChoice {240 doc /* Descriptive vocabulary for unresolved variant choices outside a concrete SysML variation body; not an accepted product configuration choice. */241 }242243 /*244 * Generic native variation definition for unresolved product-line choices.245 *246 * SysML v2 requires the owned members of a variation definition/usage to be247 * variant usages. Keep the body limited to `variant` usages.248 */249 variation part def DeferredProductLineVariation {250 variant part deferredChoice;251 }252}253