27.03.2014 Views

Programming Model and Protocols for Reconfigurable Distributed ...

Programming Model and Protocols for Reconfigurable Distributed ...

Programming Model and Protocols for Reconfigurable Distributed ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

26 CHAPTER 2. COMPONENT MODEL<br />

Figure 2.6. When MyNetwork triggers a MessageA on its provided Network port,<br />

this event is <strong>for</strong>warded by both channel 1 <strong>and</strong> channel 2 to the required Network ports<br />

of Component1 <strong>and</strong> Component2, respectively.<br />

Figure 2.7. When MyNetwork triggers a MessageA event on its provided Network<br />

port, this event is <strong>for</strong>warded only by channel 1 to the required Network port of<br />

Component1. MessageB events triggered by MyNetwork on its Network port, are<br />

<strong>for</strong>warded only by channel 2 to the Network port of Component2.<br />

Network port, this event is delivered to MyComponent where it is h<strong>and</strong>led<br />

by h<strong>and</strong>ler 2 . An event triggered (published) on a port is <strong>for</strong>warded to other<br />

components by all channels connected to the other side of the port as in Figure<br />

2.6. As an optimization, the run-time system should not <strong>for</strong>ward events<br />

on channels that would not lead to any compatible subscribed h<strong>and</strong>lers. An<br />

event received on a port is h<strong>and</strong>led by all compatible h<strong>and</strong>lers subscribed<br />

to that port as in Figure 2.9. Here, whenever MyNetwork triggers a MessageA<br />

event on its Network port, this event is delivered to MyComponent where it<br />

is h<strong>and</strong>led sequentially by both h<strong>and</strong>ler 1 <strong>and</strong> h<strong>and</strong>ler 2 , in the same order in<br />

which these two h<strong>and</strong>lers were subscribed to the Network port.

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

Saved successfully!

Ooh no, something went wrong!