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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.3 Communication 185<br />

6.3.10.2 Description <strong>of</strong> Data Object Communication<br />

The description <strong>of</strong> a message to a data object in POOSL does not have the rendezvous<br />

character like the communication among process objects. The description is limited to<br />

an expression in the sender. There is no explicit receive statement. The message name is<br />

immediately coupled to a method that must be executed at the receiver side on reception<br />

<strong>of</strong> the message. The reply to the sender is implicitly sent when the method execution<br />

terminates. A message-send expression is <strong>of</strong> the form:<br />

E m(E1 ¥¡ ¡ ¡ ¥ En)<br />

E is an expression that evaluates to a reference to a data object. This data object receives<br />

message m with parameters E1 ¥¡ ¡ ¡ ¥ En. The reception <strong>of</strong> message m causes the execution<br />

<strong>of</strong> the corresponding method m in the data object. When the execution is finished the<br />

result is returned. The semantics are that the initial send expression is replaced by the<br />

result. For instance:<br />

x : E m(E1 ¥¡ ¡ ¡ ¥ En)<br />

means that the result <strong>of</strong> the message is assigned to variable x.<br />

6.3.10.3 Summary<br />

We selected a collection <strong>of</strong> sorts <strong>of</strong> communication:<br />

1. synchronous communication with reply and waiting;<br />

2. synchronous communication with reply, waiting and time-out;<br />

3. synchronous communication with reply but without waiting;<br />

4. synchronous communication without reply;<br />

5. asynchronous communication without reply;<br />

6. asynchronous communication with reply (and time-out);<br />

7. continuous communication;<br />

8. interrupting communication;<br />

8. interrupting communication with reply;<br />

9. broadcast communication;<br />

10. multicast communication.<br />

This collection is sufficient to describe a wide variety <strong>of</strong> systems. Especially the interrupt<br />

distinguishes our method. POOSL <strong>of</strong>fers an abort as well as an interrupt construct to<br />

support interrupting communication. This gives abilities for the description <strong>of</strong> the<br />

interruption <strong>of</strong> concurrent (infinite) behaviour, and for modelling hardware interrupt<br />

mechanisms.

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

Saved successfully!

Ooh no, something went wrong!