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.

If the brake force is above 80% for more than 500ms full braking shall be initiated during<br />

100ms.<br />

Pattern based RSL:<br />

whenever (brakeForce > 80) holds during [0s,500ms] occurs<br />

InitiateFullBraking occurs during [0s, 100ms]<br />

Because this pattern is a combination of F1 and a sub automaton that converts the “holds during”<br />

construct into an event, only the sub automaton is given here. This automaton is started by<br />

localTmpPin0 and emits localTmpPin1 that is used by the corresponding F1 automaton.<br />

Sub automata(for iterative interpretation):<br />

idle<br />

idle<br />

out<br />

localTmpPin0<br />

!(c)<br />

in<br />

whenever (c) holds during [e1,e2] occurs action occurs during [e3,e4].<br />

localTmpPin0<br />

e1<br />

!(c)<br />

|clk:=0<br />

e1 && (clk==0) sIn e1 && (clk>0)<br />

e2<br />

|localTmpPin1:=true<br />

out<br />

e2<br />

|localTmpPin1:=true<br />

!(c)<br />

|clk:=0<br />

e1<br />

|clk:=0<br />

!(c) && (clk>0)<br />

whenever (c) holds during ]e1,e2] occurs action occurs during [e3,e4].<br />

Definition of semantics with attributes flowing and once:<br />

Not supported in this version<br />

!(c) && (clk==0)<br />

6.1.1.2 Probability<br />

There are two patterns concerning probabilities. One of those is to describe the availability of a<br />

component and the other to specify the number of events in an interval.<br />

Pattern<br />

P1:<br />

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

availability of component shall be comparator p<br />

The Probability of a component to work correctly at any given time shall be “>”,”” and “>=” make sense.<br />

in<br />

129/ 156

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

Saved successfully!

Ooh no, something went wrong!