07.01.2013 Views

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

168 Valéry Tschaen<br />

a<br />

τ<br />

q0<br />

τ τ<br />

q1 q2 q3 q4<br />

b<br />

q5 q6 q7 q8 q9 q10 q11<br />

τ<br />

a c b b<br />

Fig. 6.9. Test (B) follow<strong>in</strong>g the CO-OP method<br />

CO-OP for Basic LOTOS The application of the CO-OP method to basic<br />

LOTOS is <strong>in</strong>terest<strong>in</strong>g because it allows a compositional construction of the Compulsory<br />

and Options sets. For any basic LOTOS operator ∗, Compulsory(B) and<br />

Options(B), such as B = B1 ∗ B2, can be constructed from the Compulsory and<br />

OptionssetsofB1 andB2. The construction of Test (B) is also based on two<br />

other attributes : B/ and unstable(B). The construction of these two attributes<br />

is also compositional. Thus, the CO-OP method offers a compositional<br />

construction of a canonical tester for any basic LOTOS process. Wezeman gives<br />

the compositional construction of each attribute for each basic LOTOS operator<br />

[Wez90]. Compared to the method described <strong>in</strong> Section 6.4.1, this method can be<br />

applied to all basic LOTOS processes, they do not have to match any particular<br />

form.<br />

6.4.3 Refusal Graph<br />

In the two previous methods, a canonical tester is derived from specification<br />

syntax. Drira, Azèma and Vernadat present a method with a different approach<br />

[DAV93]. It is based on the construction and transformation of a refusal<br />

graph.<br />

Def<strong>in</strong>ition 6.4.3 (RG: Refusal Graph) A refusal graph, denoted RG, is a<br />

determ<strong>in</strong>istic bilabeled graph represented by a 5-tuple (G, L,∆,Ref , g0) where:<br />

• G is a f<strong>in</strong>ite set of states;<br />

• g0 ∈ G is the <strong>in</strong>itial state;<br />

• L is a f<strong>in</strong>ite set of actions;<br />

• ∆ ⊆ (G×L×G) is a set of transitions. (g, a, g ′ ) ∈ ∆ is denoted g a ⇒ g ′ ;<br />

• Ref : G →P(P(L)) def<strong>in</strong>es for each state, the sets of actions that may be<br />

refused after the sequence lead<strong>in</strong>g to this state.<br />

Refusal sets must be m<strong>in</strong>imal. R is a m<strong>in</strong>imal refusal set if all elements of R are<br />

<strong>in</strong>comparable w.r.t. set <strong>in</strong>clusion ⊆. Furthermore,allE ∈ Ref (g) must either be<br />

(i) a subset of <strong>in</strong>it(g) orbe(ii) saturated w.r.t. L \ <strong>in</strong>it(g) (i.e. L \ <strong>in</strong>it(g) ⊆ E).<br />

As for LTSs, <strong>in</strong>it(g) ={a ∈ L |∃g ′ , g a ⇒ g ′ }.ArefusalsetRef (g) <strong>in</strong> the first<br />

form can be changed <strong>in</strong>to a refusal set <strong>in</strong> the second form by the transformation:<br />

⌈Ref (g)⌉ = {E ∪ (L \ <strong>in</strong>it(g)) | E ∈ Ref (g)}<br />

c

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

Saved successfully!

Ooh no, something went wrong!