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.5 Scenarios 197<br />

startJob<br />

readyToAccept(PI)<br />

accept(PI)<br />

Job_<br />

Controller<br />

startConfig<br />

Product_<br />

Input_<br />

Handler<br />

startCount/<br />

ShiftCount(Number)<br />

flushFifo<br />

write(PI)<br />

Config_<br />

Handler<br />

PI_Fifo<br />

startConfig<br />

ShiftEndCorr/<br />

shiftCount(Number)<br />

serviceRequested<br />

(ServiceId)/<br />

service(YesNo)<br />

serviceResult<br />

(OkNotOK)<br />

Figure 6.20: Scenario Assembly<br />

Product_<br />

Output_<br />

Handler<br />

readyToAccept(PI)<br />

accept(PI)<br />

in which events and responses are expected to happen. This information is very useful<br />

for later development <strong>of</strong> POOSL descriptions.<br />

6.5.2 Scenarios in other Methods<br />

Scenario is a concept that is found in methods such as OMT [R 91], OOSE [J 92], Fusion<br />

[C 94], and ROOM [SGW94]. Our concept <strong>of</strong> scenario is defined and applied broader<br />

than in other methods. Most authors present scenarios as a tool on context level, and<br />

emphasise modelling <strong>of</strong> the user interface. In contrast, we emphasise the use <strong>of</strong> scenarios<br />

on all levels <strong>of</strong> abstraction and as a tool to grasp multidisciplinary views. In spite <strong>of</strong> the<br />

differences, various authors give very useful and clarifying observations.<br />

Selic et al. [SGW94] define an (action) scenario as ’a series <strong>of</strong> causally chained events typically<br />

spanning multiple tasks in a system that represent some meaningful high-level operation.’<br />

Rumbaugh et al. [R 91] define a scenario as ’a sequence <strong>of</strong> events that occurs during one<br />

particular execution <strong>of</strong> a system. The scope <strong>of</strong> a scenario can vary; it may include all events<br />

in the system, or it may include only those events impinging on or generated by certain objects<br />

in the system. A scenario can be the historical record <strong>of</strong> executing a system or a thought<br />

experiment <strong>of</strong> executing a proposed system.’ Sequences <strong>of</strong> events are visualised in so-called<br />

event trace diagrams. Events in OMT are a concept that is not the same as messages.<br />

Events are grouped into classes. We only group objects and clusters into classes. A<br />

major difference between our approach and OMT is that we emphasise an instanceoriented<br />

approach whereas OMT uses a class-oriented approach. Our scenarios are<br />

visualised with flows between instances. The class approach in OMT leads to artificial<br />

and confusing definitions <strong>of</strong> the concept <strong>of</strong> module and <strong>of</strong> view. We cite the definition.<br />

A module is ’a logical grouping construct, grouping classes, associations, and generalisations.<br />

A module captures one perspective or view <strong>of</strong> a situation. For example, electrical, plumbing and<br />

ventilation modules are different views <strong>of</strong> a building. An object model consists <strong>of</strong> one or more<br />

modules. Modules partition the model as an intermediate unit <strong>of</strong> packaging. Class names and<br />

associations must be unique within a module. The same class may be referenced in different

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

Saved successfully!

Ooh no, something went wrong!