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.

10.5 Example: The Elevator Problem 323<br />

Overweight<br />

Sensor<br />

('OS'+'0')<br />

osos0<br />

osos emem<br />

Over<br />

weight<br />

Sensor<br />

Image<br />

('OSI'+'0')<br />

ecem<br />

Elevator<br />

Mechanism<br />

Handler<br />

('EMH'+'0')<br />

Floor<br />

Sensors<br />

('0')<br />

Elevator<br />

Motor<br />

Image<br />

('EMI'+'0')<br />

ecos mhmi<br />

Elevator<br />

Motor<br />

('EM'+'0')<br />

emem0<br />

Operator<br />

Audible<br />

Alarm<br />

('AA'+'0')<br />

Audible<br />

Doors<br />

Alarm<br />

Image<br />

Image<br />

('AAI'+'0') aamh dimh<br />

('DI'+'0')<br />

Individual<br />

Elevator<br />

('0')<br />

Central<br />

Controller<br />

fpcc<br />

Doors<br />

('D'+'0')<br />

Floor<br />

Passenger<br />

Image<br />

('FPI'+'0')<br />

fpsl fpsi<br />

fpfp<br />

fpfp0<br />

fpfp39<br />

...<br />

Floor<br />

Passenger<br />

('EP'+'0')<br />

Elevator<br />

Passenger<br />

('EP'+'0')<br />

Elevator<br />

Passenger<br />

Image<br />

('EPI'+'0')<br />

Figure 10.3: Intermediate Instance Structure Diagram <strong>of</strong> the Elevator <strong>Specification</strong><br />

6. Now 9 is applied from right to left to interchange channel hiding g(M) and<br />

channel renaming f . We use the fact that f 1 ¢ AAI¡ ((AAI(¡ ¡<br />

0¡ )§ g ¢ DI(¡ DI¡ ¡ 0¡ )§ g ¢ EMH(¡ EMH¡ ¡ 0¡ )§ g ¢ EMI(¡ EMI¡ ¡ 0¡ )§ g )§ <br />

¢<br />

¦<br />

(g(M)) = g(M). (BSpec1<br />

f g(M))<br />

BSpec3) K L<br />

7. The channel hiding<br />

way as is done with<br />

g(M) is moved to the edge <strong>of</strong> the specification in a similar<br />

K in ¢ (AAI(¡ AAI¡ ¡ 0¡ )§ g ¢ DI(¡ DI¡ ¡ 0¡ )§ g ¢<br />

step 2:<br />

¡ 0¡ )§ g¢ EMI(¡ EMI¡ ¡ 0¡ )§ g )§ ¢ EMH(¡ ¦ ¦ EMH¡<br />

(BSpec1<br />

f BSpec3) g(M) K L<br />

8. By applying 6 (with condition NoComChange¡ ), channel renaming f is distributed<br />

over the former components <strong>of</strong> cluster ElevatorMechanism(¡ 0¡ ). Transformations 4<br />

and 5 are repeatedly used to simplify the obtained channel renamings. The<br />

resulting specification can now be written as (BSpec1 ¢ AAI(¡ AAI¡ ¡ 0¡ )§ g1 ¢<br />

DI¡ ¡ 0¡ )§ g2 ¢ EMH(¡ EMH¡ ¡ 0¡ )§ g3 ¢ EMI(¡ EMI¡ ¡ 0¡ )§ g4 ¢ BSpec3) g(M)¦ K ¦ L<br />

DI(¡<br />

9. Transformation steps 3–8 are repeated for each remaining ElevatorMechanism.<br />

Transformation 12 is then applied to eliminate cluster class ElevatorMechanism<br />

from the system <strong>of</strong> process and cluster classes.

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

Saved successfully!

Ooh no, something went wrong!