Download pure::variants Eclipse Plug-in User`s Guide
Transcript
Element Relations 3.2.2. Element Restrictions Element restrictions are used to decide if an element is part of the resulting configuration. During model evaluation, an element cannot become part of a resulting configuration unless one of the restrictions defined on the element evaluates to true. Restrictions can not only be defined for elements but also for element attributes, attribute values, and relations. Detailed information about using restrictions is given in Section 3.5, “Model Evaluation”. 3.2.3. Element Relations pure::variants allows arbitrary 1:n relations between model elements (feature/family model elements) to be expressed. The graphical user interface provides access to the most commonly used relations. The extension interface allows additional relations to be accessed. Examples of the currently supported relations are requires, required_for, conflicts, recommends, discourages, cond_requires, and influences. Use the Relations page in the property dialog of a feature to specify feature relations. Table 7.5, “Supported Relations between Elements (I)” documents the supported relations and their meanings. 3.2.4. Element Attributes pure::variants uses attributes to specify additional information associated with an element. An attribute is a typed and named model element that can represent any kind of information (according to the values allowed by the type). An element may have any number of associated attributes. The attributes of a selected model element are evaluated and their values calculated during the model evaluation process. A simplified version of the element attribute meta-model is shown below. 13