首页> 外文期刊>Software and systems modeling >Empirically evaluating OCL and Java for specifying constraints on UML models
【24h】

Empirically evaluating OCL and Java for specifying constraints on UML models

机译:根据经验评估OCL和Java以指定对UML模型的约束

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

摘要

The Object Constraint Language (OCL) has been applied, along with UML models, for various purposes such as supporting model-based testing, code generation, and automated consistency checking of UML models. However, a lot of challenges have been raised in the literature regarding its applicability in industry such as extensive training, slow learning curve, and significant effort to use OCL due to lack of familiarity of practitioners. To confirm these challenges, empirical evidence is needed, which is severely lacking in the literature. To build such preliminary evidence, we report a controlled experiment that was designed to evaluate OCL by comparing it with Java; a programming language that has also been used to specify constraints on UML models. Results show that the participants using OCL perform as good as the participants working with Java in terms of three objective quality metrics (i.e., completeness, conformance and redundancy) and two subjective metrics (i.e., applicability and confidence level). In addition, the participants using OCL performed consistently well for all the constraints of varying complexity, while fluctuating results were obtained for the participants using Java for the same constraints. Based on the empirical evidence, we can conclude that it does not make much difference to use OCL or Java for specifying constraints on UML models. However, the participants working with OCL performed consistently well on specifying constraints of varying complexity suggesting that OCL can be used to model complicated constraints (commonly observed in industrial applications) with the same quality as for simpler constraints. Moreover, additional analyses on the constraints when using Java and OCL tools revealed that tools are needed to specify fully correct constraints that can be used to support automation.
机译:对象约束语言(OCL)与UML模型一起已被用于各种目的,例如支持基于模型的测试,代码生成以及UML模型的自动一致性检查。然而,由于缺乏从业人员的知识,文献对其在工业中的适用性提出了许多挑战,例如广泛的培训,缓慢的学习曲线以及使用OCL的大量努力。为了确认这些挑战,需要经验证据,而文献中严重缺乏这些证据。为了建立这样的初步证据,我们报告了一个受控实验,该实验旨在通过将OCL与Java进行比较来评估OCL。一种编程语言,也已用于指定对UML模型的约束。结果表明,在三个客观质量指标(即完整性,一致性和冗余性)和两个主观指标(即适用性和置信度)方面,使用OCL的参与者的表现与使用Java的参与者一样好。此外,使用OCL的参与者在复杂性各不相同的所有约束下均表现良好,而对于相同约束的Java使用参与者则获得了波动的结果。基于经验证据,我们可以得出结论,使用OCL或Java来指定对UML模型的约束并没有多大区别。但是,与OCL一起工作的参与者在指定复杂度不同的约束条件方面始终表现良好,这表明OCL可以用来建模复杂约束条件(在工业应用中通常会观察到),并且具有与简单约束条件相同的质量。此外,在使用Java和OCL工具时对约束的其他分析表明,需要使用工具来指定可用于支持自动化的完全正确的约束。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号