Skip to content

Commit 3175c33

Browse files
committed
Embedded link to submodels page
1 parent bbff16c commit 3175c33

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ The following feature model in UVL syntax enriches the previous version with new
8282
</code>
8383
</pre>
8484

85+
## Import Mechanism
86+
UVL supports referencing submodels for composing larger UVL models. See [here](https://universal-variability-language.github.io/language/submodels) for more details
87+
8588
## Examples
8689
A set of further example UVL models is available [here](https://github.com/Universal-Variability-Language/uvl-models). We are happy to merge your examples if you want to [contribute](https://github.com/Universal-Variability-Language/uvl-models/pulls).
8790

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Larger variability models may be hard to overview. To simplify viewing and editi
44

55
Consider our sandwich model as example:
66

7+
<pre>
78
<code>
89
<b>features</b>
910
Sandwich
@@ -18,21 +19,25 @@ Consider our sandwich model as example:
1819
<b>constraints</b>
1920
Ketchup => Cheese
2021
</code>
22+
</pre>
2123

2224
Here, it may make sense to decompose the Sauce into a separate UVL model:
2325

26+
<pre>
2427
<code>
2528
<b>features</b>
2629
Type
2730
<b>alternative</b>
2831
Ketchup
2932
Mustard
3033
</code>
34+
</pre>
3135

3236
Suppose we stored this submodel in a path ./submodels/Sauces.uvl
3337

3438
We can then use this submodel by using the **imports** keyword in a composed model. Further, we can reference the root feature of the imported model at any point the feature tree.
3539

40+
<pre>
3641
<code>
3742
<b>imports</b>
3843
submodels.Sauces as Sauce
@@ -45,4 +50,5 @@ We can then use this submodel by using the **imports** keyword in a composed mod
4550
Sauce.Type
4651
<b>constraints</b>
4752
Sauce.Ketchup => Cheese
48-
</code>
53+
</code>
54+
</pre>

0 commit comments

Comments
 (0)