Formal Requirements Engineering for Smart Industries
Alexandre Le Borgne, Nicolas Belloir, Jean-Michel Bruel, Thuy Nguyen
1
* funded by a NeoCampus/IRIT grant
Formal Requirements Engineering for Smart Industries Alexandre Le - - PowerPoint PPT Presentation
Formal Requirements Engineering for Smart Industries Alexandre Le Borgne, Nicolas Belloir, Jean-Michel Bruel, Thuy Nguyen * funded by a NeoCampus/IRIT grant 1 Content I. Context II. Graphical language Definition III. Results IV.
Alexandre Le Borgne, Nicolas Belloir, Jean-Michel Bruel, Thuy Nguyen
1
* funded by a NeoCampus/IRIT grant
Content
II. Graphical language Definition III. Results IV. Conclusions and future works
2
Context
influence the behaviour of the system
production
power grid
Modeling Language)
3
Limitations
4 Functional Requirements and Use Cases, http: //www.bredemeyer.com SysML requirement diagram http://formalmind.com KAOS requirements http://foswiki.cs.uu.nl/
FORM-L
system as assumptions.
requirements → r1 ⬄ r2
property Model REQ class Pump external Boolean cavitates; external Boolean inOperation; end Pump; external Pump {} pumps; requirement r1= forAll p in pumps during p.inOperation check no p.cavitate; requirement r2 {} = { forAll pump in pumps | during p.inOperation check no p.cavitates }; end REQ; Pumps must not cavitate as long as they are operating.
5
Problem
→ FORM-GL
6
Content
I. Context
III. Results IV. Conclusions and future works
7
FORM-GL requirements
understandable model
A boilerplate conception approach
8
and c3
d4 ((a1+a2+a3)*a4) ≤ fnct(b1, b2+b3) and c3
d4 ≤ fnct(b1, b2+b3)
* +
a1 ((((a1+a2+a3)*a4) ≤ fnct(b1, b2+b3)) or c3) and d4 a2 a3 a4
FORM-GL
Assembling blocks together Different representation levels
10
Tools
EMF Xtext Sirius
designing metamodels
implementing the grammar
model of the grammar
by Obeo
modeling tools based on EMF metamodels
11
Content
I. Context II. Graphical language Definition
IV. Conclusions and future works
12
13
Results
14
Results
embedded editor into the graphical editor
expression of a FORM-L element from the graphical editor
15
Results
➢ Floating nodes that contain the text
➢ But not satisfying regarding the way we want to develop FORM-GL
➢ Get custom node fully resizable keeping defined constraints
bool
2.5mm O O 5mm 2.5mm 2.5mm 2.5mm 2.5mm 25mm O 2.5mm 2.5mm 5mm 2.5mm 5mm 5mm 5mm
16
Contents
I. Context II. Graphical language Definition III. Results
17
Conclusions and Future Works
18
Temperature t 155 b 295.8 C 30 b 25 b 160 C 70 C 5 b 10 C f1(t, p) f2(t, p) f3(t, p) f4(t, p) ((10.*C ≤ t ≤ 70.*C) and ( 5.*b ≤ p ≤ 30.*b)) or ((70.*C ≤ t ≤ 160.*C) and (25.*b ≤ p ≤ 30.*b)) or ((160.*C ≤ t ≤ 295.8.*C) and (25.*b ≤ p ≤ 155.*b) and (f1(t, p) ≥ 0.) and (f2(t, p) ≤ 0.) and (f3(t, p) ≤ 0.) and (f4(t, p) ≥ 0.)) Pressure p
Charts - Example 1
Temperature t 140.*b 280.*C 70.*C 60.*C Pressure p 270.*C 135.*b 25.*b 20.*b property p1
during any
3.*h inPDuration < 5.*mn The process can be in this zone, but no more than 5 mn per any time window
Charts - Example 2
21
FORM-L
FOrmal Requirements Modeling Language
FORM-L main concepts:
FORM-L Models:
22
Temperature t 140.*b 280.*C 70.*C 60.*C Pressure p 270.*C 135.*b 25.*b 20.*b
Charts - Example 2
Temperature t 140.*b 280.*C 70.*C 60.*C Pressure p 270.*C 135.*b 25.*b 20.*b The process should remain in this zone
Charts - Example 2
Charts - Example 3
Voltage v 205.*v 180.*v 170.*v 195.*v property p2 mpsOn When v is greater than 205 v, the MPS should be declared on property p3 mpsOff When v is lower than 170 v, the MPS should be declared off property p1 no mpsOn When v is lower than 195 v, the MPS should not become on property p4 no mpsOff When v is greater than 185 v, the MPS should not become off
Model-Driven Approach
→ Stimulus → Mass simulation
simulation
26
M2: FORM-L Metamodel (FORM-L Grammar) M1: FORM-L Model (FORM-L / FORM-GL models) M0: Real World FORM-GL FORM-L Stimulus Modelica
TRANSFORMATION