SlideShare a Scribd company logo
Dipartimento di Ingegneria e Scienze
Università degli Studi dell’Aquila
dell’Informazione e Matematica
Generating model with
uncertainty by means of JTL
Gianni Rosa
In Model-Driven Engineering (MDE)
bidirectionality in transformations
has been always regarded as a key
mechanism, but has rarely produced
anticipated benefits.
Why?
…probably the main reason is the
ambivalence concerning non-bijectivity.
Propagating changes from one side to the other is
typically non univocal as more than one correct
solution is admitted.
We discuss how dealing with multiple
solutions is important and requires
specialized tools and support
Gianni Rosa – University of L’Aquila - ITALY
5
Non-bijectivity
Most examples of bidirectional transformations are
non-bijective, therefore there may be multiple ways to
transform two models into a consistent state,
introducing uncertainty and non-determinism.
T-1
Δ Manual Changes
TMs Mt
Mt’
Ms1’
?Msn’
Ms1’
Source model Target model
Hierarchical State Machine Non-hierarchical state
machine obtained by
flattening the source model
T
Source model Target model
Δ Manual ChangesThe designer performs
some manual changes on
the generated model
T
Source model Target model
Δ Manual ChangesThe designer performs
some manual changes on
the generated model
T
Problem
How to back propagate the manual changes on
the target model towards the source models
according to the knowledge encoded in T?
What about non-bijectivity?
Gianni Rosa – University of L’Aquila - ITALY
9
Specifying transformation with JTL
Fragment of the HSM2NHSM transformation
specified in JTL
9
transformation hsm2nhsm(source : HSM, target : NHSM) {
top relation StateMachine2StateMachine {
enforce domain source sSM : HSM::StateMachine;
enforce domain target tSM : NHSM::StateMachine;
}
top relation State2State {
enforce domain source sourceState : HSM::State;
enforce domain target targetState : NHSM::State;
when {
sourceState.owningCompositeState.oclIsUndefined();
}
}
top relation CompositeState2State {
enforce domain source sourceState : HSM::CompositeState;
enforce domain target targetState : NHSM::State;
}
}
Gianni Rosa – University of L’Aquila - ITALY
10
transformation hsm2nhsm(source : HSM, target : NHSM) {
top relation StateMachine2StateMachine {
enforce domain source sSM : HSM::StateMachine;
enforce domain target tSM : NHSM::StateMachine;
}
top relation State2State {
enforce domain source sourceState : HSM::State;
enforce domain target targetState : NHSM::State;
when {
sourceState.owningCompositeState.oclIsUndefined();
}
}
top relation CompositeState2State {
enforce domain source sourceState : HSM::CompositeState;
enforce domain target targetState : NHSM::State;
}
}
Specifying transformation with JTL
Fragment of the HSM2NHSM transformation
specified in JTL
10
c
It transforms hierarchical state
machines into flat state machines and
the other way round.
Gianni Rosa – University of L’Aquila - ITALY
11
transformation hsm2nhsm(source : HSM, target : NHSM) {
top relation StateMachine2StateMachine {
enforce domain source sSM : HSM::StateMachine;
enforce domain target tSM : NHSM::StateMachine;
}
top relation State2State {
enforce domain source sourceState : HSM::State;
enforce domain target targetState : NHSM::State;
when {
sourceState.owningCompositeState.oclIsUndefined();
}
}
top relation CompositeState2State {
enforce domain source sourceState : HSM::CompositeState;
enforce domain target targetState : NHSM::State;
}
}
Specifying transformation with JTL
Fragment of the HSM2NHSM transformation
specified in JTL
11
c
The forward transformation is clearly non-injective:
both «State» and «CompositeState» are mapped
to the same target «State»
Gianni Rosa – University of L’Aquila - ITALY
12
transformation hsm2nhsm(source : HSM, target : NHSM) {
top relation StateMachine2StateMachine {
enforce domain source sSM : HSM::StateMachine;
enforce domain target tSM : NHSM::StateMachine;
}
top relation State2State {
enforce domain source sourceState : HSM::State;
enforce domain target targetState : NHSM::State;
when {
sourceState.owningCompositeState.oclIsUndefined();
}
}
top relation CompositeState2State {
enforce domain source sourceState : HSM::CompositeState;
enforce domain target targetState : NHSM::State;
}
}
Specifying transformation with JTL
Fragment of the HSM2NHSM transformation
specified in JTL
12
c
The forward transformation is clearly non-injective:
both «State» and «CompositeState» are mapped
to the same target «State»
Source model Target model
Δ Manual Changes
T
T
Modifications on the target are
back propagated to the source
which is consistently updated
making use of tracing
information
Gianni Rosa – University of L’Aquila - ITALY
14
Combinatorial explosion
Not surprisingly, there is not a unique way of updating
the source model.
Despite the changes on the target model are
relatively simple, their impact on the source model is
typically exponential.
Gianni Rosa – University of L’Aquila - ITALY
15
Combinatorial explosion
|print| × |completed| × |critical error| = 4 * 4 * 3 = 48
where |name| is the number of alternative model
elements called name.
Gianni Rosa – University of L’Aquila - ITALY
16
Combinatorial explosion
|print| × |completed| × |critical error| = 4 * 4 * 3 = 48
where |name| is the number of alternative model
elements called name.
Solution? Representing multiple solutions with
Model Uncertainty
Gianni Rosa – University of L’Aquila - ITALY
17
Uncertainty
Uncertainty is a consequence of non-determinism.
Dealing with a multitude of models obtained by a
non-deterministic transformation requires us to
consider uncertainty as a first-class concern.
For any metamodel M an uncertainty metamodel
U(M) can obtained by means of an automated
transformation:
U: Ecore  Ecore
Gianni Rosa – University of L’Aquila - ITALY
18
Uncertainty metamodel
.
HSM
Metamodel
U(HSM)
Metamodel
Gianni Rosa – University of L’Aquila - ITALY
19
Uncertainty metamodel
.
HSM
Metamodel
U(HSM)
Metamodel
the abstract metaclass
TracedClass with
attributes trace and ref is
added
Gianni Rosa – University of L’Aquila - ITALY
20
Uncertainty metamodel
.
HSM
Metamodel
U(HSM)
Metamodel
the abstract metaclass
TracedClass with
attributes trace and ref is
added
StateMachine is generalized by
TracedClass
Gianni Rosa – University of L’Aquila - ITALY
21
Uncertainty metamodel
.
HSM
Metamodel
U(HSM)
Metamodel
the abstract metaclass
TracedClass with
attributes trace and ref is
added
a direct sub-metaclass of
StateMachine is added
StateMachine is generalized by
TracedClass
Gianni Rosa – University of L’Aquila - ITALY
22
Uncertainty metamodel
.
HSM
Metamodel
U(HSM)
Metamodel
the abstract metaclass
TracedClass with
attributes trace and ref is
added
a direct sub-metaclass of
StateMachine is added
StateMachine is generalized by
TracedClass
The composition enable
the representation of a
point of uncertainty and its
alternatives
the cardinality of attributes and references are relaxed
Gianni Rosa – University of L’Aquila - ITALY
23
Extension of JTL Semantic
The JTL semantics has been extended in order to
factorize the solution space and generate a model
with uncertainty instead of a set of models.
Gianni Rosa – University of L’Aquila - ITALY
24
Extension of JTL Semantic
The JTL semantics has been extended in order to
factorize the solution space and generate a model
with uncertainty instead of a set of models.
Gianni Rosa – University of L’Aquila - ITALY
25
Extension of JTL Semantic
The JTL semantics has been extended in order to
factorize the solution space and generate a model
with uncertainty instead of a set of models.
Example
Gianni Rosa – University of L’Aquila - ITALY
27
Conclusion
The JTL semantics has been refined in order to be able
to generate directly the model with uncertainty
semantically corresponding to the complete solution
space.
We distinguish among two different behaviors:
- extensional, generate all the models satisfying the
relation defined in the bidirectional transformation;
- intensional (or with uncertainty), generate a model
with uncertainty wich is semantically equivalent to
the models of the extensive case
The approach is implemented on Eclipse/EMF.
Thank you!

More Related Content

Viewers also liked

#LearnPAd prototype early validation - feedbacks from end users
#LearnPAd prototype early validation - feedbacks from end users#LearnPAd prototype early validation - feedbacks from end users
#LearnPAd prototype early validation - feedbacks from end users
Andrea Sergiacomi
 
BPM4eGOV „e“ oder „i“ –mobiles BPM in der Wolke –der Versuch einer Auslegeord...
BPM4eGOV „e“ oder „i“ –mobiles BPM in der Wolke –der Versuch einer Auslegeord...BPM4eGOV „e“ oder „i“ –mobiles BPM in der Wolke –der Versuch einer Auslegeord...
BPM4eGOV „e“ oder „i“ –mobiles BPM in der Wolke –der Versuch einer Auslegeord...
ProjectLearnPAd
 
Modeling for Learning in Public Administrations
Modeling for Learning in Public AdministrationsModeling for Learning in Public Administrations
Modeling for Learning in Public Administrations
ProjectLearnPAd
 
Model Based Learning - The Learn PAd Way
Model Based Learning - The Learn PAd WayModel Based Learning - The Learn PAd Way
Model Based Learning - The Learn PAd Way
ProjectLearnPAd
 
Software Testing and/or Software Monitoring: Differences and Commonalities
Software Testingand/or Software Monitoring: Differences and CommonalitiesSoftware Testingand/or Software Monitoring: Differences and Commonalities
Software Testing and/or Software Monitoring: Differences and Commonalities
ProjectLearnPAd
 
Business processmodels aa_knowledgemanagementplatform-riga-20151026
Business processmodels aa_knowledgemanagementplatform-riga-20151026Business processmodels aa_knowledgemanagementplatform-riga-20151026
Business processmodels aa_knowledgemanagementplatform-riga-20151026
IIBA_Latvia_Chapter
 
Metamodelling Architectures for Business Process in Organizations
Metamodelling Architectures for Business Process in OrganizationsMetamodelling Architectures for Business Process in Organizations
Metamodelling Architectures for Business Process in Organizations
Gianni Rosa
 
Learn PAd Business Process Organizational Learning
Learn PAd Business Process Organizational LearningLearn PAd Business Process Organizational Learning
Learn PAd Business Process Organizational Learning
ProjectLearnPAd
 
Integration of BPMN and CMMN
Integration of BPMN and CMMNIntegration of BPMN and CMMN
Integration of BPMN and CMMN
ProjectLearnPAd
 

Viewers also liked (9)

#LearnPAd prototype early validation - feedbacks from end users
#LearnPAd prototype early validation - feedbacks from end users#LearnPAd prototype early validation - feedbacks from end users
#LearnPAd prototype early validation - feedbacks from end users
 
BPM4eGOV „e“ oder „i“ –mobiles BPM in der Wolke –der Versuch einer Auslegeord...
BPM4eGOV „e“ oder „i“ –mobiles BPM in der Wolke –der Versuch einer Auslegeord...BPM4eGOV „e“ oder „i“ –mobiles BPM in der Wolke –der Versuch einer Auslegeord...
BPM4eGOV „e“ oder „i“ –mobiles BPM in der Wolke –der Versuch einer Auslegeord...
 
Modeling for Learning in Public Administrations
Modeling for Learning in Public AdministrationsModeling for Learning in Public Administrations
Modeling for Learning in Public Administrations
 
Model Based Learning - The Learn PAd Way
Model Based Learning - The Learn PAd WayModel Based Learning - The Learn PAd Way
Model Based Learning - The Learn PAd Way
 
Software Testing and/or Software Monitoring: Differences and Commonalities
Software Testingand/or Software Monitoring: Differences and CommonalitiesSoftware Testingand/or Software Monitoring: Differences and Commonalities
Software Testing and/or Software Monitoring: Differences and Commonalities
 
Business processmodels aa_knowledgemanagementplatform-riga-20151026
Business processmodels aa_knowledgemanagementplatform-riga-20151026Business processmodels aa_knowledgemanagementplatform-riga-20151026
Business processmodels aa_knowledgemanagementplatform-riga-20151026
 
Metamodelling Architectures for Business Process in Organizations
Metamodelling Architectures for Business Process in OrganizationsMetamodelling Architectures for Business Process in Organizations
Metamodelling Architectures for Business Process in Organizations
 
Learn PAd Business Process Organizational Learning
Learn PAd Business Process Organizational LearningLearn PAd Business Process Organizational Learning
Learn PAd Business Process Organizational Learning
 
Integration of BPMN and CMMN
Integration of BPMN and CMMNIntegration of BPMN and CMMN
Integration of BPMN and CMMN
 

Similar to Generating Model with Uncertainty by means of JTL

Mise14 @ ICSE1 14 Uncertainty in Bidirectional Transformations
Mise14 @ ICSE1 14 Uncertainty in Bidirectional TransformationsMise14 @ ICSE1 14 Uncertainty in Bidirectional Transformations
Mise14 @ ICSE1 14 Uncertainty in Bidirectional Transformations
Alfonso Pierantonio
 
Towards Analysing Non-Determinism in Bidirectional Transformations (AMT2014)
Towards Analysing Non-Determinismin Bidirectional Transformations (AMT2014)Towards Analysing Non-Determinismin Bidirectional Transformations (AMT2014)
Towards Analysing Non-Determinism in Bidirectional Transformations (AMT2014)
Romina Eramo
 
Towards Analysing Non-Determinism in Bidirectional Transformations
Towards Analysing Non-Determinismin Bidirectional TransformationsTowards Analysing Non-Determinismin Bidirectional Transformations
Towards Analysing Non-Determinism in Bidirectional Transformations
Romina Eramo
 
pam_1997
pam_1997pam_1997
pam_1997
Jacek Marczyk
 
Statistical learning vs. Machine Learning
Statistical learning vs. Machine LearningStatistical learning vs. Machine Learning
Statistical learning vs. Machine Learning
Atanu Ray
 
PhD Thesis Presentation
PhD Thesis PresentationPhD Thesis Presentation
PhD Thesis Presentation
Lola Burgueño
 
Evaluation of the Process of Attention using the Simulation of Processes
Evaluation of the Process of Attention using the Simulation of ProcessesEvaluation of the Process of Attention using the Simulation of Processes
Evaluation of the Process of Attention using the Simulation of Processes
ijtsrd
 
Factorization Machines and Applications in Recommender Systems
Factorization Machines and Applications in Recommender SystemsFactorization Machines and Applications in Recommender Systems
Factorization Machines and Applications in Recommender Systems
Evgeniy Marinov
 
Petr_Kalina_Thesis_1_sided_version
Petr_Kalina_Thesis_1_sided_versionPetr_Kalina_Thesis_1_sided_version
Petr_Kalina_Thesis_1_sided_version
Petr Kalina
 
Improved Traceability for Bidirectional Model Transformations - MDETools2018
Improved Traceability for Bidirectional Model Transformations - MDETools2018Improved Traceability for Bidirectional Model Transformations - MDETools2018
Improved Traceability for Bidirectional Model Transformations - MDETools2018
Romina Eramo
 
Non determinism and bidirectional model transformations
Non determinism and bidirectional model transformationsNon determinism and bidirectional model transformations
Non determinism and bidirectional model transformations
Alfonso Pierantonio
 
SVD and the Netflix Dataset
SVD and the Netflix DatasetSVD and the Netflix Dataset
SVD and the Netflix Dataset
Ben Mabey
 
Digital twin
Digital twinDigital twin
Digital twin
Paperjam_redaction
 
0 Model Interpretation setting.pdf
0 Model Interpretation setting.pdf0 Model Interpretation setting.pdf
0 Model Interpretation setting.pdf
Leonardo Auslender
 
Managing Uncertainty in Bidirectional Model Transformations
Managing Uncertainty in Bidirectional Model Transformations Managing Uncertainty in Bidirectional Model Transformations
Managing Uncertainty in Bidirectional Model Transformations
Alfonso Pierantonio
 
PyData Miami 2019, Quantum Generalized Linear Models
PyData Miami 2019, Quantum Generalized Linear ModelsPyData Miami 2019, Quantum Generalized Linear Models
PyData Miami 2019, Quantum Generalized Linear Models
Colleen Farrelly
 
Steffen Rendle, Research Scientist, Google at MLconf SF
Steffen Rendle, Research Scientist, Google at MLconf SFSteffen Rendle, Research Scientist, Google at MLconf SF
Steffen Rendle, Research Scientist, Google at MLconf SF
MLconf
 
Steffen Rendle, Research Scientist, Google at MLconf SF
Steffen Rendle, Research Scientist, Google at MLconf SFSteffen Rendle, Research Scientist, Google at MLconf SF
Steffen Rendle, Research Scientist, Google at MLconf SF
MLconf
 
JELINSKI-MORANDA SOFTWARE RELIABILITY GROWTH MODEL: A BRIEF LITERATURE AND MO...
JELINSKI-MORANDA SOFTWARE RELIABILITY GROWTH MODEL: A BRIEF LITERATURE AND MO...JELINSKI-MORANDA SOFTWARE RELIABILITY GROWTH MODEL: A BRIEF LITERATURE AND MO...
JELINSKI-MORANDA SOFTWARE RELIABILITY GROWTH MODEL: A BRIEF LITERATURE AND MO...
ijseajournal
 
Partial Object Detection in Inclined Weather Conditions
Partial Object Detection in Inclined Weather ConditionsPartial Object Detection in Inclined Weather Conditions
Partial Object Detection in Inclined Weather Conditions
IRJET Journal
 

Similar to Generating Model with Uncertainty by means of JTL (20)

Mise14 @ ICSE1 14 Uncertainty in Bidirectional Transformations
Mise14 @ ICSE1 14 Uncertainty in Bidirectional TransformationsMise14 @ ICSE1 14 Uncertainty in Bidirectional Transformations
Mise14 @ ICSE1 14 Uncertainty in Bidirectional Transformations
 
Towards Analysing Non-Determinism in Bidirectional Transformations (AMT2014)
Towards Analysing Non-Determinismin Bidirectional Transformations (AMT2014)Towards Analysing Non-Determinismin Bidirectional Transformations (AMT2014)
Towards Analysing Non-Determinism in Bidirectional Transformations (AMT2014)
 
Towards Analysing Non-Determinism in Bidirectional Transformations
Towards Analysing Non-Determinismin Bidirectional TransformationsTowards Analysing Non-Determinismin Bidirectional Transformations
Towards Analysing Non-Determinism in Bidirectional Transformations
 
pam_1997
pam_1997pam_1997
pam_1997
 
Statistical learning vs. Machine Learning
Statistical learning vs. Machine LearningStatistical learning vs. Machine Learning
Statistical learning vs. Machine Learning
 
PhD Thesis Presentation
PhD Thesis PresentationPhD Thesis Presentation
PhD Thesis Presentation
 
Evaluation of the Process of Attention using the Simulation of Processes
Evaluation of the Process of Attention using the Simulation of ProcessesEvaluation of the Process of Attention using the Simulation of Processes
Evaluation of the Process of Attention using the Simulation of Processes
 
Factorization Machines and Applications in Recommender Systems
Factorization Machines and Applications in Recommender SystemsFactorization Machines and Applications in Recommender Systems
Factorization Machines and Applications in Recommender Systems
 
Petr_Kalina_Thesis_1_sided_version
Petr_Kalina_Thesis_1_sided_versionPetr_Kalina_Thesis_1_sided_version
Petr_Kalina_Thesis_1_sided_version
 
Improved Traceability for Bidirectional Model Transformations - MDETools2018
Improved Traceability for Bidirectional Model Transformations - MDETools2018Improved Traceability for Bidirectional Model Transformations - MDETools2018
Improved Traceability for Bidirectional Model Transformations - MDETools2018
 
Non determinism and bidirectional model transformations
Non determinism and bidirectional model transformationsNon determinism and bidirectional model transformations
Non determinism and bidirectional model transformations
 
SVD and the Netflix Dataset
SVD and the Netflix DatasetSVD and the Netflix Dataset
SVD and the Netflix Dataset
 
Digital twin
Digital twinDigital twin
Digital twin
 
0 Model Interpretation setting.pdf
0 Model Interpretation setting.pdf0 Model Interpretation setting.pdf
0 Model Interpretation setting.pdf
 
Managing Uncertainty in Bidirectional Model Transformations
Managing Uncertainty in Bidirectional Model Transformations Managing Uncertainty in Bidirectional Model Transformations
Managing Uncertainty in Bidirectional Model Transformations
 
PyData Miami 2019, Quantum Generalized Linear Models
PyData Miami 2019, Quantum Generalized Linear ModelsPyData Miami 2019, Quantum Generalized Linear Models
PyData Miami 2019, Quantum Generalized Linear Models
 
Steffen Rendle, Research Scientist, Google at MLconf SF
Steffen Rendle, Research Scientist, Google at MLconf SFSteffen Rendle, Research Scientist, Google at MLconf SF
Steffen Rendle, Research Scientist, Google at MLconf SF
 
Steffen Rendle, Research Scientist, Google at MLconf SF
Steffen Rendle, Research Scientist, Google at MLconf SFSteffen Rendle, Research Scientist, Google at MLconf SF
Steffen Rendle, Research Scientist, Google at MLconf SF
 
JELINSKI-MORANDA SOFTWARE RELIABILITY GROWTH MODEL: A BRIEF LITERATURE AND MO...
JELINSKI-MORANDA SOFTWARE RELIABILITY GROWTH MODEL: A BRIEF LITERATURE AND MO...JELINSKI-MORANDA SOFTWARE RELIABILITY GROWTH MODEL: A BRIEF LITERATURE AND MO...
JELINSKI-MORANDA SOFTWARE RELIABILITY GROWTH MODEL: A BRIEF LITERATURE AND MO...
 
Partial Object Detection in Inclined Weather Conditions
Partial Object Detection in Inclined Weather ConditionsPartial Object Detection in Inclined Weather Conditions
Partial Object Detection in Inclined Weather Conditions
 

Recently uploaded

digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
drwaing
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
mamunhossenbd75
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
PauloRodrigues104553
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
Divyam548318
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 

Recently uploaded (20)

digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 

Generating Model with Uncertainty by means of JTL

  • 1. Dipartimento di Ingegneria e Scienze Università degli Studi dell’Aquila dell’Informazione e Matematica Generating model with uncertainty by means of JTL Gianni Rosa
  • 2. In Model-Driven Engineering (MDE) bidirectionality in transformations has been always regarded as a key mechanism, but has rarely produced anticipated benefits. Why?
  • 3. …probably the main reason is the ambivalence concerning non-bijectivity. Propagating changes from one side to the other is typically non univocal as more than one correct solution is admitted.
  • 4. We discuss how dealing with multiple solutions is important and requires specialized tools and support
  • 5. Gianni Rosa – University of L’Aquila - ITALY 5 Non-bijectivity Most examples of bidirectional transformations are non-bijective, therefore there may be multiple ways to transform two models into a consistent state, introducing uncertainty and non-determinism. T-1 Δ Manual Changes TMs Mt Mt’ Ms1’ ?Msn’ Ms1’
  • 6. Source model Target model Hierarchical State Machine Non-hierarchical state machine obtained by flattening the source model T
  • 7. Source model Target model Δ Manual ChangesThe designer performs some manual changes on the generated model T
  • 8. Source model Target model Δ Manual ChangesThe designer performs some manual changes on the generated model T Problem How to back propagate the manual changes on the target model towards the source models according to the knowledge encoded in T? What about non-bijectivity?
  • 9. Gianni Rosa – University of L’Aquila - ITALY 9 Specifying transformation with JTL Fragment of the HSM2NHSM transformation specified in JTL 9 transformation hsm2nhsm(source : HSM, target : NHSM) { top relation StateMachine2StateMachine { enforce domain source sSM : HSM::StateMachine; enforce domain target tSM : NHSM::StateMachine; } top relation State2State { enforce domain source sourceState : HSM::State; enforce domain target targetState : NHSM::State; when { sourceState.owningCompositeState.oclIsUndefined(); } } top relation CompositeState2State { enforce domain source sourceState : HSM::CompositeState; enforce domain target targetState : NHSM::State; } }
  • 10. Gianni Rosa – University of L’Aquila - ITALY 10 transformation hsm2nhsm(source : HSM, target : NHSM) { top relation StateMachine2StateMachine { enforce domain source sSM : HSM::StateMachine; enforce domain target tSM : NHSM::StateMachine; } top relation State2State { enforce domain source sourceState : HSM::State; enforce domain target targetState : NHSM::State; when { sourceState.owningCompositeState.oclIsUndefined(); } } top relation CompositeState2State { enforce domain source sourceState : HSM::CompositeState; enforce domain target targetState : NHSM::State; } } Specifying transformation with JTL Fragment of the HSM2NHSM transformation specified in JTL 10 c It transforms hierarchical state machines into flat state machines and the other way round.
  • 11. Gianni Rosa – University of L’Aquila - ITALY 11 transformation hsm2nhsm(source : HSM, target : NHSM) { top relation StateMachine2StateMachine { enforce domain source sSM : HSM::StateMachine; enforce domain target tSM : NHSM::StateMachine; } top relation State2State { enforce domain source sourceState : HSM::State; enforce domain target targetState : NHSM::State; when { sourceState.owningCompositeState.oclIsUndefined(); } } top relation CompositeState2State { enforce domain source sourceState : HSM::CompositeState; enforce domain target targetState : NHSM::State; } } Specifying transformation with JTL Fragment of the HSM2NHSM transformation specified in JTL 11 c The forward transformation is clearly non-injective: both «State» and «CompositeState» are mapped to the same target «State»
  • 12. Gianni Rosa – University of L’Aquila - ITALY 12 transformation hsm2nhsm(source : HSM, target : NHSM) { top relation StateMachine2StateMachine { enforce domain source sSM : HSM::StateMachine; enforce domain target tSM : NHSM::StateMachine; } top relation State2State { enforce domain source sourceState : HSM::State; enforce domain target targetState : NHSM::State; when { sourceState.owningCompositeState.oclIsUndefined(); } } top relation CompositeState2State { enforce domain source sourceState : HSM::CompositeState; enforce domain target targetState : NHSM::State; } } Specifying transformation with JTL Fragment of the HSM2NHSM transformation specified in JTL 12 c The forward transformation is clearly non-injective: both «State» and «CompositeState» are mapped to the same target «State»
  • 13. Source model Target model Δ Manual Changes T T Modifications on the target are back propagated to the source which is consistently updated making use of tracing information
  • 14. Gianni Rosa – University of L’Aquila - ITALY 14 Combinatorial explosion Not surprisingly, there is not a unique way of updating the source model. Despite the changes on the target model are relatively simple, their impact on the source model is typically exponential.
  • 15. Gianni Rosa – University of L’Aquila - ITALY 15 Combinatorial explosion |print| × |completed| × |critical error| = 4 * 4 * 3 = 48 where |name| is the number of alternative model elements called name.
  • 16. Gianni Rosa – University of L’Aquila - ITALY 16 Combinatorial explosion |print| × |completed| × |critical error| = 4 * 4 * 3 = 48 where |name| is the number of alternative model elements called name. Solution? Representing multiple solutions with Model Uncertainty
  • 17. Gianni Rosa – University of L’Aquila - ITALY 17 Uncertainty Uncertainty is a consequence of non-determinism. Dealing with a multitude of models obtained by a non-deterministic transformation requires us to consider uncertainty as a first-class concern. For any metamodel M an uncertainty metamodel U(M) can obtained by means of an automated transformation: U: Ecore  Ecore
  • 18. Gianni Rosa – University of L’Aquila - ITALY 18 Uncertainty metamodel . HSM Metamodel U(HSM) Metamodel
  • 19. Gianni Rosa – University of L’Aquila - ITALY 19 Uncertainty metamodel . HSM Metamodel U(HSM) Metamodel the abstract metaclass TracedClass with attributes trace and ref is added
  • 20. Gianni Rosa – University of L’Aquila - ITALY 20 Uncertainty metamodel . HSM Metamodel U(HSM) Metamodel the abstract metaclass TracedClass with attributes trace and ref is added StateMachine is generalized by TracedClass
  • 21. Gianni Rosa – University of L’Aquila - ITALY 21 Uncertainty metamodel . HSM Metamodel U(HSM) Metamodel the abstract metaclass TracedClass with attributes trace and ref is added a direct sub-metaclass of StateMachine is added StateMachine is generalized by TracedClass
  • 22. Gianni Rosa – University of L’Aquila - ITALY 22 Uncertainty metamodel . HSM Metamodel U(HSM) Metamodel the abstract metaclass TracedClass with attributes trace and ref is added a direct sub-metaclass of StateMachine is added StateMachine is generalized by TracedClass The composition enable the representation of a point of uncertainty and its alternatives the cardinality of attributes and references are relaxed
  • 23. Gianni Rosa – University of L’Aquila - ITALY 23 Extension of JTL Semantic The JTL semantics has been extended in order to factorize the solution space and generate a model with uncertainty instead of a set of models.
  • 24. Gianni Rosa – University of L’Aquila - ITALY 24 Extension of JTL Semantic The JTL semantics has been extended in order to factorize the solution space and generate a model with uncertainty instead of a set of models.
  • 25. Gianni Rosa – University of L’Aquila - ITALY 25 Extension of JTL Semantic The JTL semantics has been extended in order to factorize the solution space and generate a model with uncertainty instead of a set of models.
  • 27. Gianni Rosa – University of L’Aquila - ITALY 27 Conclusion The JTL semantics has been refined in order to be able to generate directly the model with uncertainty semantically corresponding to the complete solution space. We distinguish among two different behaviors: - extensional, generate all the models satisfying the relation defined in the bidirectional transformation; - intensional (or with uncertainty), generate a model with uncertainty wich is semantically equivalent to the models of the extensive case The approach is implemented on Eclipse/EMF.