Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model...

25
Benoit Combemale (Inria & Univ. Rennes 1) http://people.irisa.fr/Benoit.Combemale [email protected] @bcombemale in collaboration with OBEO, INRA, and IRIT with the support of the GEMOC initiative Thanks to many discussions with Betty Cheng, Jeff Gray and Ana Moreira Modeling for Smart Cyber-Physical Systems Application to Farming Systems

Transcript of Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model...

Page 1: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Benoit Combemale (Inria & Univ. Rennes 1)http://people.irisa.fr/[email protected]@bcombemale

in collaboration with OBEO, INRA, and IRITwith the support of the GEMOC initiative

Thanks to many discussions with Betty Cheng, Jeff Gray and Ana Moreira

Modeling for Smart Cyber-Physical SystemsApplication to Farming Systems

Page 2: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Complex Software-Intensive Systems

Software intensive systems

- 2Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016

• Multi-engineering approach• Some forms of domain-specific modeling • Software as integration layer• Openness and dynamicity

Page 3: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Aerodynamics

Authorities

Avionics

SafetyRegulations

Airlines

PropulsionSystem

MechanicalStructure

EnvironmentalImpact

NavigationCommunications

Human-Machine

Interaction

3

Multipleconcerns,

stakeholders, tools and methods

Page 4: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

4

Aerodynamics

Authorities

Avionics

SafetyRegulations

Airlines

PropulsionSystem

MechanicalStructure

EnvironmentalImpact

NavigationCommunications

Human-Machine

Interaction

Heterogeneous Modeling

Page 5: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Model-Driven Engineering (MDE)

Distribution

« Service Provider Manager »

Notification Alternate Manager

« Recovery Block Manager »

ComplaintRecovery Block

Manager

« Service Provider

Manager »

Notification Manager

« Service Provider Manager »

Complaint Alternate Manager

« Service Provider

Manager »

Complaint Manager

« Acceptance Test Manager »

Notification Acceptance Test

Manager

« Acceptance Test Manager »

Complaint Acceptance Test

Manager

« Recovery Block Manager »

NotificationRecovery Block

Manager

« Client »

User Citizen Manager

Fault tolerance Roles

ActivitiesViews

Contexts

Security

Functional behavior

Bookstate : StringUser

borrow

return

deliver

setDamagedreserve

Use case

PlatformModel Design

ModelCode

Model

Change one Aspect and Automatically Re-Weave:From Software Product Lines…..to Dynamically Adaptive Systems

- 5Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016

Page 6: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Model-Driven Engineering (MDE)

- 6

J. Whittle, J. Hutchinson, and M. Rouncefield, “The State of Practice in Model-Driven Engineering,” IEEE Software, vol. 31, no. 3, 2014, pp. 79–85.

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016

"Perhaps surprisingly, the majority of MDE examples in our study followed domain-specific modeling paradigms"

Distribution

« Service Provider Manager »

Notification Alternate Manager

« Recovery Block Manager »

ComplaintRecovery Block

Manager

« Service Provider

Manager »

Notification Manager

« Service Provider Manager »

Complaint Alternate Manager

« Service Provider

Manager »

Complaint Manager

« Acceptance Test Manager »

Notification Acceptance Test

Manager

« Acceptance Test Manager »

Complaint Acceptance Test

Manager

« Recovery Block Manager »

NotificationRecovery Block

Manager

« Client »

User Citizen Manager

Fault tolerance Roles

ActivitiesViews

Contexts

Security

Functional behavior

Bookstate : StringUser

borrow

return

deliver

setDamagedreserve

Use case

PlatformModel Design

ModelCode

Model

Change one Aspect and Automatically Re-Weave:From Software Product Lines…..to Dynamically Adaptive Systems

Page 7: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

From Software Systems

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016 - 7

• software design models for functional and non-functional properties

Engineers

System Models

Software

Page 8: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

To Cyber-Physical Systems

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016 - 8

Engineers

System Models Cyber-PhysicalSystem

sensors actuators

Physical System

Software

<<controls>><<senses>>

• multi-engineering design models for global system properties

• runtime models (i.e., included into the control loop) for dynamic adaptations

Page 9: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

To Smart Cyber-Physical Systems

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016 - 9

Engineers

System Models SmartCyber-Physical System

Context

sensors actuators

Physical System

Software

<<controls>><<senses>>

• analysis models (incl. large-scale simulation, constraint solver) of the surrounding context related to global phenomena (e.g. physical laws)

• probabilistic models (predictive techniques from AI, machine learning, SBSE)

• user models (incl., general public/community preferences) and regulations (incl., economic/social/political laws)

Not a solution to an isolated problem

as Doug said

Page 10: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

• analysis models (incl. large-scale simulation, constraint solver) of the surrounding context related to global phenomena (e.g. physical laws)

• probabilistic models (predictive techniques from AI, machine learning, SBSE)

• user models (incl., general public/community preferences) and regulations (incl., economic/social/political laws)

To Smart Cyber-Physical Systems

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016 - 10

Engineers

System Models SmartCyber-Physical System

Context

sensors actuators

Physical System

Software

<<controls>><<senses>>

An MDE-Based Approach for Data Integration and Socio-Technical Coordination in Smart CPS Development

Page 11: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

A MDE-based approach to develop Smart CPS

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016 - 11

• Convergence of engineering and scientific models

• A modeling framework to support the integration of data fromsensors, open data, laws/regulation, scientific models, engineeering models and preferences.

• Domain-specific languages for socio-technical coordination• to engage engineers, scientist, decision makers, communities

and general public• to integrate analysis/probabilistic/user models into the control

loop of smart CPS

Benoit Combemale, Betty Cheng, Ana Moreira, Jean-Michel Bruel, Jeff Gray, "Modeling for Sutainability," INRIA Research Report, 2015.

Page 12: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Using MDE in Smart-CPS Development

- 12

• Cyber-Physical Systems

Engineers

System Models Sustainability System(e.g., smart grid)

Context

sensors actuators

Energy Production/

Consumption System

Software

<<controls>><<senses>>

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016

Page 13: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Using MDE in Smart-CPS Development

- 13

• Based on informed decisions• with environmental, social and economic laws• with open data

Heuristics-Laws

Scientists

Open Data

Engineers

System Models

Physical Laws (economic, environmental, social)

Simulation Tool(incl. constraint solver,

prediction tool, etc.)

Sustainability System(e.g., smart grid)

Context

sensors actuators

Energy Production/

Consumption System

Software

<<controls>><<senses>>

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016

Page 14: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Using MDE in Smart-CPS Development

- 14

• Providing a broader engagement• with "what-if" scenarios for general public and policy makers

Heuristics-Laws

Scientists

Open Data

Engineers

General PublicPolicy Makers

MEEs("what-if" scenarios)

System Models

Physical Laws (economic, environmental, social)

Simulation Tool(incl. constraint solver,

prediction tool, etc.)

Sustainability System(e.g., smart grid)

Context

sensors actuators

Energy Production/

Consumption System

Software

<<controls>><<senses>>

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016

Page 15: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Using MDE in Smart-CPS Development

- 15

• Supporting automatic adaptation• for dynamically adaptable systems

Heuristics-Laws

Scientists

Open Data

Engineers

General PublicPolicy Makers

MEEs("what-if" scenarios)

System Models

Physical Laws (economic, environmental, social)

Simulation Tool(incl. constraint solver,

prediction tool, etc.)

Sustainability System(e.g., smart grid)

Context

sensors actuators

Energy Production/

Consumption System

Software

<<controls>><<senses>>

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016

Page 16: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Using MDE in Smart-CPS Development

- 16

• Application to health, farming system, smart grid…

Heuristics-Laws

Scientists

Open Data

Engineers

General PublicPolicy Makers

MEEs("what-if" scenarios)

System Models

Physical Laws (economic, environmental, social)

Simulation Tool(incl. constraint solver,

prediction tool, etc.)

Sustainability System(e.g., smart grid)

Context

sensors actuators

Energy Production/

Consumption System

Software

<<controls>><<senses>>

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016

Page 17: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Farming System Modeling

- 17

Heuristics-Laws

Scientists

Open Data

Engineers

General PublicPolicy Makers

MEEs("what-if" scenarios)

System Models

Physical Laws (economic, environmental, social)

Simulation Tool(incl. constraint solver,

prediction tool, etc.)

Sustainability System(e.g., smart grid)

Context

sensors actuators

Energy Production/

Consumption System

Software

<<controls>><<senses>>

Farmers

Agronomist

IrrigationSystem

in collaboration with

Jean-Michel Bruel, Benoit Combemale, Ileana Ober, Hélène Raynal, "MDE in Practice for Computational Science," International Conference on Computational Science (ICCS), 2015.

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016

Page 18: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016

Farming System Modeling

- 18

Heuristics-Laws

Scientists

Open Data

Engineers

General PublicPolicy Makers

MEEs("what-if" scenarios)

System Models

Physical Laws (economic, environmental, social)

Simulation Tool(incl. constraint solver,

prediction tool, etc.)

Sustainability System(e.g., smart grid)

Context

sensors actuators

Energy Production/

Consumption System

Software

<<controls>><<senses>>

Farmers

Agronomistin collaboration with

climate serieVegetal and animal lifecycle

farm definition

activity description

hydric stress

IrrigationSystem

Jean-Michel Bruel, Benoit Combemale, Ileana Ober, Hélène Raynal, "MDE in Practice for Computational Science," International Conference on Computational Science (ICCS), 2015.

Page 19: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Farming System Modeling

- 19

Heuristics-Laws

Scientists

Open Data

Engineers

General PublicPolicy Makers

MEEs("what-if" scenarios)

System Models

Physical Laws (economic, environmental, social)

Simulation Tool(incl. constraint solver,

prediction tool, etc.)

Sustainability System(e.g., smart grid)

Context

sensors actuators

Energy Production/

Consumption System

Software

<<controls>><<senses>>

Farmers

Agronomistin collaboration with

climate serieVegetal and animal lifecycle

farm definition

activity description

hydric stressbiomass growth, water consomption and activity schedule

water to beirrigated

IrrigationSystem

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016

Jean-Michel Bruel, Benoit Combemale, Ileana Ober, Hélène Raynal, "MDE in Practice for Computational Science," International Conference on Computational Science (ICCS), 2015.

Page 20: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

- 20

https://github.com/gemoc/farmingmodeling

Farming System Modeling

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016

• Heterogeneous modeling and simulation• Graphical animation and debugging (incl.

breakpoints, timeline, step forward/backward, stimuli management, etc.)

• Multi-dimensional and efficient trace management

• Concurrency simulation and formal analysis

Page 21: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Globalization of Modeling Languages

- 21

Challenge:• DSMLs are developed in an independent manner

to meet the specific needs of domain experts, • DSMLs should also have an associated

framework that regulates interactions needed to support collaboration and work coordination across different system domains.

Benoit Combemale, Julien DeAntoni, Benoit Baudry, Robert B. France, Jean-Marc Jezequel, Jeff Gray, "Globalizing Modeling Languages," Computer, vol. 47, no. 6, pp. 68-71, June, 2014

Farming Modeling with EMF, xText, Sirius and GEMOC

Page 22: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Globalization of Modeling Languages

- 22

Supporting coordinated use of modelinglanguages leads to what we call the globalizationof modeling languages, that is, the use of multiple modeling languages to support the socio-technicalcoordination required in systems and software engineering.

Farming Modeling with EMF, xText, Sirius and GEMOC

Betty H. C. Cheng, Benoît Combemale, Robert B. France, Jean-Marc Jézéquel, Bernhard Rumpe, "Globalizing Domain-Specific Languages", Springer 2015, ISBN 978-3-319-26171-3

Page 23: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Globalization of Modeling Language

- 23

• Context: new emerging DSML in open world⇒ impossible a priori unification⇒ require a posteriori globalization

• Objective: socio-technical coordination to support interactions across different system aspects

⇒ Language-based support for technical integration of multiples domains⇒ Language-based support for social translucence

Farming Modeling with EMF, xText, Sirius and GEMOC

Betty H. C. Cheng, Benoît Combemale, Robert B. France, Jean-Marc Jézéquel, Bernhard Rumpe, "Globalizing Domain-Specific Languages", Springer 2015, ISBN 978-3-319-26171-3

Page 24: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

Open Challenges (just of few!)

Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016 - 24

• Diversity/complexity of DSL relationships• far beyond structural and behavioral alignment, refinement,

decomposition• Separation of concerns vs. Zoom-in/Zoom-out

• Live and collaborative modeling• minimize the round trip between the DSL specification, the

model, and its application (interpretation/compilation), and support personalization (views, properties...)

• Model experiencing environnements

• Integration of analysis and probabilistic models into DSL semantics

Page 25: Modeling for Smart Cyber-Physical Systemsjoerg/SEL/Sustainability... · Use case Platform Model Design Model Code Model Change one Aspect and Automatically Re-Weave: From Software

- 25Modeling for Smart CPS – B. Combemale (INRIA & Univ. Rennes 1) – Jan. 2016

"If you believe that language design can significantlyaffect the quality of software systems, then it shouldfollow that language design can also affect the quality of energy systems. And if the quality of suchenergy systems will, in turn, affect the livability of our planet, then it’s critical that the languagedevelopment community give modeling languagesthe attention they deserve." − Bret Victor (Nov., 2015), http://worrydream.com/ClimateChange