31.01.2014 Views

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 ...

SHOW MORE
SHOW LESS

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 />

gEVCStateMachine<br />

ModeTransition<br />

ModeTransition<br />

CurrentState<br />

1...1<br />

NextState<br />

1...1<br />

CurrentState<br />

1...1<br />

NextState<br />

1...1<br />

oMode<br />

1...*<br />

oMode<br />

0...*<br />

oMode<br />

0...*<br />

oMode<br />

1...*<br />

Figure 7.3.: gEVCStateMachine bindings<br />

It must be observed that the gEVCStateMachine graph itself do<strong>es</strong> not provide any syntax<br />

to define temporal behaviour, but the evaluation of its guard objects is manipulated in<br />

gMainFunctionBlock graphs where causal and time-dependent behaviour can be d<strong>es</strong>cribed, as<br />

shown below.<br />

A certain qu<strong>es</strong>tion aris<strong>es</strong> if the gained abstraction for mod<strong>es</strong> and their transitions in the<br />

openETCS meta model is directly evaluated here. A repr<strong>es</strong>entation of 8 mod<strong>es</strong> and 30 guard<br />

conditions for transitions would r<strong>es</strong>ult in a huge graph, which would be difficult to read<br />

and therefore would not provide good abstraction. On the other hand, the transition table<br />

in [88, p. 40] already is somehow in an optimized form. Fortunately, MetaEdit+ not only can<br />

instantiate graph typ<strong>es</strong> directly with objects and bindings but also in matrix repr<strong>es</strong>entation [56].<br />

In contrary to the transition table, the mod<strong>es</strong> are listed on the row and column index of the<br />

matrix while the transitions or rather the ModeTransition relationships are located in the cells.<br />

Any transition between a state i to state j can be found then in the cell (i, j). An example<br />

taken from [88, p. 40] is shown in Figure 7.4. The EVC can be switched from the mode NP to<br />

NP <br />

-p2-<br />

SB · · ·<br />

. .<br />

. ..<br />

Figure 7.4.: Simple example from SRS transition table<br />

SB un<strong>der</strong> the condition / guard “4” and from SB to NP un<strong>der</strong> condition “29”. Both transitions<br />

have the priority 2. The r<strong>es</strong>ult of converting a gEVCStateMachine to a matrix instance is<br />

pr<strong>es</strong>ented in Figure 7.5. A more concrete example for a gEVCStateMachine matrix is pr<strong>es</strong>ented<br />

in Chapter 10.<br />

84

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!