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 321<br />

Overweight<br />

Sensor 0<br />

Floor<br />

Sensors<br />

0<br />

Elevator<br />

Motor<br />

Control<br />

Module 0<br />

Elevators<br />

Control<br />

Module<br />

Elevator<br />

Motor 0<br />

Operator<br />

Audible<br />

Alarm 0<br />

Doors 0<br />

Elevator<br />

Cage<br />

Control<br />

Module 0<br />

Floor<br />

Passenger<br />

Interface<br />

Module 0<br />

...<br />

Floor<br />

Passenger<br />

0<br />

Elevator<br />

Passenger<br />

0<br />

Figure 10.2: Architecture Structure Diagram <strong>of</strong> the Elevator Problem<br />

To be able to implement the POOSL specification shown in Figure 10.1, it has to be<br />

decided on which physical modules the different process instances (and possibly the<br />

different cluster instances) will be mapped. Further, a mapping <strong>of</strong> logical communication<br />

channels onto physical ones has to be decided upon. In this example the latter<br />

mapping easily follows from the former one.<br />

If the required mappings have been defined, the structure defined in Architecture Structure<br />

as well as the chosen mappings are formalised by transforming the POOSL specification.<br />

The transformed specification is such that its structure precisely matches the<br />

structure <strong>of</strong> the Architecture Structure Diagram.<br />

There are quite a few possibilities to map the different instances <strong>of</strong> Figure 10.1 onto<br />

the physical modules <strong>of</strong> Figure 10.2. To make a proper choice, it would be necessary<br />

to evaluate the different alternatives by comparing them with respect to for example<br />

performance, feasibility and cost. Since the different architecture structures are formalised<br />

in POOSL, such a comparison could in principle be supported by automated<br />

tools [GV95]. The development <strong>of</strong> such tools will be subject <strong>of</strong> future research.<br />

In this example we will choose a fixed mapping and show the result <strong>of</strong> the applications<br />

<strong>of</strong> the required transformations. The mapping is as follows:<br />

One OverweightSensorImage and one ElevatorMotorImage is mapped onto each<br />

ElevatorMotorControlModule.

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

Saved successfully!

Ooh no, something went wrong!