SlideShare a Scribd company logo
1 of 21
Eclipsecon 2015
Budapest University of Technology and Economics
Department of Measurement and Information Systems
IncQuery Labs Ltd.
EMF-IncQuery gets Sirius:
faster and better diagrams
Ákos Horváth, Ábel Hegedüs, Zoltán Ujhelyi
IncQuery Labs Ltd.
Ádám Lengyel, István Ráth, Dániel Varró
Budapest University of Technology and Economics
Eclipsecon 2015
Outline of the talk
2
Motivation and background
Sirius and queries
Interpreter based integration
• Overview
• Demo and evaluation
Query-based viewpoint definition
• Overview
• Demo and evaluation
Conclusion
• Current status
• Future work
 Main Contributors
o Ádám Lengyel
o Ábel Hegedüs
o Zoltán Ujhelyi
o István Ráth
o Ákos Horváth
Eclipsecon 2015
Introduction
3
??
I don’t need all
that information
Can I define a
simplified model?
Can I define a
viewpoint
to visualize it?
Maintanence
• Incrementally
• Immediately
Maintenance:
• Incrementally
• Immediately
Viewpoint:
• Different view of
underlying model
• Abstraction  hides
complexity
Eclipsecon 2015
Motivating scenario: CONCERTO
 EU-ECSEL project (started in 2013)
o General MDD toolchain for safety-critical systems
• Analysis and code generation for component based systems
• UML based modeling
• Non-modifiable PSM
 Simplified Example
4
FAM_PilotControl
: Function
FAM_Navigation
: Function
FAM_FMS
: Function
FAM_EMS
: Function
nav2ems
:InformationLink
provider
consumer
subFunctions
provider
consumer
PilotControl
SubS1
Navigation
FMS
SubS2
EMS
tag: func
tag: func
tag: func
tag: func
EMS: Engine Management System
FMS: Flight Management SystemInPort/OutPort
nav2fms
:InformationLink
Simulink
Concerto Component models
(UML + profiles)
Id
Id Other SubSystem without tag
Function SubSystem with "func" tag)
Port Blocks
id:Function id:InformationLink
View
More details on Matlab Simulink and Eclipse integration: https://github.com/FTSRG/massif
Eclipsecon 2015
Background: Sirius
 Sirius
o Custom concrete syntax for visualization
• Tree, table, graph, etc.
o Provides viewpoint definition over EMF models
o Abstraction can be defined using interpreted
expressions
• MTL – Acceleo Model-to-Text language
• OCL- Object Constraint language
• AQL (recommended as of 3.1) – Acceleo Query Language
o Supports several viewpoints over
the same abstract syntax
5
More details on Sirius: https://eclipse.org/sirius/
Eclipsecon 2015
Background: EMF-IncQuery
 EMF-IncQuery
o Incremental model query engine
o Own query language = IQPL
• declarative
• graph pattern based
6
Query Model
Updated results Result deltas
Evaluator
Model change
Efficient change
propagation
Always up-to-date results
without model re-traversal
Track changes of your
model in terms of queries
More details on EMF-IncQuery integration: http://www.eclipse.org/incquery/
Eclipsecon 2015
IncQuery as a query language in
Sirius
Eclipsecon 2015
VSM Render
Overview: IQPL as query language for Sirius
 Sirius provides API to provide custom expression
interpreter
o org.eclipse.sirius.common.expressionInterpreter
o org.eclipse.sirius.common.proposalProvider
8
4. UI updates
EMF Model
B. Change
NotificationsA. Model
Modification
Live
Queries
Live
Queries
2. Get
queries
3. Query results
1. UI refresh
Eclipsecon 2015
DEMO
 Same model query written in
o MTL
o AQL
o IncQuery
Using IncQuery in Sirius
9
Master:AppType
SM1: State Machine
S1:
State
S2:
State
sendSignal()
:HostInstance
:Master
Slave:AppType
SM1: State Machine
SA:
State
SB:
State
receiveSignal()
:HostInstance
:Slave
communicates
allocatedTo allocatedTo
instanceOf instanceOf
Eclipsecon 2015
Evaluation: Interpreted expression
10
0
5000
10000
15000
20000
25000
30000
35000
MTL AQL EIQ MTL AQL EIQ MTL AQL EIQ
Small Medium Large
EXECUTIONTIME[MS]
MODEL SIZE
First Execution
Recalculation
Models EObjects EReferences EAttributes Diagram nodesDiagram edges
Small 3550 34222 9471 12 17
Medium 6994 124708 22129 17 13
Large 63580 1233581 457230 167 6154
 Profiler was used to
isolate query
execution time
 AQL
o provides good
performance
o Low memory
profile
 IncQuery
o Recalculations
< 50 ms
o Requires up to
2x memory
• Large ~1.2 Gb
Eclipsecon 2015
Query-based resource
Viewpoints as separate EMF resources
Eclipsecon 2015
EVM
VIEW MODELS AND SIRIUS
Derived
Model
EMF Model
A. Model
Modification
B. Change
Notifications
Live
QueriesLive
Transformation
Live
QueriesLive
Transformation
Derived
Model
C. Delta
updates
C. Delta
updates
D. UI refresh
D. UI refresh
B. Change
Notifications
More details on EVM: http://wiki.eclipse.org/EMFIncQuery/DeveloperDocumentation/EventDrivenVM
VSM +
Render
Eclipsecon 2015
 More matches can appear at the same time
o Ordered execution schema (priority for rules)
 Internal traceability for created objects
o Explicit definition
 Configuration model hides underlying EVM rule definitions
o Predefined set of manipulation rules available
 In summary: One way incremental synchronization  arbitrary transformation
Execution of motivating example
11
FAM_PilotControl
: Function
FAM_Navigation
: Function
FAM_FMS
: Function
subFunctions
consumer
PilotControl
SubS1
Navigation
FMS
tag: func
tag: func
tag: func
Simulink CCM
subFunctions
Query results Traceability
function
f_1
f_2
f_3
Trace
Trace
Trace
a 2 3appear create add
Query results
functionIdentifier
f_1 i_1
f_2 i_2
f_3 i_3
subFunction
f_1 i_1
f_2 i_2
b appear 4 set
Eclipsecon 2015
Updating derived models
 Initial setup of derivation rules
o EClassifiers, EStructuralFeatures
 Query result deltas
o Delta = (Found, Lost, Updated)
 Based on EMF-IncQuery Event-Driven Virtual machine
 Integration
architecture
14
Source model
Live
transformation
rules
Query engine
IncQuery- EVM Derived model
Change notifications Match set delta
Application
Model manipulation Configuration
Model manipulation
1
2
3
4
Sirius
UI update5
Eclipsecon 2015
DEMO
 Standard Sirius domain
o Family representation
o Incremental synchronization
• On-the-fly
 Concerto EMF-UML2
o Viewpoint for simplified representation
Using IncQuery in Sirius
15
Eclipsecon 2015
Evaluation - Concerto
 First time
execution
16
0
5000
10000
15000
20000
25000
30000
35000
9+16 81+160 201+400 401+800 601+1200 801+1600 1201+2400
RUNTIME[MS]
SIZE OF TARGET (VIEW) MODEL (ELEMENTS + REFERENCES)
Transformation Transformation + Sirius
Models EObjects EReferences Diagram nodes Diagram edges
9+16 38 89 9 16
81+160 371 890 81 160
201+400 926 2225 201 400
401+800 1851 4450 401 800
601+1200 2776 6675 601 1200
801+1600 3701 8900 801 1600
1201+2400 5551 13350 1201 2400
 10+
derivation rules
 Transformation
~33% of overall
runtime
 Memory
consumption
~3.5x of original
model
Eclipsecon 2015
Evaluation - Concerto
 Incremental
recalculation
17
0
200
400
600
800
1000
1200
9+16 81+160 201+400 401+800 601+1200 801+1600 1201+2400
RUNTIME[MS]
SIZE OF TARGET (VIEW) MODEL (ELEMENTS + REFERENCES)
Deletion Deletion + Sirius
Models EObjects EReferences Diagram nodes Diagram edges
9+16 38 89 9 16
81+160 371 890 81 160
201+400 926 2225 201 400
401+800 1851 4450 401 800
601+1200 2776 6675 601 1200
801+1600 3701 8900 801 1600
1201+2400 5551 13350 1201 2400
 Transformation
re-execution
< 50 ms
 Refreshing
< 1 s
 Refreshing is also
faster
Eclipsecon 2015
Conclusions
What we have done and where to move forward
Eclipsecon 2015
Conclusions
 Proof-of-concept version is available
o IncQuery does well as expected in incremental recalculations
o Incremental refreshing is not available
• Would be nice to have explicit API 
o Usage requires deep knowledge of both Sirius and IncQuery
o Common base with new EMF-IncQuery Viewers
 Experience
o Concerto EU-ECSEL project
• Works with Papyrus and EMF-UML2!
o Aimed application scenario
• Viewpoint definition directly for EMF models (one-to-one mapping)
• Online synchronization
19
Eclipsecon 2015
Final points
 The examples and more details are available form
o https://github.com/FTSRG/iq-sirius-integration
o Contributors:
• Main: BME-FTSRG, IncQuery Labs Ltd.
• Supporting projects: Concerto (EU-Artemis)
• (Hopefully) future partner: Obeo 
 Your contributions (feedback, forum posts, ideas,
patches) are very welcome!
o To what direction should we enhance this approach?
20
Eclipsecon 2015

More Related Content

What's hot

Eclipse Modeling Framework
Eclipse Modeling FrameworkEclipse Modeling Framework
Eclipse Modeling Framework
Ajay K
 
Deploying Enterprise Deep Learning Masterclass Preview - Enterprise Deep Lea...
Deploying Enterprise Deep Learning Masterclass Preview -  Enterprise Deep Lea...Deploying Enterprise Deep Learning Masterclass Preview -  Enterprise Deep Lea...
Deploying Enterprise Deep Learning Masterclass Preview - Enterprise Deep Lea...
Sam Putnam [Deep Learning]
 

What's hot (12)

Eclipse Modeling Framework
Eclipse Modeling FrameworkEclipse Modeling Framework
Eclipse Modeling Framework
 
EclipseCon 2006: Introduction to the Eclipse Modeling Framework
EclipseCon 2006: Introduction to the Eclipse Modeling FrameworkEclipseCon 2006: Introduction to the Eclipse Modeling Framework
EclipseCon 2006: Introduction to the Eclipse Modeling Framework
 
Partial Loading of XMI Models
Partial Loading of XMI ModelsPartial Loading of XMI Models
Partial Loading of XMI Models
 
Papyrus @ Eclipse Summit Europe 2010
Papyrus @ Eclipse Summit Europe 2010Papyrus @ Eclipse Summit Europe 2010
Papyrus @ Eclipse Summit Europe 2010
 
[Siriuscon2018] Integrating Sirius, Xtext and EMF Compare to Design Simulato...
[Siriuscon2018]  Integrating Sirius, Xtext and EMF Compare to Design Simulato...[Siriuscon2018]  Integrating Sirius, Xtext and EMF Compare to Design Simulato...
[Siriuscon2018] Integrating Sirius, Xtext and EMF Compare to Design Simulato...
 
Enjoy Electron Everyone!
Enjoy Electron Everyone!Enjoy Electron Everyone!
Enjoy Electron Everyone!
 
[E-Dev-Day 2014][14/16] Adding vector graphics support to EFL
[E-Dev-Day 2014][14/16] Adding vector graphics support to EFL[E-Dev-Day 2014][14/16] Adding vector graphics support to EFL
[E-Dev-Day 2014][14/16] Adding vector graphics support to EFL
 
Deploying Enterprise Deep Learning Masterclass Preview - Enterprise Deep Lea...
Deploying Enterprise Deep Learning Masterclass Preview -  Enterprise Deep Lea...Deploying Enterprise Deep Learning Masterclass Preview -  Enterprise Deep Lea...
Deploying Enterprise Deep Learning Masterclass Preview - Enterprise Deep Lea...
 
Keynote: What’s new in Sirius?
Keynote: What’s new in Sirius?Keynote: What’s new in Sirius?
Keynote: What’s new in Sirius?
 
Connecting Capella to IBM ELM platform (IBM Jazz)
Connecting Capella to IBM ELM platform (IBM Jazz)Connecting Capella to IBM ELM platform (IBM Jazz)
Connecting Capella to IBM ELM platform (IBM Jazz)
 
Dive into POOSL : Simulate your systems!
Dive into POOSL : Simulate your systems!Dive into POOSL : Simulate your systems!
Dive into POOSL : Simulate your systems!
 
Local search-based pattern matching features in EMF-IncQuery
Local search-based pattern matching features in EMF-IncQueryLocal search-based pattern matching features in EMF-IncQuery
Local search-based pattern matching features in EMF-IncQuery
 

Similar to IncQuery gets Sirius: faster and better diagrams

2010 06 22 omg - obeo
2010 06 22   omg - obeo2010 06 22   omg - obeo
2010 06 22 omg - obeo
Etienne Juliot
 
Estimating model-sample-pages
Estimating model-sample-pagesEstimating model-sample-pages
Estimating model-sample-pages
manxman123
 

Similar to IncQuery gets Sirius: faster and better diagrams (20)

Applicative Logic Meta-Programming as the foundation for Template-based Progr...
Applicative Logic Meta-Programming as the foundation for Template-based Progr...Applicative Logic Meta-Programming as the foundation for Template-based Progr...
Applicative Logic Meta-Programming as the foundation for Template-based Progr...
 
javagruppen.dk - e4, the next generation Eclipse platform
javagruppen.dk - e4, the next generation Eclipse platformjavagruppen.dk - e4, the next generation Eclipse platform
javagruppen.dk - e4, the next generation Eclipse platform
 
OCL - The Bigger Picture
OCL - The Bigger PictureOCL - The Bigger Picture
OCL - The Bigger Picture
 
Massif - the love child of Matlab Simulink and Eclipse
Massif - the love child of Matlab Simulink and EclipseMassif - the love child of Matlab Simulink and Eclipse
Massif - the love child of Matlab Simulink and Eclipse
 
Xcore meets IncQuery: How the New Generation of DSLs are Made
Xcore meets IncQuery: How the New Generation of DSLs are MadeXcore meets IncQuery: How the New Generation of DSLs are Made
Xcore meets IncQuery: How the New Generation of DSLs are Made
 
2010 06 22 omg - obeo
2010 06 22   omg - obeo2010 06 22   omg - obeo
2010 06 22 omg - obeo
 
Scilab Modelica conference 20150921
Scilab Modelica conference 20150921Scilab Modelica conference 20150921
Scilab Modelica conference 20150921
 
Model Driven Development With Emf And Eclipse Link
Model Driven Development With Emf And Eclipse LinkModel Driven Development With Emf And Eclipse Link
Model Driven Development With Emf And Eclipse Link
 
notesnet.dk - Eclipse Modelling Tools
notesnet.dk - Eclipse Modelling Toolsnotesnet.dk - Eclipse Modelling Tools
notesnet.dk - Eclipse Modelling Tools
 
Embedded OCL Integration and Debugging
Embedded OCL Integration and DebuggingEmbedded OCL Integration and Debugging
Embedded OCL Integration and Debugging
 
A logic foundation for template-based program transformation in Eclipse
A logic foundation for template-based program transformation in EclipseA logic foundation for template-based program transformation in Eclipse
A logic foundation for template-based program transformation in Eclipse
 
Erlang For Five Nines
Erlang For Five NinesErlang For Five Nines
Erlang For Five Nines
 
Estimating model-sample-pages
Estimating model-sample-pagesEstimating model-sample-pages
Estimating model-sample-pages
 
Migrating Applications to the Cloud with Eclipse Technologies: Feedback from ...
Migrating Applications to the Cloud with Eclipse Technologies: Feedback from ...Migrating Applications to the Cloud with Eclipse Technologies: Feedback from ...
Migrating Applications to the Cloud with Eclipse Technologies: Feedback from ...
 
Virtual Simulation Of Systems
Virtual Simulation Of SystemsVirtual Simulation Of Systems
Virtual Simulation Of Systems
 
Lighting simulation i
Lighting simulation iLighting simulation i
Lighting simulation i
 
OCL 2019 Keynote Retrospective and Prospective
OCL 2019 Keynote Retrospective and ProspectiveOCL 2019 Keynote Retrospective and Prospective
OCL 2019 Keynote Retrospective and Prospective
 
EclipseCon 2007: Effective Use of the Eclipse Modeling Framework
EclipseCon 2007: Effective Use of the Eclipse Modeling FrameworkEclipseCon 2007: Effective Use of the Eclipse Modeling Framework
EclipseCon 2007: Effective Use of the Eclipse Modeling Framework
 
MATLAB programming for engineers
MATLAB programming for engineersMATLAB programming for engineers
MATLAB programming for engineers
 
ScilabTEC 2015 - KIT
ScilabTEC 2015 - KITScilabTEC 2015 - KIT
ScilabTEC 2015 - KIT
 

More from Ákos Horváth

Next-Generation Completeness and Consistency Management in the Digital Threa...
Next-Generation Completeness and Consistency Management in the Digital Threa...Next-Generation Completeness and Consistency Management in the Digital Threa...
Next-Generation Completeness and Consistency Management in the Digital Threa...
Ákos Horváth
 
CPS(M): Constraint Satisfaction Problem over Models (a.k.a rule based design ...
CPS(M): Constraint Satisfaction Problem over Models (a.k.a rule based design ...CPS(M): Constraint Satisfaction Problem over Models (a.k.a rule based design ...
CPS(M): Constraint Satisfaction Problem over Models (a.k.a rule based design ...
Ákos Horváth
 

More from Ákos Horváth (15)

Next-Generation Completeness and Consistency Management in the Digital Threa...
Next-Generation Completeness and Consistency Management in the Digital Threa...Next-Generation Completeness and Consistency Management in the Digital Threa...
Next-Generation Completeness and Consistency Management in the Digital Threa...
 
Natural Language Understanding of Systems Engineering Artifacts
Natural Language Understanding of Systems Engineering ArtifactsNatural Language Understanding of Systems Engineering Artifacts
Natural Language Understanding of Systems Engineering Artifacts
 
IoT Meetup Budapest - The Open-CPS approach
IoT Meetup Budapest - The Open-CPS approachIoT Meetup Budapest - The Open-CPS approach
IoT Meetup Budapest - The Open-CPS approach
 
Multi-disciplinary simulation of Cyber-Physical Systems – The OpenCPS approach
Multi-disciplinary simulation of Cyber-Physical Systems – The OpenCPS approachMulti-disciplinary simulation of Cyber-Physical Systems – The OpenCPS approach
Multi-disciplinary simulation of Cyber-Physical Systems – The OpenCPS approach
 
DemoCamp Budapest 2016 - Introdcution
DemoCamp Budapest 2016 - IntrodcutionDemoCamp Budapest 2016 - Introdcution
DemoCamp Budapest 2016 - Introdcution
 
MoDeS3 - Model-based Demonstrator for Smart and Safe Systems
MoDeS3 - Model-based Demonstrator for Smart and Safe SystemsMoDeS3 - Model-based Demonstrator for Smart and Safe Systems
MoDeS3 - Model-based Demonstrator for Smart and Safe Systems
 
VIATRA 3: A reactive model transformation platform
VIATRA 3: A reactive model transformation platformVIATRA 3: A reactive model transformation platform
VIATRA 3: A reactive model transformation platform
 
CPS(M): Constraint Satisfaction Problem over Models (a.k.a rule based design ...
CPS(M): Constraint Satisfaction Problem over Models (a.k.a rule based design ...CPS(M): Constraint Satisfaction Problem over Models (a.k.a rule based design ...
CPS(M): Constraint Satisfaction Problem over Models (a.k.a rule based design ...
 
Szoftverfejlesztés a repülőgépiparban
Szoftverfejlesztés a repülőgépiparbanSzoftverfejlesztés a repülőgépiparban
Szoftverfejlesztés a repülőgépiparban
 
Guaranteed Component Assembly with Round Trip Analysis for Energy Efficient H...
Guaranteed Component Assembly with Round Trip Analysis for Energy Efficient H...Guaranteed Component Assembly with Round Trip Analysis for Energy Efficient H...
Guaranteed Component Assembly with Round Trip Analysis for Energy Efficient H...
 
Software Development for Safety Critical Systems
Software Development for Safety Critical SystemsSoftware Development for Safety Critical Systems
Software Development for Safety Critical Systems
 
Incremental Model Queries for Model-Dirven Software Engineering
Incremental Model Queries for Model-Dirven Software EngineeringIncremental Model Queries for Model-Dirven Software Engineering
Incremental Model Queries for Model-Dirven Software Engineering
 
Model-Driven Development of ARINC 653 Configuration tables
Model-Driven Development of ARINC 653 Configuration tablesModel-Driven Development of ARINC 653 Configuration tables
Model-Driven Development of ARINC 653 Configuration tables
 
Hardware-Software allocation specification of IMA systems for early simulation
Hardware-Software allocation specification of IMA systems for early simulationHardware-Software allocation specification of IMA systems for early simulation
Hardware-Software allocation specification of IMA systems for early simulation
 
Decreasing your Coffe Consumption by Incremental Code regeneration
Decreasing your Coffe Consumption by Incremental Code regenerationDecreasing your Coffe Consumption by Incremental Code regeneration
Decreasing your Coffe Consumption by Incremental Code regeneration
 

Recently uploaded

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Recently uploaded (20)

How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 

IncQuery gets Sirius: faster and better diagrams

  • 1. Eclipsecon 2015 Budapest University of Technology and Economics Department of Measurement and Information Systems IncQuery Labs Ltd. EMF-IncQuery gets Sirius: faster and better diagrams Ákos Horváth, Ábel Hegedüs, Zoltán Ujhelyi IncQuery Labs Ltd. Ádám Lengyel, István Ráth, Dániel Varró Budapest University of Technology and Economics
  • 2. Eclipsecon 2015 Outline of the talk 2 Motivation and background Sirius and queries Interpreter based integration • Overview • Demo and evaluation Query-based viewpoint definition • Overview • Demo and evaluation Conclusion • Current status • Future work  Main Contributors o Ádám Lengyel o Ábel Hegedüs o Zoltán Ujhelyi o István Ráth o Ákos Horváth
  • 3. Eclipsecon 2015 Introduction 3 ?? I don’t need all that information Can I define a simplified model? Can I define a viewpoint to visualize it? Maintanence • Incrementally • Immediately Maintenance: • Incrementally • Immediately Viewpoint: • Different view of underlying model • Abstraction  hides complexity
  • 4. Eclipsecon 2015 Motivating scenario: CONCERTO  EU-ECSEL project (started in 2013) o General MDD toolchain for safety-critical systems • Analysis and code generation for component based systems • UML based modeling • Non-modifiable PSM  Simplified Example 4 FAM_PilotControl : Function FAM_Navigation : Function FAM_FMS : Function FAM_EMS : Function nav2ems :InformationLink provider consumer subFunctions provider consumer PilotControl SubS1 Navigation FMS SubS2 EMS tag: func tag: func tag: func tag: func EMS: Engine Management System FMS: Flight Management SystemInPort/OutPort nav2fms :InformationLink Simulink Concerto Component models (UML + profiles) Id Id Other SubSystem without tag Function SubSystem with "func" tag) Port Blocks id:Function id:InformationLink View More details on Matlab Simulink and Eclipse integration: https://github.com/FTSRG/massif
  • 5. Eclipsecon 2015 Background: Sirius  Sirius o Custom concrete syntax for visualization • Tree, table, graph, etc. o Provides viewpoint definition over EMF models o Abstraction can be defined using interpreted expressions • MTL – Acceleo Model-to-Text language • OCL- Object Constraint language • AQL (recommended as of 3.1) – Acceleo Query Language o Supports several viewpoints over the same abstract syntax 5 More details on Sirius: https://eclipse.org/sirius/
  • 6. Eclipsecon 2015 Background: EMF-IncQuery  EMF-IncQuery o Incremental model query engine o Own query language = IQPL • declarative • graph pattern based 6 Query Model Updated results Result deltas Evaluator Model change Efficient change propagation Always up-to-date results without model re-traversal Track changes of your model in terms of queries More details on EMF-IncQuery integration: http://www.eclipse.org/incquery/
  • 7. Eclipsecon 2015 IncQuery as a query language in Sirius
  • 8. Eclipsecon 2015 VSM Render Overview: IQPL as query language for Sirius  Sirius provides API to provide custom expression interpreter o org.eclipse.sirius.common.expressionInterpreter o org.eclipse.sirius.common.proposalProvider 8 4. UI updates EMF Model B. Change NotificationsA. Model Modification Live Queries Live Queries 2. Get queries 3. Query results 1. UI refresh
  • 9. Eclipsecon 2015 DEMO  Same model query written in o MTL o AQL o IncQuery Using IncQuery in Sirius 9 Master:AppType SM1: State Machine S1: State S2: State sendSignal() :HostInstance :Master Slave:AppType SM1: State Machine SA: State SB: State receiveSignal() :HostInstance :Slave communicates allocatedTo allocatedTo instanceOf instanceOf
  • 10. Eclipsecon 2015 Evaluation: Interpreted expression 10 0 5000 10000 15000 20000 25000 30000 35000 MTL AQL EIQ MTL AQL EIQ MTL AQL EIQ Small Medium Large EXECUTIONTIME[MS] MODEL SIZE First Execution Recalculation Models EObjects EReferences EAttributes Diagram nodesDiagram edges Small 3550 34222 9471 12 17 Medium 6994 124708 22129 17 13 Large 63580 1233581 457230 167 6154  Profiler was used to isolate query execution time  AQL o provides good performance o Low memory profile  IncQuery o Recalculations < 50 ms o Requires up to 2x memory • Large ~1.2 Gb
  • 12. Eclipsecon 2015 EVM VIEW MODELS AND SIRIUS Derived Model EMF Model A. Model Modification B. Change Notifications Live QueriesLive Transformation Live QueriesLive Transformation Derived Model C. Delta updates C. Delta updates D. UI refresh D. UI refresh B. Change Notifications More details on EVM: http://wiki.eclipse.org/EMFIncQuery/DeveloperDocumentation/EventDrivenVM VSM + Render
  • 13. Eclipsecon 2015  More matches can appear at the same time o Ordered execution schema (priority for rules)  Internal traceability for created objects o Explicit definition  Configuration model hides underlying EVM rule definitions o Predefined set of manipulation rules available  In summary: One way incremental synchronization  arbitrary transformation Execution of motivating example 11 FAM_PilotControl : Function FAM_Navigation : Function FAM_FMS : Function subFunctions consumer PilotControl SubS1 Navigation FMS tag: func tag: func tag: func Simulink CCM subFunctions Query results Traceability function f_1 f_2 f_3 Trace Trace Trace a 2 3appear create add Query results functionIdentifier f_1 i_1 f_2 i_2 f_3 i_3 subFunction f_1 i_1 f_2 i_2 b appear 4 set
  • 14. Eclipsecon 2015 Updating derived models  Initial setup of derivation rules o EClassifiers, EStructuralFeatures  Query result deltas o Delta = (Found, Lost, Updated)  Based on EMF-IncQuery Event-Driven Virtual machine  Integration architecture 14 Source model Live transformation rules Query engine IncQuery- EVM Derived model Change notifications Match set delta Application Model manipulation Configuration Model manipulation 1 2 3 4 Sirius UI update5
  • 15. Eclipsecon 2015 DEMO  Standard Sirius domain o Family representation o Incremental synchronization • On-the-fly  Concerto EMF-UML2 o Viewpoint for simplified representation Using IncQuery in Sirius 15
  • 16. Eclipsecon 2015 Evaluation - Concerto  First time execution 16 0 5000 10000 15000 20000 25000 30000 35000 9+16 81+160 201+400 401+800 601+1200 801+1600 1201+2400 RUNTIME[MS] SIZE OF TARGET (VIEW) MODEL (ELEMENTS + REFERENCES) Transformation Transformation + Sirius Models EObjects EReferences Diagram nodes Diagram edges 9+16 38 89 9 16 81+160 371 890 81 160 201+400 926 2225 201 400 401+800 1851 4450 401 800 601+1200 2776 6675 601 1200 801+1600 3701 8900 801 1600 1201+2400 5551 13350 1201 2400  10+ derivation rules  Transformation ~33% of overall runtime  Memory consumption ~3.5x of original model
  • 17. Eclipsecon 2015 Evaluation - Concerto  Incremental recalculation 17 0 200 400 600 800 1000 1200 9+16 81+160 201+400 401+800 601+1200 801+1600 1201+2400 RUNTIME[MS] SIZE OF TARGET (VIEW) MODEL (ELEMENTS + REFERENCES) Deletion Deletion + Sirius Models EObjects EReferences Diagram nodes Diagram edges 9+16 38 89 9 16 81+160 371 890 81 160 201+400 926 2225 201 400 401+800 1851 4450 401 800 601+1200 2776 6675 601 1200 801+1600 3701 8900 801 1600 1201+2400 5551 13350 1201 2400  Transformation re-execution < 50 ms  Refreshing < 1 s  Refreshing is also faster
  • 18. Eclipsecon 2015 Conclusions What we have done and where to move forward
  • 19. Eclipsecon 2015 Conclusions  Proof-of-concept version is available o IncQuery does well as expected in incremental recalculations o Incremental refreshing is not available • Would be nice to have explicit API  o Usage requires deep knowledge of both Sirius and IncQuery o Common base with new EMF-IncQuery Viewers  Experience o Concerto EU-ECSEL project • Works with Papyrus and EMF-UML2! o Aimed application scenario • Viewpoint definition directly for EMF models (one-to-one mapping) • Online synchronization 19
  • 20. Eclipsecon 2015 Final points  The examples and more details are available form o https://github.com/FTSRG/iq-sirius-integration o Contributors: • Main: BME-FTSRG, IncQuery Labs Ltd. • Supporting projects: Concerto (EU-Artemis) • (Hopefully) future partner: Obeo   Your contributions (feedback, forum posts, ideas, patches) are very welcome! o To what direction should we enhance this approach? 20

Editor's Notes

  1. Viewpoints Different view of the underlying model Abstraction  Hides complexity