We use cookies to improve your experience with our site.
邱杰凡, 李栋, 石海龙, 侯陈达, 崔莉. EasiSMP:一种支持REST资源运行时繁殖的编程架构[J]. 计算机科学技术学报, 2014, 29(2): 194-204. DOI: 10.1007/s11390-014-1422-0
引用本文: 邱杰凡, 李栋, 石海龙, 侯陈达, 崔莉. EasiSMP:一种支持REST资源运行时繁殖的编程架构[J]. 计算机科学技术学报, 2014, 29(2): 194-204. DOI: 10.1007/s11390-014-1422-0
Jie-Fan Qiu, Dong Li, Hai-Long Shi, Chen-Da Hou, Li Cui. EasiSMP:A Resource-Oriented Programming Framework Supporting Runtime Propagation of RESTful Resources[J]. Journal of Computer Science and Technology, 2014, 29(2): 194-204. DOI: 10.1007/s11390-014-1422-0
Citation: Jie-Fan Qiu, Dong Li, Hai-Long Shi, Chen-Da Hou, Li Cui. EasiSMP:A Resource-Oriented Programming Framework Supporting Runtime Propagation of RESTful Resources[J]. Journal of Computer Science and Technology, 2014, 29(2): 194-204. DOI: 10.1007/s11390-014-1422-0

EasiSMP:一种支持REST资源运行时繁殖的编程架构

EasiSMP:A Resource-Oriented Programming Framework Supporting Runtime Propagation of RESTful Resources

  • 摘要: 目前已经有很多感知网宏编程的相关研究来简化感知网的编程过程,但大多数研究主要针对专属网络或一些特定应用场景。为此,我们在考察现有针对非专有网络和通用场景研究的基础上,提出了一种面向资源的编程架构—EasiSMP。利用EasiSMP,可以将网络中的设备及其逻辑功能抽象为被URL索引的虚拟资源(virtual resource),并且提供给使用者对虚拟资源被全局访问能力。同时,EasiSMP支持在运行时通过对现有虚拟资源的复用,繁殖的新的虚拟资源,以降低重新编程和部署的开销。为此,我们设计了相应的编程原语来支持资源的运行时繁殖,并提供了虚拟资源引擎(virtual resource engine)以实时管理资源。最后,为了验证EasiSMP的有效性,我们编写了针对故宫文物监测系统的EasiSMP应用程序。通过对具体应用程序的分析,我们发现EasiSMP能够以较少的编程开销构建复杂的应用,并且平均部署开销较传统节点级编程下降了27%。

     

    Abstract: In order to simplify programming for building sensor networks, macro-programming methods have been pro-posed in prior work. Most of them are designed for the dedicated networks and specific scenarios where devices are mostly homogeneous. Nevertheless the methods rarely consider those shared networks which are composed of heterogeneous devices, e.g., sensors, actuators, mobile devices, and share resources among themselves. In this paper, we present EasiSMP, a resource-oriented programming framework for these shared networks and generic application scenarios. In this framework, the devices and their functionalities are abstracted into RESTful virtual resources (VRs) each of which is labelled by a uni-form resource identifier (URI). The post-deployment VR can be globally accessed and reused to propagate new resource(s) at runtime. To support the resource propagation, programming primitives are proposed and a virtual resource engine (VRE) is studied. To perform evaluation, EasiSMP is deployed into a relic monitoring network. Experimental results show that programming using Ea-siSMP is concise, and the average deployment overhead is decreased by up to 27% compared with the node-level programming.

     

/

返回文章
返回