{"title":"Towards context-oriented programming in wireless sensor networks","authors":"Mikhail Afanasov, L. Mottola, C. Ghezzi","doi":"10.1145/2494091.2494141","DOIUrl":null,"url":null,"abstract":"We present our ongoing work towards applying the context-oriented programming (COP) paradigm to wireless sensor networks (WSNs). Context---as a representation of the environment where the system operates---plays a key role in WSN applications, which must often adapt their operation depending on environmental conditions. We argue that promoting a notion of context as a first-class citizen in WSN programming facilitates the design and implementation of context-dependent functionality. To this end, we conceive a context-oriented programming model expressly tailored to WSNs, coupled with dedicated language constructs. Unlike the existing literature on COP, we embed the latter within low-level C-like languages that do not rely on resource-intensive features such as dynamic memory management. To make our design concrete, we describe a context-oriented extension of nesC---a widely used WSN programming language---and report on a preliminary assessment of our design.","PeriodicalId":220524,"journal":{"name":"Proceedings of the 2013 ACM conference on Pervasive and ubiquitous computing adjunct publication","volume":"51 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2013-09-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2013 ACM conference on Pervasive and ubiquitous computing adjunct publication","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2494091.2494141","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
Abstract
We present our ongoing work towards applying the context-oriented programming (COP) paradigm to wireless sensor networks (WSNs). Context---as a representation of the environment where the system operates---plays a key role in WSN applications, which must often adapt their operation depending on environmental conditions. We argue that promoting a notion of context as a first-class citizen in WSN programming facilitates the design and implementation of context-dependent functionality. To this end, we conceive a context-oriented programming model expressly tailored to WSNs, coupled with dedicated language constructs. Unlike the existing literature on COP, we embed the latter within low-level C-like languages that do not rely on resource-intensive features such as dynamic memory management. To make our design concrete, we describe a context-oriented extension of nesC---a widely used WSN programming language---and report on a preliminary assessment of our design.