Architecture Modeling - SPES 2020
Architecture Modeling - SPES 2020
Architecture Modeling - SPES 2020
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Constrrain<br />
Eventts<br />
with Intervals<br />
It is not always wanted<br />
to react on every occcurrence<br />
of f an event. Constraining<br />
C<br />
an event through<br />
an<br />
interval is<br />
a natural wway<br />
of filterin ng events. Thhis<br />
can be ac chieved by th he following nnotation:<br />
Event durring<br />
[inte erval]<br />
An exammple<br />
shall demonstrate<br />
th he use of thiss<br />
language construct<br />
A responsee<br />
to a request<br />
shall only bbe<br />
send if the e system got activated through<br />
a mes ssage.<br />
This behavior<br />
can be fo ormalized to:<br />
whenever<br />
occurs.<br />
request t during<br />
<strong>Architecture</strong> <strong>Modeling</strong><br />
[activa ate,deacti ivate] ooccurs<br />
re esponse<br />
There are eevents<br />
that indicate<br />
the aactivation<br />
an nd the deactivation<br />
of thee<br />
system/component.<br />
Only the requests<br />
that occur o duringg<br />
the specifie ed interval will<br />
trigger thiss<br />
pattern. The<br />
interval<br />
acts like a filter on the event. For mmore<br />
informa ation on inter rvals see secction<br />
6.1.1.1.1.2.<br />
It is<br />
also possibble<br />
to use the e different kinnd<br />
of bracket ts here for th he interval ass<br />
described in<br />
section<br />
0. Further the<br />
usage of real times (liike<br />
5 ms) is allowed a in the<br />
intervals.<br />
The patternn<br />
above typic cally needs a refinement, , since the sp pecification oof<br />
the respon nse event<br />
lacks an intterval<br />
where it should occcur.<br />
The bassic<br />
block for building eve ent expressioon<br />
with “during”<br />
is shown<br />
below. Forr<br />
a description<br />
of the<br />
construcction<br />
of open and closed intervals fromm<br />
this basic block refer to o section 0.<br />
Complexx<br />
expressionn<br />
can be buil lt by nestingg<br />
of multiple during expre essions. For each nestin ng level a<br />
basic block<br />
is instaantiated<br />
that sends a teemporary<br />
ev vent to the higher levell.<br />
Depending g on the<br />
integratioon<br />
in the oveerall<br />
context, , the states “ “0” and “1” are a merged in nto the “pre” ” state resulting<br />
in the<br />
“out” state<br />
to ensure correct beha avior when mmultiple<br />
instances<br />
of the event e occur.<br />
112/ 156