{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,10,12]],"date-time":"2025-10-12T04:34:38Z","timestamp":1760243678292,"version":"build-2065373602"},"reference-count":39,"publisher":"MDPI AG","issue":"7","license":[{"start":{"date-parts":[[2012,6,25]],"date-time":"2012-06-25T00:00:00Z","timestamp":1340582400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/3.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>In the Future Internet, applications based on Wireless Sensor Networks will have to support reconfiguration with minimum human intervention, depending on dynamic context changes in their environment. These situations create a need for building these applications as adaptive software and including techniques that allow the context acquisition and decisions about adaptation. However, contexts use to be made up of complex information acquired from heterogeneous devices and user characteristics, making them difficult to manage. So, instead of building context-aware applications from scratch, we propose to use FamiWare, a family of middleware for Ambient Intelligence specifically designed to be aware of contexts in sensor and smartphone devices. It provides both, several monitoring services to acquire contexts from devices and users, and a context-awareness service to analyze and detect context changes. However, the current version of FamiWare does not allow the automatic incorporation related to the management of new contexts into the FamiWare family. To overcome this shortcoming, in this work, we first present how to model the context using a metamodel to define the contexts that must to be taken into account in an instantiation of FamiWare for a certain Ambient Intelligence system. Then, to configure a new context-aware version of FamiWare and to generate code ready-to-install within heterogeneous devices, we define a mapping that automatically transforms metamodel elements defining contexts into elements of the FamiWare family, and we also use the FamiWare configuration process to customize the new context-aware variant. Finally, we evaluate the benefits of our process, and we analyze both that the new version of the middleware works as expected and that it manages the contexts in an efficient way.<\/jats:p>","DOI":"10.3390\/s120708544","type":"journal-article","created":{"date-parts":[[2012,6,25]],"date-time":"2012-06-25T16:55:20Z","timestamp":1340643320000},"page":"8544-8570","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":14,"title":["Configuring a Context-Aware Middleware for Wireless Sensor Networks"],"prefix":"10.3390","volume":"12","author":[{"given":"Nadia","family":"G\u00e1mez","sequence":"first","affiliation":[{"name":"Department of Computer Science, University of M\u00e1laga, Campus de Teatinos, 29071, M\u00e1laga, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Javier","family":"Cubo","sequence":"additional","affiliation":[{"name":"Department of Computer Science, University of M\u00e1laga, Campus de Teatinos, 29071, M\u00e1laga, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Lidia","family":"Fuentes","sequence":"additional","affiliation":[{"name":"Department of Computer Science, University of M\u00e1laga, Campus de Teatinos, 29071, M\u00e1laga, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Ernesto","family":"Pimentel","sequence":"additional","affiliation":[{"name":"Department of Computer Science, University of M\u00e1laga, Campus de Teatinos, 29071, M\u00e1laga, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2012,6,25]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"4539","DOI":"10.3390\/s110504539","article-title":"Study on the context-aware middleware for ubiquitous greenhouses using wireless sensor networks","volume":"11","author":"Hwang","year":"2011","journal-title":"Sensors"},{"key":"ref_2","unstructured":"Tan, R., Xing, G., Chen, J., Song, W.-Z., and Huang, R. (December, January 30). Quality-Driven Volcanic Earthquake Detection Using Wireless Sensor Networks. San Diego, CA, USA."},{"key":"ref_3","first-page":"1478","article-title":"Ambient intelligence vision: A perspective","volume":"16","author":"Bravo","year":"2010","journal-title":"J. Univ. Comput. Sci."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"315","DOI":"10.1007\/s00779-010-0358-9","article-title":"Theme Issue: Ubiquitous computing and ambient intelligence","volume":"15","author":"Bravo","year":"2011","journal-title":"Pers. Ubiquitous Comput."},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Picco, G.P. (2010, January 7\u20138). Software Engineering and Wireless Sensor Networks: Happy Marriage or Consensual Divorce?. Santa Fe, NM, USA.","DOI":"10.1145\/1882362.1882421"},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Dargie, W. (2009). Context-Aware Computing and Self-Managing Systems, CRC Press.","DOI":"10.1201\/9781420077728"},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Schilit, B, Adams, N., and Want, R. (1994, January 8-9). Context-Aware Computing Applications. Santa Cruz, CA, USA.","DOI":"10.1109\/WMCSA.1994.16"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"263","DOI":"10.1504\/IJAHUC.2007.014070","article-title":"A Survey on context-aware systems","volume":"2","author":"Baldauf","year":"2007","journal-title":"Int. J. Ad Hoc Ubiquitous Comput."},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Cheng, B.H.C., de Lemos, R., Giese, H., Inverardi, P., and Magee, J. (2009). Book Software Engineering for Self-Adaptive Systems, Springer.","DOI":"10.1007\/978-3-642-02161-9"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"97","DOI":"10.1207\/S15327051HCI16234_02","article-title":"A conceptual framework and a toolkit for supporting the rapid prototyping of context-aware applications","volume":"16","author":"Dey","year":"2001","journal-title":"Hum. Comput. Interact."},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Salber, D., Dey, A.K., and Abowd, G.D. (1999, January 15\u201320). The Context Toolkit: Aiding the Development of Context-Enabled Applications. Pittsburg, PA, USA.","DOI":"10.1145\/302979.303126"},{"key":"ref_12","unstructured":"Fahy, P., and Clarke, S. (2004, January 6). CASS - Middleware for Mobile Context-Aware Applications. Boston, MA, USA."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"93","DOI":"10.1007\/978-3-642-04471-7_8","article-title":"A context provisioning framework to support pervasive and ubiquitous applications","volume":"5741","author":"Knappmeyer","year":"2009","journal-title":"Lect. Note. Comput. Sci."},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Patel, P., Jardosh, S., Chaudhary, S., and Ranjan, P. (2009, January 21\u201325). Context Aware Middleware Architecture for Wireless Sensor Network. Bangalore, India.","DOI":"10.1109\/SCC.2009.49"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"44","DOI":"10.1007\/978-3-642-02164-0_4","article-title":"WiSeKit: A distributed middleware to support application-level adaptation in sensor networks","volume":"5523","author":"Taherkordi","year":"2009","journal-title":"Lect. Note. Comput. Sci."},{"key":"ref_16","unstructured":"Li, F., Sehic, S., and Dustdar, S. (2010, January 11\u201313). COPAL: An Adaptive Approach to Context Provisioning. Niagara Falls, NY, USA."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"48","DOI":"10.1109\/MIS.2010.52","article-title":"Large-scale middleware for ubiquitous sensor networks","volume":"25","author":"Jeong","year":"2010","journal-title":"IEEE Intell. Syst."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Pohl, K., B\u00f6ckle, G., and van der Linden, F.J. (2005). Software Product Line Engineering Foundations, Principles, and Techniques, Springer.","DOI":"10.1007\/3-540-28901-1"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"329","DOI":"10.1007\/s00779-010-0354-0","article-title":"FamiWare: A Family of Event-Based Middleware for Ambient Intelligence","volume":"15","author":"Fuentes","year":"2011","journal-title":"Pers. Ubiquitous Comput."},{"key":"ref_20","unstructured":"Sheng, Q.Z., and Benatallah, B. (2005, January 11\u201313). ContextUML: A UML-Based Modeling Language for Model-Driven Development of Context-Aware Web Services."},{"key":"ref_21","unstructured":"Dey, A.K., and Abowd, G.D. (2000, January 3). Towards a Better Understanding of Context and Context-Awareness. Hague, The Netherlands."},{"key":"ref_22","unstructured":"Strang, T., and Linnhoff-Popien, C. (2004, January 7). A Context Modeling Survey. Nottingham, UK."},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"219","DOI":"10.1007\/11925071_12","article-title":"Contory: A Middleware for the provisioning of context information on smart phone","volume":"4290","author":"Riva","year":"2006","journal-title":"Lect. Note. Comput. Sci."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Prezerakos, G.N., Tselikas, N.D., and Cortese, G. (2007, January 9\u201313). Model-Driven Composition of Context-aware Web Services using ContextUML and Aspects. Salt Lake, UT, USA.","DOI":"10.1109\/ICWS.2007.123"},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"9","DOI":"10.1145\/320434.320440","article-title":"The entity-relationship model\u2014Toward a unified view of data","volume":"1","author":"Chen","year":"1976","journal-title":"ACM Trans. Database Syst."},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"148","DOI":"10.1007\/978-3-540-30473-9_15","article-title":"Towards an extensible context ontology for ambient intelligence","volume":"3295","author":"Preuveneers","year":"2004","journal-title":"Lect. Note. Comput. Sci."},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"62","DOI":"10.1007\/3-540-46020-9_5","article-title":"Concepts and guidelines of feature modeling for product line software engineering","volume":"2319","author":"Lee","year":"2002","journal-title":"Lect. Notes Comput. Sci."},{"key":"ref_28","first-page":"1592","article-title":"Configuration process of a software product line for AmI middleware","volume":"16","author":"Fuentes","year":"2010","journal-title":"J. Univ. Comput. Sci."},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"G\u00e1mez, N., Fuentes, L., and Arag\u00fcez, M.A. (2011, January 13\u201316). Autonomic Computing Driven by Feature Models and Architecture in FamiWare. Essen. Germany.","DOI":"10.1007\/978-3-642-23798-0_16"},{"key":"ref_30","unstructured":"OMG Data Distribution Service for Real-Time Systems, v1.2. Available online: http:\/\/www.omg.org\/spec\/DDS\/1.2\/PDF\/ (accessed on 16 March 2012)."},{"key":"ref_31","unstructured":"Berners-Lee, T., Fielding, R.T., and Nielsen, H.F. Hypertext transfer protocol-HTTP\/1.0. RFC 1945. Available online: http:\/\/www.ietf.org\/rfc\/rfc1945.txt (accessed on 16 March 2012)."},{"key":"ref_32","unstructured":"Fielding, R.T. (2000). Architectural Styles and the Design of Network-based Software Architectures. Doctoral Dissertation, University of California."},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Taherkordi, A., Rouvoy, R., Le-Trung, Q., and Eliassen, F. (2008, January 1). A Self-Adaptive Context Processing Framework for Wireless Sensor Networks. Leuven, Belgium.","DOI":"10.1145\/1462698.1462700"},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"316","DOI":"10.1145\/1118890.1118892","article-title":"When and How to Develop Domain-Specific Languages","volume":"37","author":"Mernik","year":"2005","journal-title":"ACM Comput. Surv."},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Sehic, S., Li, F., and Dustdar, S. (2011, January 21\u201328). COPAL-ML: A Macro Language for Rapid Development of Context-Aware Applications in Wireless Sensor Networks. Honolulu, HI, USA.","DOI":"10.1145\/1988051.1988053"},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"254","DOI":"10.1016\/j.pmcj.2009.07.006","article-title":"Towards the model driven development of context-aware pervasive systems","volume":"6","author":"Serral","year":"2010","journal-title":"Pervasive Mob. Comput."},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Segarra, M.-T., and Andr\u00e9, F. (2009, January 20\u201325). Building a Context-Aware Ambient Assisted Living Application using a Self-Adaptive Distributed Model. Valencia, Spain.","DOI":"10.1109\/ICAS.2009.13"},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"740","DOI":"10.1007\/978-3-642-02481-8_112","article-title":"Building self-adaptive services for ambient assisted living","volume":"5518","author":"Giner","year":"2009","journal-title":"Lect. Note. Comput. Sci."},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Hefeida, M., Canli, T., Kshemkalyani, A., and Khokhar, A. (2011, January 23\u201327). Context Modeling in Collaborative Sensor Network Applications. Philadelphia, PA, USA.","DOI":"10.1109\/CTS.2011.5928698"}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/12\/7\/8544\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T21:50:56Z","timestamp":1760219456000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/12\/7\/8544"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2012,6,25]]},"references-count":39,"journal-issue":{"issue":"7","published-online":{"date-parts":[[2012,7]]}},"alternative-id":["s120708544"],"URL":"https:\/\/doi.org\/10.3390\/s120708544","relation":{},"ISSN":["1424-8220"],"issn-type":[{"type":"electronic","value":"1424-8220"}],"subject":[],"published":{"date-parts":[[2012,6,25]]}}}