首页> 外文会议>MoDELS 2005 International Workshops, Doctoral Symposium, Educators Symposium; 20051002-07; Montego Bay(JM) >Lessons Learned from Developing a Dynamic OCL Constraint Enforcement Tool for Java
【24h】

Lessons Learned from Developing a Dynamic OCL Constraint Enforcement Tool for Java

机译:从为Java开发动态OCL约束强制工具中学到的经验教训

获取原文
获取原文并翻译 | 示例

摘要

Analysis and design by contract allows the definition of a formal agreement between a class and its clients, expressing each party's rights and obligations. Contracts written in the Object Constraint Language (OCL) are known to be a useful technique to specify the precondition and postcondition of operations and class invariants in a UML context, making the definition of object-oriented analysis or design elements more precise while also helping in testing and debugging. In this article, we report on the experiences with the development of ocl2j, a tool that automatically instruments OCL constraints in Java programs using aspect-oriented programming (AOP). The approach strives for automatic and efficient generation of contract code, and a non-intrusive instrumentation technique. A summary of our approach is given along with the results of an initial case study, the discussion of encountered problems, and the necessary future work to resolve the encountered issues.
机译:通过合同进行分析和设计,可以定义类与其客户之间的正式协议,表达双方的权利和义务。众所周知,使用对象约束语言(OCL)编写的合同是一种有用的技术,可以在UML上下文中指定操作和类不变式的前提和后条件,从而使面向对象分析或设计元素的定义更加精确,同时也有助于测试和调试。在本文中,我们报告了ocl2j开发的经验,ocl2j是一种使用面向方面的编程(AOP)在Java程序中自动检测OCL约束的工具。该方法致力于自动高效地生成合同代码以及一种非介入式检测技术。给出了我们的方法的摘要,以及初始案例研究的结果,所遇到问题的讨论以及解决所遇到问题的必要的未来工作。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号