Information Technology Reference
In-Depth Information
5.2. Binding models and constraint models
The mechanisms we propose are based on what we
have named
constraint models
and
binding models
.To
facilitate the understanding of our proposal, first we introduce
our mechanism for configuring products by using binding
models. Afterwards, we present our approach to improve the
expressivepowerofvariabilityinMD-SPLsbyusingconstraint
models.
5.2.1.
Binding models
We call the relationship between a model element and
a feature a
binding
. For example, let us assume that the
livingRoom
(see Figure 4.5) has
Air Conditioning
as
environmental control mechanism (see Figure 4.11). A binding
B
is a pair
B =E,F]
composed of a model element
E
and a feature
F
, where
F
is either a
SolitaryFeature
or
a
GroupedFeature
. For example, a product designer can
create a binding relating the
livingRoom
and the
Automatic
Windows
feature,
B =[
livingRoom
,
Automatic Windows
]
.
D
EFINITION
5.1.-
We define a
binding model
as the set of
bindings defined by a product designer between a model that
conforms to a metamodel and a feature model, which conforms
to a feature metamodel.
Figure 5.1 presents a binding model example for our case
study. This binding model is created between the domain
model from Figure 4.5 and the facilities feature model from
Figure 4.11.
binding1
configures the
livingRoomD1
to
have
Keypad
as
Lock Door Control
.
binding2
denotes the
designer selection of
Air Conditioning
in the
livingRoom
as environmental control system. Finally,
binding3
defines
that the
mainRoomW1
is configured to be an
Automatic
Window
. Chapter 6 will present tools to help in binding and
configuring products in FieSta; it also gives an example of the
configuration and derivation of a Smart-Home system of our
Search WWH ::
Custom Search