arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1701.00161cs.PL
收藏

基于生命状态规则的事件驱动系统抽象

Abstracting Event-Driven Systems with Lifestate Rules

Shawn Meier, Aleksandar Chakarov, Maxwell Russek, Sergio Mover, Bor-Yuh Evan Chang

摘要:

我们提出了生命状态规则--一种抽象事件驱动对象协议的方法。在事件驱动的软件框架下开发应用程序是非常困难的。原因之一是,要创建功能性应用程序,开发人员必须了解和理解抽象框架内部行为的复杂协议。这些协议将回调的正确注册与适当的应用程序编程接口(API)调用相结合,以从框架接收控制权。生命状态规则将生命周期和类型状态约束统一在一个通用的规约语言中。我们的主要贡献是一个模型的事件驱动的系统,从生命状态的规则可以得出。然后,我们应用规范挖掘技术来学习Android框架类型的生命状态规范。最后,我们的实现是能够找到几个规则,表征Android框架的实际行为。

英文摘要:

We present lifestate rules--an approach for abstracting event-driven object protocols. Developing applications against event-driven software frameworks is notoriously difficult. One reason why is that to create functioning applications, developers must know about and understand the complex protocols that abstract the internal behavior of the framework. Such protocols intertwine the proper registering of callbacks to receive control from the framework with appropriate application programming interface (API) calls to delegate back to it. Lifestate rules unify lifecycle and typestate constraints in one common specification language. Our primary contribution is a model of event-driven systems from which lifestate rules can be derived. We then apply specification mining techniques to learn lifestate specifications for Android framework types. In the end, our implementation is able to find several rules that characterize actual behavior of the Android framework.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑