arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1401.3614cs.SE
收藏

反射变量和折射变量:一个有效的可维护的自适应依赖软件模型

Reflective and Refractive Variables: A Model for Effective and Maintainable Adaptive-and-Dependable Software

Vincenzo De Florio, Chris Blondia

摘要:

我们提出了一个简单而有效的工具,用于表达任务,如跨层优化策略或传感器相关的应用程序。这种方法是基于我们所说的“反射和折射变量”。这两种类型的变量都与外部实体相关联,例如传感器或执行器。反射变量是易失性变量,也就是说,可以由多个线程并发修改的变量。线程库是可用的,每个线程连接一组传感器,并不断更新相应的一组传感器的值。一个这样的线程是“cpu”,它将本地CPU的当前使用水平导出为0到100之间的整数。这个整数被反射到整数反射变量cpu中。折射变量是可以修改的反射变量。每个修改都被捕获并解释为更改执行器值的请求。例如,设置变量“tcp_senior”将请求对与本地TCP层实体接口的线程进行跨层调整。这允许在任何程序设计语言的应用层中以简单的方式表达复杂的操作,例如普通的旧C。我们描述了我们的翻译器和我们在PATS中进行的工作,以基于反射和折射变量构建简单而强大的脚本库,包括机器人应用和RFID标签处理。

英文摘要:

We propose a simple and effective tool for the expression of tasks such as cross-layer optimization strategies or sensors-related applications. The approach is based on what we refer to as "reflective and refractive variables". Both types of variables are associated with external entities, e.g. sensors or actuators. A reflective variable is a volatile variable, that is, a variable that might be concurrently modified by multiple threads. A library of threads is made available, each of which interfaces a set of sensors and continuously update the value of a corresponding set of sensors. One such thread is "cpu", which exports the current level of usage of the local CPU as an integer between 0 and 100. This integer is reflected into the integer reflective variable cpu. A refractive variable is a reflective variable that can be modified. Each modification is caught and interpreted as a request to change the value of an actuator. For instance, setting variable "tcp_sendrate" would request a cross-layer adjustment to the thread interfacing the local TCP layer entity. This allows express in an easy way complex operations in the application layer of any programming language, e.g. plain old C. We describe our translator and the work we are carrying out within PATS to build simple and powerful libraries of scripts based on reflective and refractive variables, including robotics applications and RFID tags processing.

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

↑