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.

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

reply flow. Like the message on an interrupt message flow this message can always pass<br />

the object’s outer shell. The behaviour at the receiver side must prepare an answer. The<br />

sender must wait for this answer. This notion is visualised in the message symbol that<br />

breaks through the object’s shell and also shows a reversed reply arrow head, see Figure<br />

6.11. Like the interrupt message flow, the interrupt with reply flow can be used to model<br />

two cases:<br />

reliable<br />

guard<br />

an abort with reply and waiting;<br />

emergency/<br />

received,notReceived<br />

process B<br />

Figure 6.11: An Interrupt with Reply Flow<br />

an interrupt with reply and waiting.<br />

An abort statement specifies that a piece <strong>of</strong> behaviour description can be stopped at<br />

the instants between the execution <strong>of</strong> the individual process statements. The behaviour<br />

specified after the abort statement must produce a reply. Alternative continuing behaviour<br />

can be specified as well. The original behaviour which was interrupted by the<br />

abort is not resumed.<br />

An interrupt statement specifies that a piece <strong>of</strong> behaviour description can be interrupted<br />

at the instants between the execution <strong>of</strong> the statements, and can be resumed later, so that<br />

the original behaviour is continued from the place where it was interrupted. Since the<br />

production <strong>of</strong> reply is specified, the interrupt behaviour must produce a reply.<br />

Summary:<br />

An interrupt with reply symbol represents a synchronous message passing that can be<br />

forced to happen after the current atomic process statement is finished. In addition the<br />

symbol shows that the sender must wait for a reply. POOSL <strong>of</strong>fers two primitives for the<br />

description <strong>of</strong> the behaviour <strong>of</strong> an interrupt flow. An interrupt specifies that the current<br />

behaviour can be resumed. An abort specifies that the current behaviour is interrupted<br />

but cannot be resumed.<br />

6.3.7 Multi-Way Communication<br />

Multi-way communication means that a message can be received simultaneously by more<br />

than one receiver, see Figure 6.12. The sender process sends one single message m that<br />

can be received simultaneously by three processes A, B and C. This implies that we<br />

need a common channel with the four process objects connected to it. By splitting the<br />

message flow we visualise that message m sent must be received simultaneously by all

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

Saved successfully!

Ooh no, something went wrong!