Architecture Modeling - SPES 2020
Architecture Modeling - SPES 2020
Architecture Modeling - SPES 2020
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
temp occurs each<br />
50ms<br />
Delay between temp and control within<br />
[20ms,25ms]<br />
<strong>Architecture</strong> <strong>Modeling</strong><br />
Mapping<br />
Technical Perspective<br />
tempVal<br />
temp<br />
temp<br />
Data<br />
control<br />
Var1<br />
ECU<br />
Capture<br />
Task<br />
Scheduler<br />
Figure 4.11: Mapping: Proof Obligations<br />
airTemp<br />
CtrlTask<br />
havior of the mapping provides the necessary conversion in order to reason about the intended<br />
refinement relation between both representations of the component. Due to internal behavior of<br />
the mapping, confidence of the result of a refinement check also depends on the faithfulness of<br />
the mapping. For sake of traceability, mappings can be associated with contracts to allow formal<br />
specification of their behavior. When proof obligations are violated during the design process,<br />
mapping contracts may give means to reason about the faithfulness of the chosen behavior of<br />
the involved mappings.<br />
€<br />
€<br />
temp ∈ IN<br />
temp = 4⋅ temp 2 + 2⋅ temp 1 + temp 0<br />
€<br />
temp0 ,temp1 ,temp2 ∈{0,1}<br />
Capture<br />
AirTempSystem<br />
tempData<br />
control<br />
AirTempControl<br />
Figure 4.12: Mapping with Interface Refinement<br />
Two properties are essential when dealing with mappings:<br />
Completeness Contracts are always associated to components. More precisely, contracts are<br />
restricted to reason about the interface of the associated component. In order to obtain welldefined<br />
relations between contracts, mappings are required to establish port relations that are<br />
complete with respect to all associated contracts. If for example in Figure 4.10, only the right<br />
port of component AirTempSystem would be linked to the mapping, the component could<br />
not be replaced without provoking inconsistency of the model.<br />
Receptiveness Mappings are required to be receptive. Their internal behavior must not restrict<br />
any contracts of the observed model.<br />
control<br />
Var2<br />
tempSel<br />
64/ 156