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.

3.6 Practical Use <strong>of</strong> Concepts 43<br />

accept(PI)<br />

Transporter<br />

Feeder_Controller<br />

productArrived mounted,<br />

feed<br />

move(Speed)<br />

notMounted<br />

encoderPulse<br />

misFed,<br />

doubleFed<br />

Feeding_<br />

Unit<br />

Figure 3.7: Message Flow Diagram <strong>of</strong> Feeder Station Controller<br />

accept(PI)<br />

processes. The internal structure <strong>of</strong> the Station Controller cluster is shown in Figure 3.9.<br />

During the modelling process we try to find and define a consistent set <strong>of</strong> collaborating<br />

objects, that have clearly defined tasks and that encapsulate coherent data. The model<br />

shows process objects that perform the transport <strong>of</strong> the product packet information data<br />

objects (PI). These processes are the Product Input Handler, the Product Info Keepers and<br />

the Product Output Handler. The Product Input Handler is responsible for the acceptance<br />

<strong>of</strong> PI data objects from a left neighbour station. The data objects are never visualised<br />

by graphical symbols. They are denoted textually on a message flow. The message<br />

accept(PI) means that a PI data object will be sent in the message with name accept.<br />

A message flow diagram shows various types <strong>of</strong> flows. For instance the accept(PI)<br />

message requires a synchronous interaction <strong>of</strong> the left neighbour station and the<br />

Product Input Handler. In contrast, the message flow currentPosition(Position) is a continuous<br />

flow, which means that the sender (the Transporter Image) is continuously prepared<br />

to send. The terminator Transporter produces productArrived messages. Notice that the<br />

corresponding arrow head passes the symbol boundary. This symbol represent an interrupt<br />

message flow. Such messages can interrupt the behaviour performed by a process,<br />

and let the process switch temporarily to an alternative behaviour.<br />

3.6.5 Formal modelling<br />

Graphical modelling results in understanding <strong>of</strong> the system to be designed. During<br />

modelling we play scenarios <strong>of</strong> behaviour in thought. We can consider the behaviour

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

Saved successfully!

Ooh no, something went wrong!