23.08.2013 Views

Specification of Reactive Hardware/Software Systems - Electronic ...

Specification of Reactive Hardware/Software Systems - Electronic ...

Specification of Reactive Hardware/Software Systems - Electronic ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

184 Modelling <strong>of</strong> Concurrent <strong>Reactive</strong> Behaviour<br />

The following list <strong>of</strong> corresponding statement pairs identifies the receiver <strong>of</strong> a message<br />

by a:<br />

1. Message name:<br />

ch!messagename<br />

ch?messagename<br />

This pair describes autistic communication.<br />

2. Message name and a guard:<br />

ch!messagename<br />

§ E ch?messagename<br />

The guard expression E must be true for a rendezvous. Notice that the complete<br />

receive statement including the guard will not be executed if the guard is false.<br />

3. Message name and receiver identifier:<br />

ch!messagename(id¥¡ ¡ ¡ )<br />

ch?messagename(id¥¡ ¡ ¡ ¡ id myId)<br />

The identifier id is passed as a parameter <strong>of</strong> the message. The complete receive<br />

statement will not be executed if the reception condition expression id=myId is<br />

false, where myId is the identifier <strong>of</strong> the receiver.<br />

4. Message name, guard and receiver identifier.<br />

ch!messagename(id¥¡ ¡ ¡ )<br />

§ E ch?messagename(id¥¡ ¡ ¡ ¡ id myId)<br />

This is a combination <strong>of</strong> cases 2 and 3.<br />

5. Message name and group identifier:<br />

ch!messagename(groupId¥¡ ¡ ¡ )<br />

ch?messagename(groupId¥¡ ¡ ¡ ¡ groupId myGroupId)<br />

This construct shows the use <strong>of</strong> a user defined group identifier. Nondeterministically<br />

one object <strong>of</strong> the members <strong>of</strong> the group connected to the channel<br />

will accept the message.<br />

6. Message name, guard and group identifier:<br />

ch!messagename(groupId¥¡ ¡ ¡ )<br />

§ E ch?messagename(groupId¥¡ ¡ ¡ ¡ groupId myGroupId)<br />

This is a combination <strong>of</strong> case 2 and 5.

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

Saved successfully!

Ooh no, something went wrong!