Implementing a semi-causal domain-specific language for context detection over binary sensors

Author:

Volanschi Nic1,Serpette Bernard1,Consel Charles2

Affiliation:

1. Inria, France

2. Bordeaux INP, France / Inria, France

Abstract

In spite of the fact that many sensors in use today are binary (i.e. produce only values of 0 and 1), and that useful context-aware applications are built exclusively on top of them, there is currently no development approach specifically targeted to binary sensors. Dealing with notions of state and state combinators, central to binary sensors, is tedious and error-prone in current approaches. For instance, developing such applications in a general programming language requires writing code to process events, maintain state and perform state transitions on events, manage timers and/or event histories. In another paper, we introduced a domain specific language (DSL) called Allen, specifically targeted to binary sensors. Allen natively expresses states and state combinations, and detects contexts on line, on incoming streams of binary events. Expressing state combinations in Allen is natural and intuitive due to a key ingredient: semi-causal operators. That paper focused on the concept of the language and its main operators, but did not address its implementation challenges. Indeed, online evaluation of expressions containing semi-causal operators is difficult, because semi-causal sub-expressions may block waiting for future events, thus generating unknown values, besides 0 and 1. These unknown values may or may not propagate to the containing expressions, depending on the current value of the other arguments. This paper presents a compiler and runtime for the Allen language, and shows how they implement its state combining operators, based on reducing complex expressions to a core subset of operators, which are implemented natively. We define several assisted living applications both in Allen and in a general scripting language. We show that the former are much more concise in Allen, achieve more effective code reuse, and ease the checking of some domain properties.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference22 articles.

1. Engineering context-aware systems and applications: A survey

2. Maintaining knowledge about temporal intervals

3. Ronald M. Baecker Karyn Moffatt and Michael Massimi. 2012. Technologies for Aging Gracefully. interactions 19 3 (May 2012) 32-36. Ronald M. Baecker Karyn Moffatt and Michael Massimi. 2012. Technologies for Aging Gracefully. interactions 19 3 (May 2012) 32-36.

4. Engineer Bainomugisha Andoni Lombide Carreton Tom van Cutsem Stijn Mostinckx and Wolfgang de Meuter. 2013. A Survey on Reactive Programming. ACM Comput. Surv. 45 4 Article 52 (Aug. 2013) 34 pages. Engineer Bainomugisha Andoni Lombide Carreton Tom van Cutsem Stijn Mostinckx and Wolfgang de Meuter. 2013. A Survey on Reactive Programming. ACM Comput. Surv. 45 4 Article 52 (Aug. 2013) 34 pages.

5. T. Bourke and A. Sowmya. 2010. Delays in Esterel. In SYNCHRON 2009 (Dagstuhl Seminar Proceedings) Albert Benveniste Stephen A. Edwards Edward Lee Klaus Schneider and Reinhard von Hanxleden (Eds.). Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik Germany Dagstuhl Germany. http://drops.dagstuhl.de/opus/volltexte/2010/2434. T. Bourke and A. Sowmya. 2010. Delays in Esterel. In SYNCHRON 2009 (Dagstuhl Seminar Proceedings) Albert Benveniste Stephen A. Edwards Edward Lee Klaus Schneider and Reinhard von Hanxleden (Eds.). Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik Germany Dagstuhl Germany. http://drops.dagstuhl.de/opus/volltexte/2010/2434.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3