Research Article

Context-Aware Adaptation of Component-Based Systems: An Active Repository Approach

Table 1

Mathematic model.

Indexes

i,jComponent indexes
𝑘 Required interface index
LProvided interface index

Parameters

CSet of components in the repository, 𝐶 0 is the system itself
𝐴 𝑖 Set of required interfaces of the component i
𝑃 𝑖 Set of the provided interfaces of the component i
𝑀 𝑖 𝑙 Maximum connections supported by the interface l of the component i
𝑉 𝑖 Cost when using component i
𝐷 𝑘 𝑙 1 if the required interface k is compatible with the provided interface l

Decision variables

𝑋 𝑖 1 if the component i was used in the current configuration; 0 otherwise
𝑌 𝑖 𝑘 𝑗 𝑙 1 if the required interface 𝑘 of the component 𝑖 is connected in the provided interface 𝑙 of component 𝑗 ; 0 otherwise