IIST and UNU - UNU-IIST - United Nations University
IIST and UNU - UNU-IIST - United Nations University
IIST and UNU - UNU-IIST - United Nations University
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Linking Duration Calculus <strong>and</strong> TLA 10<br />
where Leak is a predicate denoting whether there is leaking in a state. For simplicity, we rewrite<br />
the specification using st<strong>and</strong>ard abbreviations:<br />
D (l 30 ⇒ ∫ Leak 4)<br />
where l ̂= |i| <strong>and</strong> ∫ Leak ̂= ∫ i<br />
Leak(x(t)) dt .<br />
The following two concrete DC specifications form a common design implementing the above<br />
abstract specification:<br />
(4)<br />
D (⌈Leak⌉⇒ |i| 4) <strong>and</strong> D (⌈Leak⌉ ⌈¬Leak⌉ ⌈Leak⌉ ⇒ |i| 26)<br />
where the real-time function x(t) records the state at the time point t , the specification<br />
⌈Leak⌉ ̂= ( ∫ Leak = l) describes a period with gas leak (at “most” time points of in the period<br />
[17]), <strong>and</strong> ⌈¬Leak⌉ ̂= ( ∫ Leak = l) describes a period almost without leak. The first<br />
specification requires any leaking period to be bounded by 4 seconds; the second specification<br />
states that, during any interval, the period of non-leak between two periods of leak should be<br />
no less than 26 seconds. The sequential composition (also known as the chop operation) is<br />
the pointwise concatenation of the intervals of specifications:<br />
P Q ̂= ∃i 1 i 2 · (P [i 1 /i] ∧ Q[i 2 /i] ∧ i = i ⌢ 1 i 2) .<br />
The similarity between the TLA specification (1) <strong>and</strong> the DC design (4) is obvious. They<br />
essentially describe the same controlling strategy. Their link will be captured by a transformer<br />
between the two logics.<br />
4 Linking Duration Calculus <strong>and</strong> TLA<br />
The transformer from TLA to DC<br />
We now study a technique to link DC specifications with TLA designs. Indeed each timed trace<br />
of 0s <strong>and</strong> 1s determines some real-time Boolean function in [0, ∞] → {0, 1} . For example, the<br />
timed trace 〈(1.0, 0), (2.0, 1), (4.0, 0)〉 corresponds to a Boolean real-time function whose value<br />
is 0 from time 1.0 to time 2.0 when the value becomes 1 until time 4.0 . The state between<br />
any two consecutive time points is constant. For example, the DC abstract specification (3) can<br />
be implemented with a TLA specification of timed traces (1). The TLA design is arguably more<br />
intuitive than (3) in DC alone. Such interpretation of a timed trace also directly corresponds to<br />
a timed automaton.<br />
Report No. 301,<br />
<strong>UNU</strong>-<strong>IIST</strong>, P.O. Box 3058, Macau