180 likes | 326 Views
Mr. Grégory NAIN IRISA / INRIA – Rennes French National Intitute of Research in Computer Sciences. Authors: Grégory NAIN, Erwan DAUBERT, Olivier BARAIS, Jean-Marc JEZEQUEL IRISA / INRIA / Université de Rennes, Rennes, France.
E N D
Mr. Grégory NAIN IRISA / INRIA – Rennes French National Intitute of Research in Computer Sciences
Authors: Grégory NAIN, Erwan DAUBERT, Olivier BARAIS, Jean-Marc JEZEQUEL IRISA / INRIA / Université de Rennes, Rennes, France USING MDE TO BUILD ASCHIZOPHRENIC MIDDLEWARE FORHOME/BUILDING AUTOMATION
The context Mrs. Robinson • Live in her house • Mobility difficulties • Memory loss • Equiped with • LonWorks for light managment • Velux for shutters Picture from http://www.apt.gc.ca
The context Mr. John Doe • Live in his house • Mobility difficulties due to an accident • Found of technology • Equiped with a remote control • for light & shutters managment through KNX • UPnP devices control Picture from http://ditwww.epfl.ch
The Needs For both • Health professional (nurse) to verify • Health state of the patient • Configuration of the house (shutters, lights, etc.) Mrs. Robinson Mr. Doe Would like his devices to be UPnP compliant Reminders during the day because of memory loss
First Proposition Mrs. Robinson Mr. Doe • A gateway for lights (LonWorks) • A gateway for shutters (Velux) • Specific developpment to connect the health center and the gateways • A specific developpment for reminders • A gateway for shutters and lights (KNX) • Another developpment to connect health center and gateway • No UPnP export available for KNX devices
At a City Level First proposition EnTiMid solution KNX Technology Unified generated protocol (DPWS, XMMP, etc.) LonWorks Technology
EnTiMid Propositions • Abstraction of the technologies • Common communication structure • Inter-connection facilities • A unique developpment to • Connect physical networks to the system • Make it compliant with other technologies • High-level protocols generations
EnTiMid Physical View • Built on an OSGi platform • Service oriented architecture • Extremely modular • Set of bundles (kind of components in OSGi) • Software composition according to specific needs • Natively dynamic (insall, start, update, stop…)
EnTiMid Logical View Business personnalities Layered Schizophrenic Communications by messages Technological personnalities
Personalities Generation PIM PSM translations • EnTiMid defines a Platform Independent Model (PIM) : the framework • Protocols define Platform Specific Models (PSM) • Bundles translate PSM instances (physical frames) into PIM instances (EnTiMid messages)
Personalities Generation UPnP model extraction Framework methods annotated @UpnpMethod public boolean getState() {… Implementation classes inherits the method anotations Annotation inheritance: http://www.fusionsoft-online.com/articles-java-annotations.php
Personalities Generation UPnP model extraction Framework class used for Service description generation Class => Service Method => Action in Service Devices implementation classes => UPnPDevice description Annotation inheritance: http://www.fusionsoft-online.com/articles-java-annotations.php
Personalities Generation UPnP Descriptions TechA UPnP d2 d1 d3 d4 2 D1.xml D2.xml D3.xml D4.xml UPnP 1 SimpleSwitch.xml Shutter.xml CyberLink tool from CyberGarage
Personalities Generation DPWS Devices Generation TechA DPWS DPWSDevices lib d2 Install, start d1 d3 d4 D2.java D1.java JETTemplate D3.java JDT Compiler+ Bundle creation D4.java
Ongoing Work • Use of ESB to create composed services • Safety (people) • Context adaptation • Degraded mode • Security (access) • Performances • End-User programming for user interfaces • Managing variability using aspects and models « Taming Dynamically Adaptive Systems Using Models and Aspects » ICSE’09