09.08.2013 Views

Architecture Modeling - SPES 2020

Architecture Modeling - SPES 2020

Architecture Modeling - SPES 2020

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Occurrences of a set of events in and arbitrary order<br />

To specify the occurrences of a set of events without constraining their internal order, the “set”<br />

statement can be used.<br />

set{event1, event2, event3…} during Interval<br />

A “set” statement is semantically equivalent to the permutation of all possible sequences of events<br />

expressed by “and then” statements.<br />

(event1 and then event2 and then event3 … during Interval) OR<br />

(event1 and then event3 and then event2 … during Interval) OR<br />

(event2 and then event1 and then event3 … during Interval) OR …<br />

Unwanted events<br />

Especially in sequences of events it is necessary to specify that there shall be no occurrences of some<br />

events in a special interval:<br />

Event not during Interval<br />

This language construct is an event that occurs at the end of interval, if there was no occurrence of<br />

this event. There is no relation to the filter construct “Event during interval”.<br />

Creating Events from Conditions<br />

It can be necessary to define the point in time where a condition becomes true or false. This is done<br />

by the language constructs tr() and fs():<br />

and<br />

tr(Condition)<br />

fs(Condition)<br />

<strong>Architecture</strong> <strong>Modeling</strong><br />

Requirement:<br />

If the cooling liquid exceeds 120 degrees celcius send a warning message.<br />

Formalization:<br />

whenever tr( liquitTemperature > 120) occurs<br />

CoolingLiquidWarningMessage occurs.<br />

To formulate requirements where a condition is true during a defined interval the following language<br />

construct can be used:<br />

Condition holds during Interval<br />

Example Requirement: If the start button gets pushed signal a and signal b shall be equal for<br />

at least 5 seconds.<br />

116/ 156

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

Saved successfully!

Ooh no, something went wrong!