Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...
Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...
Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Chapter 7. openETCS Meta Model<br />
and the only final state is marked with doubled circled dot<br />
F ≡ {s END } (7.43)<br />
There are seven transitions, which also corr<strong>es</strong>ponds to the number of inputs:<br />
n i = 7 (7.44)<br />
The transition between the initial state, drawn by the black spot, is not counted because it<br />
do<strong>es</strong> not have any condition / input and is always passed in the beginning. The conditions and<br />
inputs are numbered as follows:<br />
Transition Condition Input, Priority<br />
Starting −→ Sleeping c 1 i 1 , p 1 = 0<br />
Starting −→ Running c 2 i 2 , p 2 = 1<br />
Sleeping −→ Running c 3 i 3 , p 3 = 0<br />
Running −→ Sleeping c 4 i 4 , p 4 = 0<br />
Sleeping −→ Terminating c 5 i 5 , p 5 = 1<br />
Running −→ Terminating c 6 i 6 , p 6 = 1<br />
Terminating −→ END c 7 i 7 , p 7 = 0<br />
Accordingly, the transition vector v(s) can be build for each state s:<br />
s =<br />
⎡<br />
⎢<br />
⎣<br />
s Starting<br />
s Sleeping<br />
s Running<br />
s Terminating<br />
s END<br />
⎤<br />
⎥<br />
⎦<br />
(7.45)<br />
v(s Starting ) T = [1; i 1,k ; 2i 2,k ; 0; 0] (7.46)<br />
v(s Sleeping ) T = [0; 1; i 3;,k 2i 5,k ; 0] (7.47)<br />
v(s Running ) T = [0; i 4,k ; 1; 2i 6,k ; 0] (7.48)<br />
v(s Terminating ) T = [0; 0; 0; 1; i 7,k ] (7.49)<br />
A transition vector for the final state s END is not required. Since s Starting is the initial state s 0 ,<br />
the corr<strong>es</strong>ponding transition function can be defined as<br />
⎛<br />
⎡<br />
s Starting<br />
⎤⎞<br />
s k = s Starting : s k+1 = δ<br />
⎜<br />
⎝ [1; 2i s Sleeping<br />
1,k; 3i 2,k ; 0; 0]<br />
⎢ s Running<br />
⎥⎟<br />
⎣ s Terminating<br />
⎦⎠<br />
s END<br />
= δ (s Starting + 2i 1,k s Sleeping + 3i 2,k s Running ) (7.50)<br />
118