期刊文献+

实时协同编程环境下的语义冲突消解方法研究 被引量:2

Research on Semantic Conflict Resolution in Real-time Collaborative Programming Environment
下载PDF
导出
摘要 实时协同编程系统是协同交互应用的重要分支,该环境支持多个用户在任何时间任意地点并发的编辑共享的源代码文档.协同编程环境是一种特殊的协同文本编辑环境,该环境中共享的源代码文档既要满足语法一致性,也需符合语义一致性.语义不一致源于多个用户对相同的代码段或对存在依赖关系的代码段并发工作.本文深入分析了协同编程环境下语义冲突、动态依赖冲突问题及不完整的编辑操作导致的编辑错误,基于前人的研究,结合CAS(Compare And Swap)的并发控制思想,设计了实时协同环境下了语义冲突消解方法 ACAS(Automatic Compare And Swap),维护实时协同编程语义一致性.本文在Window s平台下,基于QT框架及SeaStar异步通信框架开发了实时协同编程的原型系统CoCode,并通过相关实验进一步的验证了ACAS(Automatic Compare And Sw ap)算法及相关控制函数的可行性与正确性. Real-time collaborative programming system is an important branch of cooperatively interactive applications. It allow s multiple programmers to edit the shared source code files at anytime and anywhere concurrently. The collaborative programming environment is a special collaborative text editing environment in which the shared code files not only need to ensure syntactic consistency,but also require semantic consistency. Semantic inconsistency stems from the semantic conflict which may be caused by multiple programmers’ concurrency work,such as they are worked at the same code segment or different code segment which exists dependent relationship. In this paper,we privided an in-depth analysis of semantic conflict,dynamic dependency conflicts,and the editing errors caused by incomplete editing operations. Based on the previous and associated the concurrency control idea of CAS( Compare and Swap),we designed a novel method ACAS( Automatic Compare and Swap) to dispel the semantic conflict of real-time collaborative programming system. In order to verify the feasibility and the effectiveness of the ACAS algorithm and related functions,we developed the real-time collaborative programing prototype system,named CoCode,which based on the QT framework and the SeaStar Asynchronous Communication Framework for the Window s platform.
作者 高丽萍 游书伟 GAO Li-ping;YOU Shu-wei(School of Optical-Electrical Computer Engineering, University of Shanghai for Science & Technology, Shanghai 200093, China;Shanghai Key Laboratory of Data Science,Fudan Universit,Shanghai 200093,China)
出处 《小型微型计算机系统》 CSCD 北大核心 2019年第4期695-703,共9页 Journal of Chinese Computer Systems
基金 国家自然科学基金项目(61202376 61572325)资助 上海市自然科学基金项目(17ZR1429100)资助 上海市数据科学重点实验室重点开放课题(201609060003)资助
关键词 语义冲突 协同计算 协同编程 一致性维护 semantic conflict collaborative computing collaborative programming consistency maintenance
  • 相关文献

参考文献1

二级参考文献19

  • 1Sun Chengzheng,Ellis C A.Operation transformation in real-time group editors:issues,algorithms,and achievements[C]//Proc of ACM Conference on Computer Supported Cooperative Work.New York:ACM Press,1998:59-68.
  • 2Ellis C A,Gibbs S J.Concurrency control in groupware systems[C]//Proc of ACM SIGMOD International Conference on Management of Data.New York:ACM Press,1989:399-407.
  • 3Sun D,Xia S,Sun Chengzheng,et al.Operational transformation for collaborative wordprocessing[C]//Proc of ACM Conference on Computer Supported Cooperative Work.New York:ACM Press,2004:437-446.
  • 4Fan Hongfei,Sun Chengzheng.Supporting semantic conflict prevention in real-time collaborative programming environments[J].ACM SIGAPP Applied Computing Review,2012,12(2).
  • 5Xia Huanhuan,Lu Tun,Shao Bin,et al.A partial replication approach for anywhere anytime mobile commenting[C]//Proc of Conference on Computer Supported Cooperative Work.2014.
  • 6Ellis C A,Gibbs S J,Rein G.Design and use of a group editor[C]//Proc of IFIP TC2/WG2.7 Working Conference on Engineering for Human-Computer Interaction.1989:13-28.
  • 7Li Du,Li Rui.Ensuring content and intention consistency in real-time group editors[C]//Proc of the 24th International Conference on Distributed Computing Systems.2004:748-755.
  • 8Sun Chengzheng,Chen D.Consistency maintenance in real-time collaborative graphics editing systems[J].ACM Trans on Computer Human Interaction,2002,9(1):1-41.
  • 9Sun Chengzheng,Chen D.A multi-version approach to conflict resolution in distributed groupware systems[C]//Proc of the 20th International Conference on Distributed Computing Systems.2000:316-325.
  • 10Agustunia C,Sun Chengzheng,Xu Dong.Operational transformation for dependency conflict resolution in real-time collaborative 3D design systems[C]//Proc of ACM Conference on Computer Supported Cooperative Work.New York:ACM Press,2012:1401-1410.

共引文献1

同被引文献11

引证文献2

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部