Discrete Event Systems Timed Models: Máté Hegyháti
Discrete Event Systems Timed Models: Máté Hegyháti
[email protected] http://dcs.uni-pannon.hu/hegyhati/oktatas
Timed Automata
Contents
Timed Automata
Timed Automata
Timed automata
Timed automata:
where V tv | P u is the clock structure or timing structure where v : Z R is a clock for event v pk q: the time needed for the activation of for the k th time The event sequence is not given, it is generated. The output is th event sequence 1 2 3 . . . with timing t1 , t2 t3 . . . .
1 ,t1
pK , , , s , Vq
q0
...
/ ...
Timed Automata
Dynamics
v : Z R is a clock for event y : Z R clock value for after the k th event N : Z Z score (number of activation attempts) of until the k th event Initialization: N p, 1q y p, 1q q0
# #
s
Timed Automata
Dynamics
For all k
P Z k 2: k arg minPD pq q y p, k 1q tk tk 1 y pk , k 1q qk pqk 1 , k q $ ' & N p, k 1q 1 if k and P D pqk q N p, k 1q 1 if P D pq , k qzD pqk 1 q N p, k q ' % N p, k 1q otherwise y p, 1q $ ' v p, N p, k qq if k and P D pqk q ' & v p, N p, k qq if P D pq , k qzD pqk 1 q ' y p, k 1q tk tk 1 if P D pq , k q X D pqk 1 q k ' % 8 otherwise
k 1
Timed Automata
pP , T , A, w , x0, Vq
Timed Automata
t, c , a, , , ^u tc , a, , , ^u | | |
ac c a ^
where c
P C and a P R
Timed Automata
Clock interpretations
P rC Rs
@ t P R , C 1 C t c pc q t # 1 rC t s x ptc q
if c P C 1 otherwise
Timed Automata
pK , , C , Tra, Inv , s q
where K set of states set of events C set of clocks Tra Inv
s initial state
Timed Automata
The initial state of the timed automaton is ps , 0 q where 0 pc q 0 @c P C . State transitions: Delay transition Event transition
Timed Automata
Event transition
Delay transition Delay transition:
pq , q
/ q,
tq p0 t 1 t q .
pq , q
,,C 1
/ p, C 1
p r 0s q
Timed Automata
Run or execution
Run of a timed automaton is a sequence of allowed delay- and event transitions: 1 1 1 q1 ,1 ,C/ 1pq1 , 1 q t2 / pq1 , 1 q2 ,2 ,C/2pq2 , 2 q ps , 0q t1 / ps , 0 1
t3
/ ...
k
i 1
ti , k , . . .
Timed Automata
Parallel composition
Let M1
pK1, 1, C1, Tra1, Inv1, s1q and M2 pK2, 2, C2, Tra2, Inv2, s2q
M1 ||M2
then
where Inv1,2 pq1 , q2 q Inv1 pq1 q ^ Inv2 pq2 q for all P 1 X 2 , if pqi , i , , Ci1 , pi q P Trai i 1, 2 then ppq1, q2q, 1 ^ 2, , C11 Y C21 , pp1, p2qq P Tra1,2 1 , p1 q P Tra1 then for all P 1 z2 , and q2 P K2 if pq1 , 1 , , C1 ppq1, q2q, 1, , C11 , pp1, q2qq P Tra1,2 1 , p2 q P Tra2 then for all P 2 z1 , and q1 P K1 if pq2 , 2 , , C2 1 ppq1, q2q, 2, , C2, pq1, p2qq P Tra1,2