Architecture Modeling - SPES 2020
Architecture Modeling - SPES 2020
Architecture Modeling - SPES 2020
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Architecture</strong> <strong>Modeling</strong><br />
Definition 6.3.7 (Directed Contract) Let the interface I of a component be given. A contract<br />
C = (As,Aw,G) over I is directed w.r.t. I if As and Aw are receptive on the outports in I and G is<br />
receptive on the inports in I.<br />
Directed contracts may be viewed as the most natural form of utilizing the contract format<br />
for specifications. This is supported by the observation that directed contracts are strongly<br />
consistent.<br />
Lemma 6.3.8 (Directedness and Consistency) Let the interface I of a component and a contract<br />
C = (As,Aw,G) be given.<br />
1. If the guarantee of C is receptive on the inports in I, then C is strongly consistent.<br />
2. A directed contract is strongly consistent.<br />
Proof:<br />
Ad 1: Since [[C]] ⊇ [[G]] and the receptive kernel of G w.r.t. the inports is nonempty, also the<br />
receptive kernel of C is nonempty.<br />
Ad 2: Follows immediately from 1. <br />
An important operation to be performed on contracts is conjunction. This might be useful to<br />
combine specifying contracts of one component, or to derive a contract valid for a composition<br />
from part contracts. Though one can always find a contract equivalent to the conjunction of a set<br />
of contracts, properties like directedness are not automatically retained. We provide different<br />
schemata for performing the conjunction.<br />
Lemma 6.3.9 (Contract Conjunction) Let (tt,B,G) and (tt,F,H) be contracts. Then<br />
are equivalent to (tt,B,G) ∧ (ff ,F,H).<br />
6.4 Formalization of Typical Design Steps<br />
(tt,BG + FH , GH) (6.1)<br />
(tt,BF + BG + FH , GH) (6.2)<br />
(tt,B + F , BH + FG + GH) (6.3)<br />
The parallel composition of components has a logical counterpart on the level of contracts.<br />
Lemma 6.4.1 (Logical Composition) Let a hierarchically defined component M with port set<br />
P, parts Mi, i = 1,...,n, and connecting substitutions (ρ1,...,ρn,ρ be given. Let the parts be<br />
specified by sets of contracts Ci, j, i = 1,...,n, j = 1,...ni. Then<br />
<br />
n ni <br />
n<br />
Mi |= Ci, j ⇒ M |=<br />
i=1 j=1<br />
i=1<br />
ni<br />
<br />
j=1<br />
Ci, j<br />
<br />
ρi<br />
<br />
ρ ↓P .<br />
The lemma follows from Definition 6.2.6. It immediately provides the criterion for virtual<br />
integration testing.<br />
147/ 156