首页 | 本学科首页   官方微博 | 高级检索  
     

OCL约束验证与实现的方法
引用本文:罗清胜.OCL约束验证与实现的方法[J].计算机工程与设计,2010,31(6).
作者姓名:罗清胜
作者单位:江西财经大学,图书馆,江西,南昌,330013
摘    要:为了能在运行时验证OCL约束,提出了约束验证框架.针对OCL-Java代码(即OCL约束对应的可执行Java代码)插入的简单方案和封装方法存在的不足,给出了改进的代码插入方案,其中应用异常处理技术从而能够捕获冲突的约束.为了使OCL-Java代码根据设计的代码模式插入到Java程序中,对Java解析器作了修改.最后,实验结果表明了该方法的可行性.

关 键 词:对象约束语言  约束冲突  约束验证  代码模式  Java解析器

Method to OCL constraints verification and implementation
LUO Qing-sheng.Method to OCL constraints verification and implementation[J].Computer Engineering and Design,2010,31(6).
Authors:LUO Qing-sheng
Affiliation:LUO Qing-sheng(Library,Jiangxi University of Finance , Economics,Nanchang 330013,China)
Abstract:To verificate the OCL(object constraint language) constraints during runtime, a framework of constrait verification is presented.In allusion to the disadvantages of the simple code insertion approach and wrapping method of the OCL-Java code insertion, a mended code insertion approach is put forward, which applying the exception handling technology catching the constraints violated.In order to make OCL-Java code insert into the Java program according to the designed code pattern, the Java paser is mended.At ...
Keywords:object constraint language  constraint violation  constraint verification  code pattern  Java parser
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号